The 8051 Microcontroller and Embedded

(lily) #1
Department of Computer Scien

ce and Information Engineering

National Cheng Kung University, TAIWAN
HANEL
PROGRAMMING

TIMERSMode 2 Programming(cont’)



  1. When the TL register rolls from FFH to 0 and TF is set to 1, TL is reloaded automatically with the original value kept by the TH registerƒTo repeat the process, we must simply clear TF and let it go without any need by the programmer to reload the original valueƒThis makes mode 2 an auto-reload, in contrast with mode 1 in which the programmer has to reload TH and TL
    XTALoscillator


÷^12

TR

TL TH

C/T = 0

TF TF goes high when FF

Overflow flag →^0
Reload
Free download pdf