AT89LP214 Atmel Corporation, AT89LP214 Datasheet - Page 41

no-image

AT89LP214

Manufacturer Part Number
AT89LP214
Description
Manufacturer
Atmel Corporation
Datasheet

Specifications of AT89LP214

Flash (kbytes)
2 Kbytes
Max. Operating Frequency
20 MHz
Cpu
8051-1C
Max I/o Pins
12
Spi
1
Uart
1
Sram (kbytes)
0.125
Operating Voltage (vcc)
2.4 to 5.0
Timers
2
Isp
SPI/OCD
Watchdog
Yes
17.2
17.2.1
3538E–MICRO–11/10
Baud Rates
Using Timer 1 to Generate Baud Rates
The baud rate in Mode 0 is fixed as shown in the following equation:
The baud rate in Mode 2 depends on the value of the SMOD1 bit in Special Function Register
PCON.7. If SMOD1 = 0 (the value on reset), the baud rate is 1/32 of the oscillator frequency. If
SMOD1 = 1, the baud rate is 1/16 of the oscillator frequency, as shown in the following equation:
The Timer 1 overflow rate determines the baud rates in Modes 1 and 3. When Timer 1 is the
baud rate generator, the baud rates are determined by the Timer 1 overflow rate and the value
of SMOD1 according to the following equation:
The Timer 1 interrupt should be disabled in this application. The Timer itself can be configured
for either timer or counter operation in any of its 3 running modes. In the most typical applica-
tions, it is configured for timer operation in auto-reload mode (high nibble of TMOD = 0010B). In
this case, the baud rate is given by the following formula:
Programmers can achieve very low baud rates with Timer 1 by configuring the Timer to run as a
16-bit auto-reload timer (high nibble of TMOD = 0001B). In this case, the baud rate is given by
the following formula.
Table 17-2
Table 17-2.
Mode 0: 1 MHz
Mode 2: 375K
Baud Rate
62.5K
19.2K
137.5
9.6K
4.8K
2.4K
1.2K
110
110
lists commonly used baud rates and how they can be obtained from Timer 1.
Commonly Used Baud Rates Generated by Timer 1 (TPS = 0000B)
Modes 1, 3
Modes 1, 3
Baud Rate
Baud Rate
Mode 2 Baud Rate
Modes 1, 3
Baud Rate
f
OSC
11.059
11.059
11.059
11.059
11.059
11.986
Mode 0 Baud Rate
12
12
12
(MHz)
2
6
=
=
2
------------------- -
2
------------------- -
=
SMOD1
SMOD1
32
32
2
------------------- -
SMOD1
=
32
SMOD1
×
×
2
------------------- -
SMOD1
X
0
1
1
0
0
0
0
0
0
0
Oscillator Frequency
------------------------------------------------------ -
Oscillator Frequency
------------------------------------------------------ -
[
32
256
=
×
[
(Timer 1 Overflow Rate)
Oscillator Frequency
------------------------------------------------------ -
256
×
(
RH1 RL1
(Oscillator Frequency)
(
TH1
C/T
,
X
X
0
0
0
0
0
0
0
0
0
2
)
]
)
]
×
×
AT89LP213/214
-------------------- -
TPS
-------------------- -
TPS
Mode
Timer 1
X
X
2
2
2
2
2
1
1
1
1
1
1
+
+
1
1
Reload Value
FEE0H
F55CH
F958H
F304H
DCH
DCH
B8H
F4H
70H
X
X
41

Related parts for AT89LP214