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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/24/05 17:59
Read: times


 
#85682 - Which CPU ?
Responding to: ???'s previous message
If your CPU has the PCA extension, its even easier than using the normall timers. The intel PCA manual mentioned in the links page is full of handy tips.

Otherwise, what you want is achieved within the "ISR", called as the timer overflows, and generates an interrupt (if you enabled it in the appropriate control register, and you enabled EA). The will need you to calculate a timer reload value for your particular clock frequency, so that it can start counting at the right interval next time round.

If that's all going over your head, you really need to read the (in)famous "8051 bible" - section 1 is the most pertinent. - also in links.

Steve

List of 7 messages in thread
TopicAuthorDate
80Hz clock using timer            01/01/70 00:00      
   example code            01/01/70 00:00      
      timer 2            01/01/70 00:00      
      assembly code            01/01/70 00:00      
         sample code            01/01/70 00:00      
   Which CPU ?            01/01/70 00:00      
      8751            01/01/70 00:00      

Back to Subject List