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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/02/05 17:12
Read: times


 
#86388 - where to read, why not do
Responding to: ???'s previous message
I read about 16bit sfr declaration is to be done ....but I don,t know how to do..

Some compilers support 16 bit SFR declarations. Avoid them because, while you can declare them to your hearts delight, they only give the correct result if and if and if. So, you declare a couple that actually work and some day in the future you spend a long time hunting a bug created by you using the 16 bit in a case where the if or if or if was not fulfilled. So even knowing they exist can be dangerous.

For the if and if and if and the declaration see the Keil manuals

I have to load and read 16bit data into timer(th0,tl0). can any body suggest how to do....
assembler or C?

Erik



List of 9 messages in thread
TopicAuthorDate
Getting the timers value into decimal            01/01/70 00:00      
   BCD            01/01/70 00:00      
   printf            01/01/70 00:00      
   Yes            01/01/70 00:00      
   whoops            01/01/70 00:00      
      8051 timers in 16-bit mode...reg            01/01/70 00:00      
         where to read, why not do            01/01/70 00:00      
         RTFM!            01/01/70 00:00      
         many ways            01/01/70 00:00      

Back to Subject List