AT89LP2052-20SU Atmel, AT89LP2052-20SU Datasheet - Page 29
![IC 8051 MCU FLASH 2K 20SOIC](/photos/6/80/68042/453-20-soic_sml.jpg)
AT89LP2052-20SU
Manufacturer Part Number
AT89LP2052-20SU
Description
IC 8051 MCU FLASH 2K 20SOIC
Manufacturer
Atmel
Series
89LPr
Datasheet
1.AT89LP2052-20PU.pdf
(94 pages)
Specifications of AT89LP2052-20SU
Core Processor
8051
Core Size
8-Bit
Speed
20MHz
Connectivity
SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
15
Program Memory Size
2KB (2K x 8)
Program Memory Type
FLASH
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
2.4 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
20-SOIC (7.5mm Width)
Processor Series
AT89x
Core
8051
Data Bus Width
8 bit
Data Ram Size
256 B
Interface Type
UART, SPI
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
15
Number Of Timers
2
Operating Supply Voltage
2.4 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
PK51, CA51, A51, ULINK2
Development Tools By Supplier
AT89ISP
Minimum Operating Temperature
- 40 C
Package
20SOIC W
Device Core
8051
Family Name
AT89
Maximum Speed
20 MHz
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
Lead Free Status / Rohs Status
Details
Table 16-3.
16.5
3547J–MICRO–10/09
Bit
Symbol
PWM1EN
PWM0EN
PSC12
PSC11
PSC10
PSC02
PSC01
PSC00
TCONB = 91H
Not Bit Addressable
Pulse Width Modulation
PWM1EN
7
Configures Timer 1 for Pulse Width Modulation output on T1 (P3.5).
Configures Timer 0 for Pulse Width Modulation output on T0 (P3.4).
Prescaler for Timer 1 Mode 0. The number of active bits in TL1 equals PSC1 + 1. After reset PSC1 = 100B which
enables 5 bits of TL1 for compatibility with the 13-bit Mode 0 in AT89S2051.
Prescaler for Timer 0 Mode 0. The number of active bits in TL0 equals PSC0 + 1. After reset PSC0 = 100B which
enables 5 bits of TL0 for compatibility with the 13-bit Mode 0 in AT89C52.
Function
TCONB
– Timer/Counter Control Register B
PWM0EN
Timer 0 and Timer 1 may be independently configured as 8-bit asymmetrical pulse width modu-
lators (PWM) by setting the PWM0EN or PWM1EN bits in TCONB, respectively. In PWM Mode
the generated waveform is output on the timer's pin, T0 or T1. C/T must be set to “0” when in
PWM mode. In Timer 0's PWM mode, TH0 acts as an 8-bit counter while RH0 stores the 8-bit
compare value. When TH0 is 00H the PWM output is set high. When the TH0 count reaches the
value stored in RH0 the PWM output is set low. Therefore, the pulse width is proportional to the
value in RH0. To prevent glitches writes to RH0 only take effect on the FFH to 00H overflow of
TH0. Timer 1 has the same behavior using TH1 and RH1. See
example. Setting RH0 to 00H will keep the PWM output low.
The PWM will only function if the timer is in Mode 0 or Mode 1. In Mode 0, TL0 acts as a logarith-
mic prescaler driving TH0 (see
value. In Mode 1, TL0 provides linear prescaling with an 8-bit auto-reload from RL0 (see
16-7).
Figure 16-5. Asymmetrical Pulse Width Modulation
6
PSC12
5
PSC11
4
Figure
PSC10
16-6). The PSC0 bits in TCONB control the prescaler
3
PSC02
2
AT89LP2052/LP4052
Counter Value (TH0)
Reset Value = 0010 0100B
Figure 16-5
PSC01
1
Compare Value (RH0)
PWM Output (T0)
for PWM waveform
PSC00
0
Figure
29