ADUC831 Analog Devices, ADUC831 Datasheet - Page 58

no-image

ADUC831

Manufacturer Part Number
ADUC831
Description
Precision Analog Microcontroller: 1.3MIPS 8052 MCU + 62kB Flash + 8-Ch 12-Bit ADC + Dual 12-Bit DAC
Manufacturer
Analog Devices
Datasheet

Specifications of ADUC831

Mcu Core
8052
Mcu Speed (mips)
1.3
Sram (bytes)
2304Bytes
Gpio Pins
34
Adc # Channels
8
Other
PWM

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ADUC831BCP
Manufacturer:
ADI
Quantity:
150
Part Number:
ADUC831BCPZ
Manufacturer:
ADI/亚德诺
Quantity:
20 000
Part Number:
ADUC831BS
Manufacturer:
SHARP
Quantity:
21 512
Part Number:
ADUC831BS
Manufacturer:
ADI
Quantity:
150
Part Number:
ADUC831BS
Manufacturer:
ADI/亚德诺
Quantity:
20 000
Part Number:
ADUC831BSB20
Manufacturer:
MINI
Quantity:
892
Part Number:
ADUC831BSZ
Manufacturer:
Analog Devices Inc
Quantity:
10 000
Part Number:
ADUC831BSZ
Manufacturer:
AD
Quantity:
20 000
Part Number:
ADUC831BSZ-REEL
Manufacturer:
AD
Quantity:
1 200
Part Number:
ADUC831BSZ-REEL
Manufacturer:
Analog Devices Inc
Quantity:
10 000
ADuC831
Timer 3 Generated Baud Rates
The high integer dividers in a UART block mean that high speed
baud rates are not always possible using some particular crystals.
For example, using a 12 MHz crystal, a baud rate of 115200 is
not possible. To address this problem, the ADuC831 has added
a dedicated baud rate timer (Timer 3) specifically for generating
highly accurate baud rates.
Timer 3 can be used instead of Timer 1 or Timer 2 for generating
very accurate high speed UART baud rates including 115200
and 230400. Timer 3 also allows a much wider range of baud
rates to be obtained. In fact, every desired bit rate from 12 bit/s
to 393216 bit/s can be generated to within an error of ± 0.8%.
Timer 3 also frees up the other three timers, allowing them to
be used for different applications. A block diagram of Timer 3 is
shown in Figure 54 below.
Two SFRs (T3CON and T3FD) are used to control Timer 3.
T3CON is the baud rate control SFR, allowing Timer 3 to be
used to set up the UART baud rate, and setting up the binary
divider (DIV).
Bit
7
6
5
4
3
2
1
0
FRACTIONAL
DIVIDER
CORE
CLK
Name
T3BAUDEN
DIV2
DIV1
DIV0
Table XXVI. T3CON SFR Bit Designations
Figure 54. Timer 3, UART Baud Rates
(1 + T3FD/64)
2
16
DIV
2
T3 RX/TX
CLOCK
Description
T3UARTBAUD Enable
Set to enable Timer 3 to generate
the baud rate. When set, PCON.7,
T2CON.4 and T2CON.5 are ignored.
Cleared to let the baud rate be
generated as per a standard 8052.
Binary Divider Factor.
DIV2 DIV1 DIV0 Bin Divider
RX CLOCK (FIG 53)
0
0
0
0
1
1
1
1
TIMER 1/TIMER 2
1
1
0
0
1
1
0
0
1
1
TX CLOCK (FIG 53)
0
0
TIMER 1/TIMER 2
0
1
0
1
0
1
0
1
T3EN
1
1
1
1
1
1
1
1
RX CLOCK
TX CLOCK
–58–
The appropriate value to write to the DIV2-1-0 bits can be calcu-
lated using the following formula where f
frequency:
Note: The DIV value must be rounded down.
T3FD is the fractional divider ratio required to achieve the
required baud rate. We can calculate the appropriate value for
T3FD using the following formula.
Note: T3FD should be rounded to the nearest integer.
Once the values for DIV and T3FD are calculated the actual
baud rate can be calculated using the following formula.
For example, to get a baud rate of 115200 while operating at
11.0592 MHz:
Therefore, the actual baud rate is 115200 bit/s.
Ideal
Baud
230400 11.0592
115200 11.0592
57600
38400
19200
9600
230400 12
115200 12
57600
38400
19200
9600
230400 14
115200 14
57600
38400
19200
9600
230400 16
115200 16
57600
38400
19200
9600
DIV
T FD
Table XXVII. Commonly Used Baud Rates Using Timer 3
3
=
=
LOG
11.0592
11.0592
11.0592
11.0592
12
12
12
12
14
14
14
14
16
16
16
16
Actual Baud Rate =
Crystal
(
2 11059200
×
(
11059200 32 115200
DIV
T FD
3
=
DIV
0
1
2
3
4
5
0
1
2
3
4
5
0
1
2
3
4
5
1
2
3
3
4
5
log
=
)
/
/
2
(
(
2
DIV
32 Baud Rate
1
×
2
×
log( ) 2
2
×
T3CON
80H
81H
82H
83H
84H
85H
80H
81H
82H
83H
84H
85H
80H
81H
82H
83H
84H
85H
81H
82H
83H
83H
84H
85H
×
115200
×
DIV
f
Baud Rate
CORE
f
CORE
2
×
×
)
(T3FD+ 64)
)
CORE
f
)
CORE
/
64
LOG
20H
20H
20H
08H
08H
08H
28H
28H
28H
0EH
0EH
0EH
3AH
3AH
3AH
1BH
1BH
1BH
05H
05H
05H
28H
28H
28H
T3FD
is the crystal
=
32 20
2 1 58 1
=
=
%
Error
.
0.0
0.0
0.0
0.0
0.0
0.0
0.16
0.16
0.16
0.16
0.16
0.16
0.39
0.39
0.39
0.16
0.16
0.16
0.64
0.64
0.64
0.16
0.16
0.16
REV. 0
H
=

Related parts for ADUC831