p87lpc761bdh NXP Semiconductors, p87lpc761bdh Datasheet - Page 32

no-image

p87lpc761bdh

Manufacturer Part Number
p87lpc761bdh
Description
Low Power, Low Price, Low Pin Count 16 Pin Microcontroller With 2 Kbyte Otp
Manufacturer
NXP Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P87LPC761BDH
Manufacturer:
NXP
Quantity:
10
Part Number:
P87LPC761BDH
Manufacturer:
PHILIPS
Quantity:
5 000
Part Number:
P87LPC761BDH
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
p87lpc761bdh (OT
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
p87lpc761bdh112
Manufacturer:
NXP Semiconductors
Quantity:
38 390
Philips Semiconductors
Mode 0
Putting either Timer into Mode 0 makes it look like an 8048 Timer,
which is an 8-bit Counter with a divide-by-32 prescaler. Figures 24
and 25 show Mode 0 operation.
In this mode, the Timer register is configured as a 13-bit register. As
the count rolls over from all 1s to all 0s, it sets the Timer interrupt
flag TFn. The count input is enabled to Timer 0 when TR0 = 1 and
either GATE = 0 or INT0 = 1. (Setting GATE = 1 allows the Timer to
be controlled by external input INT0, to facilitate pulse width
2002 Mar 07
Low power, low price, low pin count (16 pin)
microcontroller with 2 kbyte OTP
TCON
OSC/6
OSC/12
BIT
TCON.7
TCON.6
TCON.5
TCON.4
TCON.3, 2
TCON.1
TCON.0
INT0 PIN
T0 PIN
GATE
TR0
Address: 88h
Bit Addressable
OR
SYMBOL
TF1
TR1
TF0
TR0
IE0
IT0
TF1
7
FUNCTION
Timer 1 overflow flag. Set by hardware on Timer/Counter overflow. Cleared by hardware when the
interrupt is processed, or by software.
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.
Timer 0 Run control bit. Set/cleared by software to turn Timer/Counter 0 on/off.
Reserved (must be 0).
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 24. Timer/Counter 0 in Mode 0 (13-Bit Timer/Counter)
C/T = 1
C/T = 0
TR1
Figure 23. Timer/Counter Control Register (TCON)
6
TF0
5
CONTROL
TR0
4
29
3
measurements). TRn is a control bit in the Special Function Register
TCON (Figure 23). The GATE bit is in the TMOD register (TMOD.3).
The 13-bit register consists of all 8 bits of THn and the lower 5 bits
of TLn. The upper 3 bits of TLn are indeterminate and should be
ignored. Setting the run flag (TRn) does not clear the registers.
Mode 0 operation is slightly different for Timer 0 and Timer 1. See
Figures 24 and 25.
(5 BITS)
TL0
2
(8 BITS)
IE0
TH0
1
TOGGLE
OVERFLOW
IT0
0
T0OE
TF0
P87LPC761
Reset Value: 00h
SU01543
INTERRUPT
Preliminary data
T0 PIN
SU01544

Related parts for p87lpc761bdh