By: Masud-ul-Hasan
6
Timer Modes
•Timer Mode 0 (13-bit Timer):
–Timer high-byte (THx) is cascaded with the 5 least-significant bits of the timer low-byte (TLx) to form a 13-bit timer, where x = 0 or 1.
–Upper 3-bits of TLx are not used.
–Overflow occurs on the 1FFFH-to-0000H and sets the timer overflow flag.
–MSB is THx bit 7, and LSB is TLx bit 0.
–MOV TMOD, #00H ; setting both timers to mode 0
Timer
clock
Overflow
flag
TLx
5-bits
THx
8-bits
TFx
Interrupt
7
0
4
0