
548 EMBEDDED SYSTEMS
In Example 14.12, how does the counter count ‘1000’ events?
An initial count of (65,536 – 1000 = 64536 = FC18H) is loaded in the registers. For each
incoming event, this count gets incremented and when it reaches the maximum, TF1 is
set, which is detected.
With this, we come to the end of one part of our discussion of timers. Next, we start
our study of interrupts and then timers will once again be talked about. We then will see
how timers can be used more effi ciently, when operated in the interrupt driven mode.
14.5 | Interrupts of 8051
Interrupts are of prime importance for any processor. In Chapter 2, the philosophy of ...