The 8051 Microcontroller and Embedded

(lily) #1
Department of Computer Scien

ce and Information Engineering

National Cheng Kung University, TAIWAN
HANEL

COUNTER PROGRAMMINGTCONRegister(cont’)


‰TCON register is a bit-addressable register


SETB TR1 = SETB TCON.6CLR TR1 = CLR TCON.6SETB TF1 = SETB TCON.7CLR TF1 = CLR TCON.7
For timer 1

SETB TR0 = SETB TCON.4CLR TR0 = CLR TCON.4SETB TF0 = SETB TCON.5CLR TF0 = CLR TCON.5
Equivalent instruction for For timer 0

the Timer Control Register
Free download pdf