AT89LP216-20PU Atmel, AT89LP216-20PU Datasheet - Page 33

no-image

AT89LP216-20PU

Manufacturer Part Number
AT89LP216-20PU
Description
MCU 8051 2K FLASH 20MHZ 16-PDIP
Manufacturer
Atmel
Series
89LPr
Datasheet

Specifications of AT89LP216-20PU

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
14
Program Memory Size
2KB (2K x 8)
Program Memory Type
FLASH
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
2.4 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
16-DIP (0.300", 7.62mm)
Processor Series
AT89x
Core
8051
Data Bus Width
8 bit
Data Ram Size
128 B
Interface Type
UART, SPI
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
14
Number Of Timers
2
Operating Supply Voltage
2.4 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
Through Hole
3rd Party Development Tools
PK51, CA51, A51, ULINK2
Development Tools By Supplier
AT89ISP
Minimum Operating Temperature
- 40 C
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
Lead Free Status / Rohs Status
 Details
14.5.1
14.5.2
14.5.3
3621E–MICRO–11/10
Mode 0 – 8-bit PWM with 8-bit Logarithmic Prescaler
Mode 1 – 8-bit PWM with 8-bit Linear Prescaler
Mode 2 – 8-bit Frequency Generator
In Mode 0, TLx acts as a logarithmic prescaler driving 8-bit counter THx (see
PSCx bits in TCONB control the prescaler value. On THx overflow, the duty cycle value in RHx
is transferred to OCRx and the output pin is set high. When the count in THx matches OCRx, the
output pin is cleared low. The following formulas give the output frequency and duty cycle for
Timer 0 in PWM Mode 0. Timer 1 in PWM Mode 0 is identical to Timer 0.
Figure 14-6. Timer/Counter 1 PWM Mode 0
In Mode 1, TLx provides linear prescaling with an 8-bit auto-reload from RLx (see
page
THx overflow, the duty cycle value in RHx is transferred to OCRx and the output pin is set high.
When the count in THx matches OCRx, the output pin is cleared low. The following formulas
give the output frequency and duty cycle for Timer 0 in PWM Mode 1. Timer 1 in PWM Mode 1 is
identical to Timer 0.
Timer 0 in PWM Mode 2 functions as an 8-bit auto-reload timer, the same as normal Mode 2,
with the exception that the output pin T0 is toggled at every TL0 overflow (see
14-9). Timer 1 in PWM Mode 2 is identical to Timer 0. PWM Mode 2 can be used to output a
square wave of varying frequency. THx acts as an 8-bit counter. The following formula gives the
output frequency for Timer 0 in PWM Mode 2.
34). On TLx overflow, TLx is loaded with the value of RLx. THx acts as an 8-bit counter. On
INT1 Pin
GATE
OSC
Mode 2:
TR1
Mode 0:
Mode 1:
÷TPS
f
out
Control
=
f
f
out
out
Oscillator Frequency
------------------------------------------------------ -
2
=
=
Duty Cycle %
Duty Cycle %
×
Oscillator Frequency
------------------------------------------------------ -
Oscillator Frequency
------------------------------------------------------ -
256
(
PSC1
256 TH0
256
×
×
(8 Bits)
(
TL1
256 RL0
2
PSC0
)
=
=
100
100
+
×
1
(8 Bits)
(8 Bits)
OCR1
-------------------- -
TPS
RH1
)
TH1
×
×
×
×
1
RH0
----------- -
RH0
----------- -
256
256
+
-------------------- -
TPS
-------------------- -
TPS
=
1
1
1
+
+
1
1
AT89LP216
Figure
Figures 14-8 and
Figure 14-7 on
14-6). The
T1
33

Related parts for AT89LP216-20PU