Department of Computer Scien
ce and Information Engineering
National Cheng Kung University, TAIWAN
HANEL
COUNTER PROGRAMMINGC/T Bit in TMOD Register(cont’)
TR
TH
TL
C/T = 1
TF
TF goes high when FFFF
Overflow flag →^0
Timer external input pin 3.4 or 3.5
TR
TL TH
C/T = 1
TF TF goes high when FF
→^0
Overflow flag
Reload
Timer with external input (Mode 1)Timer with external input (Mode 2)Timer external input pin 3.4 or 3.5