PIC16C745/765
11.1
USART Baud Rate Generator (BRG)
The BRG supports both the asynchronous and syn-
chronous modes of the USART. It is a dedicated 8-bit
baud rate generator. The SPBRG register controls the
period of a free running 8-bit timer. In asynchronous
mode, bit BRGH (TXSTA<2>) also controls the baud
rate. In synchronous mode, bit BRGH is ignored.
Table 11-1 shows the formula for computation of the
baud rate for different USART modes which only apply
in master mode (internal clock).
Given the desired baud rate and F
INT
, the nearest inte-
ger value for the SPBRG register can be calculated
using the formula in Table 11-1. From this, the error in
baud rate can be determined.
It may be advantageous to use the high baud rate
(BRGH = 1) even for slower baud clocks. This is
because the F
INT
/(16(X + 1)) equation can reduce the
baud rate error in some cases.
Writing a new value to the SPBRG register causes the
BRG timer to be reset (or cleared). This ensures the
BRG does not wait for a timer overflow before output-
ting the new baud rate.
11.1.1
SAMPLING
The data on the RC7/RX/DT pin is sampled three times
near the center of each bit time by a majority detect cir-
cuit to determine if a high or a low level is present at the
RX pin.
TABLE 11-1:
SYNC
0
1
BAUD RATE FORMULA
BRGH = 0 (Low Speed)
(Asynchronous) Baud Rate = F
INT
/(64(SPBRG+1))
(Synchronous) Baud Rate = F
INT
/(4(SPBRG+1))
BRGH = 1 (High Speed)
Baud Rate= F
INT
/(16(SPBRG+1))
NA
TABLE 11-2:
Desired
Baud
300
1200
2400
4800
9600
19200
38400
57600
115200
230400
460800
921600
BAUD RATES FOR SYNCHRONOUS MODE
4 MHz
Actual
Baud
铮?/div>
铮?/div>
铮?/div>
4807.69
9615.38
19230.77
38461.54
58823.53
125000.00
250000.00
500000.00
铮?/div>
6 MHz
SPBRG
Actual
Baud
铮?/div>
铮?/div>
铮?/div>
铮?/div>
9615.38
19230.77
38461.54
57692.31
115384.62
250000.00
500000.00
铮?/div>
24 MHz
SPBRG
Actual
Baud
铮?/div>
铮?/div>
铮?/div>
铮?/div>
铮?/div>
铮?/div>
38461.54
57692.31
115384.62
230769.23
461538.46
% of
Error
铮?/div>
铮?/div>
铮?/div>
0.16
0.16
0.16
0.16
2.12
8.51
8.51
8.51
铮?/div>
% of
Error
铮?/div>
铮?/div>
铮?/div>
铮?/div>
0.16
0.16
0.16
0.16
0.16
8.51
8.51
铮?/div>
% of
Error
铮?/div>
铮?/div>
铮?/div>
铮?/div>
铮?/div>
铮?/div>
0.16
0.16
0.16
0.16
0.16
8.51
SPBRG
铮?/div>
铮?/div>
铮?/div>
铮?/div>
铮?/div>
铮?/div>
155
103
51
25
12
5
铮?/div>
铮?/div>
铮?/div>
207
103
51
25
16
7
3
1
铮?/div>
铮?/div>
铮?/div>
铮?/div>
铮?/div>
155
77
38
25
12
5
2
铮?/div>
1000000.00
漏
1999 Microchip Technology Inc.
Advanced Information
DS41124A-page 77
prev
next
PIC16C745 PDF文件相关型号
PIC16C765
PIC16C745相关型号PDF文件下载
-
型号
版本
描述
厂商
下载
-
英文版
8-Pin FLASH-Based 8-Bit CMOS Microcontrollers
-
英文版
8-Pin, 8-Bit CMOS Microcontroller with EEPROM Data Memory
MICROCHIP ...
-
英文版
8-Pin, 8-Bit CMOS Microcontroller with A/D Converter and EEP...
MICROCHIP ...
-
英文版
8-Pin, 8-Bit CMOS Microcontrollers
MICROCHIP ...
-
英文版
EPROM Memory Programming Specification
MICROCHIP ...
-
英文版
8-Pin FLASH-Based 8-Bit CMOS Microcontrollers
MICROCHIP ...
-
英文版
Microcontroller
-
英文版
Microcontroller
-
英文版
Microcontroller
ETC
-
英文版
EPROM-Based 8-Bit CMOS Microcontroller
-
英文版
8-Pin, 8-Bit CMOS Microcontrollers
-
英文版
8-Pin, 8-Bit CMOS Microcontrollers
MICROCHIP ...
-
英文版
ETC
-
英文版
EPROM Memory Programming Specification
-
英文版
EPROM Memory Programming Specification
MICROCHIP ...
-
英文版
28-Pin Programmable Mixed Signal Controller
-
英文版
EPROM Memory Programming Specification
-
英文版
Microcontroller
ETC
-
英文版
Microcontroller
ETC
-
英文版
EPROM/ROM-Based 8-Bit CMOS Microcontroller Series