| ??? 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. |
| Topic | Author | Date |
| 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 |



