![FTDI FT51A Скачать руководство пользователя страница 58](http://html1.mh-extra.com/html/ftdi/ft51a/ft51a_application-note_2341158058.webp)
Application Note
AN_289 FT51A Programming Guide
Version 1.0
Document Reference No.: FT_000962 Clearance No.: FTDI# 483
57
Copyright © 2015 Future Technology Devices International Limited
2.7.11
UART Baud Rate Example
Baud Rate Example
The Baud Rate is defined by the value programmed into registers
UART_BAUD_0
,
UART_BAUD_1
and
UART_BAUD_2
. This value is used as a divisor of the system clock frequency.
For a system clock frequency of 48MHz. The default value of the
UART_BAUD_0, UART_BAUD_1, and
UART_BAUD_2
will be 0x88, 0x13 and 0x00 respectively.
This will set the baud rate divisor to be 0x1388 or 5000
dec
.
The final baud rate will be 48000000/5000 = 9600 baud
Figure 2.5 UART Baud Rate Example Calculations
2.7.12
UART_FLOW_CTRL
Bit
Position
Bit Field Name
Type
Reset
Description
7..6
Reserved
RFU
0
Reserved
5
dtr_n_reg
R/W
0
When 0, the dtr_n signal is under the
control of the flow control block
When 1, the dtr_n output will be held
high
4
rts_n_reg
R/W
0
When 0, the rts_n signal is under the
control of the flow control block
When 1, the rts_n output will be held
high
3
Reserved
RFU
0
Reserved
2
Reserved
RFU
0
Reserved
1
dtr_dsr
R/W
0
When set, flow control is set to
DTR_DSR mode
0
rts_cts
R/W
0
When set, flow control is set to
RTS/CTS mode
Table 2.68 UART Flow Control Register