at89lp2052-20xi ATMEL Corporation, at89lp2052-20xi Datasheet - Page 29

no-image

at89lp2052-20xi

Manufacturer Part Number
at89lp2052-20xi
Description
At89lp2052 8-bit Microcontroller With 2/4-kbyte Flash
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT89LP2052-20XI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
16.6
17. External Interrupts
3547H–MICRO–5/07
Timer/Counter Pin Configuration
Figure 16-6. Timer/Counter 1 PWM Mode 0
Figure 16-7. Timer/Counter 1 PWM Mode 1
In order to use the counter input function or pulse width modulation output feature of Timer 0 or
Timer 1, the Timer pins T0 (P3.4) and T1 (P3.5) must be configured appropriately. See
15.7 “Port Alternate Functions” on page
should be configured as input-only, or as bidirectional with P3.4 or P3.5 set to “1”. The counter
function may also be triggered by an internal event if T0 or T1 is configured in a bidirectional or
output mode and the port bit is toggled accordingly. To enable a PWM output on T0 or T1, the
pin must be configured in a bidirectional or output mode with P3.4 or P3.5 set to “1”. Setting the
PWM0EN or PWM1En bits in TCONB will not automatically configure the pins as outputs. The
PWM outputs will use a full CMOS push-pull driver if they are in the quasi-bidirectional or output
configurations.
The INT0 and INT1 external interrupt sources can be programmed to be level-activated or tran-
sition-activated by setting or clearing bit IT1 or IT0 in Register TCON. If ITx = 0, external
interrupt x is triggered by a detected low at the INTx pin. If ITx = 1, external interrupt x is nega-
tive edge-triggered. In this mode if successive samples of the INTx pin show a high in one cycle
INT1 Pin
INT1 Pin
GATE
GATE
TR1
TR1
OSC
OSC
Control
Control
22. For the external counter input function, T0 or T1
PSC1
(8 Bits)
(8 Bits)
RL1
TL1
(8 Bits)
TL1
AT89LP2052/LP4052
(8 Bits)
(8 Bits)
OCR1
(8 Bits)
(8 Bits)
RH1
TH1
OCR1
RH1
TH1
=
=
T1
T1
Section
29

Related parts for at89lp2052-20xi