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

What happens during an I2C start when the interrupt is OFF?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
FatboyBeef
Guest







What happens during an I2C start when the interrupt is OFF?
PostPosted: Sun Apr 16, 2006 6:49 pm     Reply with quote

If the I2C interrupt in a PIC configured as a I2C slave is turned OFF while the hardware receives a start condition and subsequent write, will it:
1. Catch the write by entering the ISR as soon as the interrupt is re-enabled.
or
2. Miss the write with it being lost forever (also, will the slave send the ACK or miss this too?)

This is specifically in question to the 16F88, however it probably applies to any and all PICs?

Thanks!
Ttelmah
Guest







PostPosted: Mon Apr 17, 2006 2:50 am     Reply with quote

1).
The interrupt flag is set, when the hardware event occurs. If you enable the interrupt, and the flag is already set, the handler will be called.
There is however a 'caveat'. If a _second_ event occurs before the handler is called, you may get an 'overrun error'.

Best Wishes
FatboyBeef
Guest







PostPosted: Mon Apr 17, 2006 3:36 am     Reply with quote

Tanks Ttelmah. That answers my question nicely.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group