Timer/Counter 0 Or 1 In Mode 0 (13-Bit Counter) - Philips P89LPC920 User Manual

80c51 8-bit microcontroller with two-clock core
Table of Contents

Advertisement

Philips Semiconductors
TIMERS 0 AND 1
TCON
Address: 88h
Bit addressable
Reset Source(s): Any reset
Reset Value: 00000000B
BIT
SYMBOL
TCON.7
TF1
TCON.6
TR1
TCON.5
TF0
TCON.4
TR0
TCON.3
IE1
TCON.2
IT1
TCON.1
IE0
TCON.0
IT0
PCLK
Tn Pin
TRn
Gate
INTn Pin
2003 Dec 8
7
6
TF1
TR1
FUNCTION
Timer 1 overflow flag. Set by hardware on Timer/Counter overflow. Cleared by hardware
when the interrupt is processed, or by software (except in mode 6, see above, when it is
cleared in hardware).
Timer 1 Run control bit. Set/cleared by software to turn Timer/Counter 1 on/off.
Timer 0 overflow flag. Set by hardware on Timer/Counter overflow. Cleared by hardware
when the processor vectors to the interrupt routine, or by software. (except in mode 6, see
above, when it is cleared in hardware)
Timer 0 Run control bit. Set/cleared by software to turn Timer/Counter 0 on/off.
Interrupt 1 Edge flag. Set by hardware when external interrupt 1 edge is detected. Cleared
by hardware when the interrupt is processed, or by software.
Interrupt 1 Type control bit. Set/cleared by software to specify falling edge/low level
triggered external interrupts.
Interrupt 0 Edge flag. Set by hardware when external interrupt 0 edge is detected. Cleared
by hardware when the interrupt is processed, or by software.
Interrupt 0 Type control bit. Set/cleared by software to specify falling edge/low level
triggered external interrupts.
Figure 7-3: Timer/Counter Control register (TCON)
C/T = 0
Control
C/T = 1
Figure 7-4: Timer/Counter 0 or 1 in Mode 0 (13-bit counter)
5
4
3
TF0
TR0
IE1
TLn
THn
(5-bits)
(8-bits)
Toggle
44
User's Manual - Preliminary -
P89LPC920/921/922
2
1
0
IT1
IE0
IT0
Overflow
TFn
Interrupt
Tn Pin
ENTn

Advertisement

Table of Contents
loading

This manual is also suitable for:

P89lpc921P89lpc922

Table of Contents