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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/24/04 09:18
Read: times


 
#81812 - Same subject as the post I'm replying to
Responding to: ???'s previous message
You have been misinformed. You can safely use the operators you mention on integer values within an interrupt routine.

The 'gotcha' with integers in an ISR comes when the integer is shared between ISR code and non-ISR code. Integer operations are not atomic so in this situation you have to use some scheme to ensure that access to the integer is protected.

List of 6 messages in thread
TopicAuthorDate
Integer operation in Interrupt with keil            01/01/70 00:00      
   Same subject as the post I'm replying to            01/01/70 00:00      
   Keil Knowledgebase            01/01/70 00:00      
      not really relevant            01/01/70 00:00      
   actual problem            01/01/70 00:00      
   no...            01/01/70 00:00      

Back to Subject List