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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
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.

List of 32 messages in thread
TopicAuthorDate
Atomic 16bit read            01/01/70 00:00      
   RE: Atomic 16bit read            01/01/70 00:00      
      RE: Atomic 16bit read            01/01/70 00:00      
   RE: Atomic 16bit read            01/01/70 00:00      
      RE: Atomic 16bit read            01/01/70 00:00      
         RE: Atomic 16bit read            01/01/70 00:00      
            RE: Atomic 16bit read            01/01/70 00:00      
         RE: Atomic 16bit read            01/01/70 00:00      
   RE: Atomic 16bit read            01/01/70 00:00      
      RE: Atomic 16bit read            01/01/70 00:00      
         RE: Atomic 16bit read            01/01/70 00:00      
            RE: Atomic 16bit read            01/01/70 00:00      
               RE: Atomic 16bit read            01/01/70 00:00      
                  RE: Atomic 16bit read            01/01/70 00:00      
                  RE: Atomic 16bit read            01/01/70 00:00      
                     RE: Atomic 16bit read            01/01/70 00:00      
                        RE: Atomic 16bit read            01/01/70 00:00      
                           RE: Atomic 16bit read            01/01/70 00:00      
                              RE: Atomic 16bit read            01/01/70 00:00      
                                 RE: Atomic 16bit read            01/01/70 00:00      
                                    RE: Atomic 16bit read            01/01/70 00:00      
                                       RE: Atomic 16bit read            01/01/70 00:00      
                                          RE: Atomic 16bit read            01/01/70 00:00      
                                             RE: Atomic 16bit read            01/01/70 00:00      
                                                RE: Atomic 16bit read            01/01/70 00:00      
   RE: Atomic 16bit read            01/01/70 00:00      
      RE: Atomic 16bit read            01/01/70 00:00      
   RE: Atomic 16bit read            01/01/70 00:00      
      RE: Atomic 16bit read            01/01/70 00:00      
         RE: Atomic 16bit read            01/01/70 00:00      
            RE: Atomic 16bit read            01/01/70 00:00      
               RE: Atomic 16bit read            01/01/70 00:00      

Back to Subject List