at89lp214-20xi ATMEL Corporation, at89lp214-20xi Datasheet - Page 40

no-image

at89lp214-20xi

Manufacturer Part Number
at89lp214-20xi
Description
At89lp213 8-bit Microcontroller With 2k Bytes Flash
Manufacturer
ATMEL Corporation
Datasheet
17.2
17.2.1
40
Baud Rates
AT89LP213/214
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
------------------- -
×
×
X
SMOD1
0
1
1
0
0
0
0
0
0
0
Oscillator Frequency
------------------------------------------------------ -
Oscillator Frequency
------------------------------------------------------ -
32
[
=
×
256
(Timer 1 Overflow Rate)
[
Oscillator Frequency
------------------------------------------------------ -
256
×
(
(Oscillator Frequency)
RH1,RL1
(
TH1
C/T
X
X
0
0
0
0
0
0
0
0
0
2
)
]
)
]
×
×
------------------- -
TPS
------------------- -
TPS
Mode
Timer 1
X
X
2
2
2
2
2
1
1
1
1
1
1
+
+
1
1
3538B–MICRO–11/07
Reload Value
FEE0H
F55CH
F958H
F304H
DCH
DCH
F4H
B8H
70H
X
X

Related parts for at89lp214-20xi