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

Back to Subject List

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


 
#170703 - Interrupt fun
I was just wondering what the collective wisdom is regarding interrupt enables is.

Specifically if I look at the project in front of me I see a lot of peripheral interrupt enables being turned on and off when shared data is accessed. For instance, a UART enqueues data in an ISR. When the mainline code accesses the same buffer the UART interrupt is turned off. Similar things happen with timers, USB, etc, etc. Assuming that I don't need priorities and nesting, wouldn't it just be simpler to turn off all the interrupts when accessing any shared resource? It's a lot faster to setb/clrb on EA than it is to manipulate the individual interrupt enable bits in some of these peripherals.

List of 6 messages in thread
TopicAuthorDate
Interrupt fun            01/01/70 00:00      
   at the project in front of you I see ...            01/01/70 00:00      
   It's Atomic            01/01/70 00:00      
   Ring buffer            01/01/70 00:00      
   Diligent fun?            01/01/70 00:00      
      individual disa/ena and latencies            01/01/70 00:00      

Back to Subject List