Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/09/02 12:38
Read: times


 
#28891 - RE: Delaying interrupts
"I could not find a way to delay interrupts using the IE SFR... "

It's really simple Kundi: The question was how to ensure that a piece of code is not interrupted. This can be easily done by 'bracketing' the code with disable/enable interrupts. The interrupt enable flags are contained in the IE register and that's what Erik was referring to.

Example (in pseudocode):
clear EA                            // disable all interrupts
code-that-is-not-to-be-interrupted  // execute the code
set EA                              // re-enable interrupts


Best regards,
Rob.

PS. The post above this one is basically about the same thing.

List of 15 messages in thread
TopicAuthorDate
Delaying interrupts            01/01/70 00:00      
RE: Delaying interrupts            01/01/70 00:00      
RE: Delaying interrupts            01/01/70 00:00      
RE: Delaying interrupts            01/01/70 00:00      
RE: Delaying interrupts            01/01/70 00:00      
RE: Delaying interrupts            01/01/70 00:00      
RE: Delaying interrupts            01/01/70 00:00      
RE: Delaying interrupts            01/01/70 00:00      
RE: Delaying interrupts Nic            01/01/70 00:00      
RE: Delaying interrupts Nic            01/01/70 00:00      
RE: Delaying interrupts Nic            01/01/70 00:00      
RE: Delaying interrupts            01/01/70 00:00      
RE: Delaying interrupts            01/01/70 00:00      
RE: Delaying interrupts, Nic            01/01/70 00:00      
RE: Delaying interrupts            01/01/70 00:00      

Back to Subject List