The 8051 Microcontroller and Embedded

(lily) #1
Department of Computer Scien

ce and Information Engineering

National Cheng Kung University, TAIWAN
HANEL

COUNTER PROGRAMMINGTCONRegister


‰TCON (timer control) register is an 8-bit register


TCON: Timer/Counter Control Register

IT0
IE0
IT1
IE1
TR0
TF0
TR1
TF1
The upper four bits are used to store the TF and TR bits of both timer 0 and 1

The lower 4 bits are set aside for controlling the interrupt bits
Free download pdf