| ??? 12/30/03 13:50 Read: times |
#61583 - RE: Atomic 16bit read Responding to: ???'s previous message |
Only 1 free counter left and I count from 2 separate encoders.
1 clock used for RTC, 1 for baudrate generator. AFAIK My uC (ADuC812) can't decrement a counter and I need both increment and decrement operations. Plus, isn't only writing (increment) of the counter atomic, while I'd still have to read T1L, T1H in sequence? I just had a thought - could I do it on "artificial" high priority interrupt? This way, once started it can't be interrupted by other high-priority interrupts, while they don't get lost - they get polled instead... Ehh, I'm running short on interrupts, timers/counters and all other kinds of resources. |



