Department of Computer Science and Information EngineeringNational Cheng Kung University, TAIWAN
HANELCOUNTER 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 1SETB TR0 = SETB TCON.4CLR TR0 = CLR TCON.4SETB TF0 = SETB TCON.5CLR TF0 = CLR TCON.5
Equivalent instruction for For timer 0the Timer Control Register