CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 7 matches
CCS Forum Index
Author Message
  Topic: Interrupt flag not being cleared on 18F452
s_g_robertson

Replies: 13
Views: 15033

PostForum: General CCS C Discussion   Posted: Mon Mar 21, 2005 8:41 am   Subject: Interrupt flag not being cleared on 18F452
Stephen:

If "mode" never gets scrogged, the getc() will be called... but if something *did* happen to "mode", this is the problem you would see.

So, the odds are good that if you move the getc() ...
  Topic: Interrupt flag not being cleared on 18F452
s_g_robertson

Replies: 13
Views: 15033

PostForum: General CCS C Discussion   Posted: Mon Mar 21, 2005 8:34 am   Subject: Interrupt flag not being cleared on 18F452
Try moving the getc() to the beginning of the ISR - or add the default.

After some thought, the FERR and OERR might have been set by new chars coming after the error occurs...

Also, interrupt de ...
  Topic: Interrupt flag not being cleared on 18F452
s_g_robertson

Replies: 13
Views: 15033

PostForum: General CCS C Discussion   Posted: Mon Mar 21, 2005 8:28 am   Subject: Interrupt flag not being cleared on 18F452
I take your point about moving the getc, I don't actually know why I have that layout, I think there was a reason way back in the mists of time!

Though the top level switch of the ISR has three cas ...
  Topic: Interrupt flag not being cleared on 18F452
s_g_robertson

Replies: 13
Views: 15033

PostForum: General CCS C Discussion   Posted: Mon Mar 21, 2005 8:17 am   Subject: Interrupt flag not being cleared on 18F452
Stephen:

When it locks up (not clearing RCIF), are FERR and/or OERR set?

I am not certain but I think so.

Stephen.
  Topic: Interrupt flag not being cleared on 18F452
s_g_robertson

Replies: 13
Views: 15033

PostForum: General CCS C Discussion   Posted: Mon Mar 21, 2005 8:16 am   Subject: Interrupt flag not being cleared on 18F452
Thanks for your reply. Apologies for the state of the code. It is a horrendous function so I have tried to strip out as much as possible to make it slighlty more readable.

The one thing I have no ...
  Topic: Interrupt flag not being cleared on 18F452
s_g_robertson

Replies: 13
Views: 15033

PostForum: General CCS C Discussion   Posted: Mon Mar 21, 2005 7:50 am   Subject: Interrupt flag not being cleared on 18F452
Yes I do have ERRORS in my #use. I've checked that a few times to make really sure!! I have managed to step through the code when it is running and observed the FERR and OERR flags being cleared.
...
  Topic: Interrupt flag not being cleared on 18F452
s_g_robertson

Replies: 13
Views: 15033

PostForum: General CCS C Discussion   Posted: Mon Mar 21, 2005 7:16 am   Subject: Interrupt flag not being cleared on 18F452
I'm having a problem with an application using the USART on the 18F452. The problem is that the RCIF flag is not being cleared either by the getc() function or by the complier generated
BCF F9E.5 ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group