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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/28/04 12:23
Read: times


 
#78272 - RE: Keil strncpy function doubt?????
Responding to: ???'s previous message
I cannot disable the interrupts as I cannot miss a single pulse comming on them.

Then it will fail

example
U8 cnt[3]
cnt = [9,7,0] // LSB...MSB
your copy routine read cnt[0] as 9
the interrupt happens
your copy routine read cnt[1] as 8

should you attempt to display directly from the cnt[p] the effect will be the same.

The only other way you can do it will be
loop:
copy cnt[] to prnt[]
compare cnt[] to prnt[]
if different goto loop

Erik




List of 26 messages in thread
TopicAuthorDate
Keil strncpy function doubt?????            01/01/70 00:00      
   RE: Keil strncpy function doubt?????            01/01/70 00:00      
      RE: Keil strncpy function doubt?????            01/01/70 00:00      
   RE: Keil strncpy function doubt?????            01/01/70 00:00      
      RE: Keil strncpy function doubt?????            01/01/70 00:00      
         RE: Keil strncpy function doubt?????            01/01/70 00:00      
            Encoder Direction            01/01/70 00:00      
               RE: Encoder Direction            01/01/70 00:00      
                  RE: Encoder Direction            01/01/70 00:00      
                     RE: Encoder Direction            01/01/70 00:00      
                        RE: Encoder Direction            01/01/70 00:00      
                           RE: Encoder Direction            01/01/70 00:00      
                              RE: Encoder Direction            01/01/70 00:00      
                     RE: Encoder Direction            01/01/70 00:00      
                        Thanks a *            01/01/70 00:00      
                        Need help for low ESR Capacitors            01/01/70 00:00      
         RE: Keil strncpy function doubt?????            01/01/70 00:00      
      RE: Keil strncpy function doubt?????            01/01/70 00:00      
   RE: Programming style            01/01/70 00:00      
      RE: Programming style            01/01/70 00:00      
      RE: Programming style            01/01/70 00:00      
   RE: Keil strncpy function doubt?????            01/01/70 00:00      
      RE: Keil strncpy function doubt?????            01/01/70 00:00      
         RE: Keil strncpy function doubt?????            01/01/70 00:00      
   Copying structures            01/01/70 00:00      
      RE: Copying structures            01/01/70 00:00      

Back to Subject List