datasheetbank_Logo
数据手册搜索引擎和 Datasheet免费下载 PDF

ST7FMC2N6B6(2004) 查看數據表(PDF) - STMicroelectronics

零件编号
产品描述 (功能)
生产厂家
ST7FMC2N6B6 Datasheet PDF : 294 Pages
First Prev 101 102 103 104 105 106 107 108 109 110 Next Last
ST7MC1/ST7MC2
LINSCISERIAL COMMUNICATION INTERFACE (SCI Mode) (Contd)
9.5.5.4 Conventional Baud Rate Generation
9.5.5.5 Extended Baud Rate Generation
The baud rate for the receiver and transmitter (Rx
and Tx) are set independently and calculated as
follows:
fCPU
Tx =
(16*PR)*TR
fCPU
Rx =
(16*PR)*RR
with:
PR = 1, 3, 4 or 13 (see SCP[1:0] bits)
TR = 1, 2, 4, 8, 16, 32, 64,128
(see SCT[2:0] bits)
RR = 1, 2, 4, 8, 16, 32, 64,128
(see SCR[2:0] bits)
All these bits are in the SCIBRR register.
The extended prescaler option gives a very fine
tuning on the baud rate, using a 255 value prescal-
er, whereas the conventional Baud Rate Genera-
tor retains industry standard software compatibili-
ty.
The extended baud rate generator block diagram
is described in Figure 62.
The output clock rate sent to the transmitter or to
the receiver will be the output from the 16 divider
divided by a factor ranging from 1 to 255 set in the
SCIERPR or the SCIETPR register.
Note: the extended prescaler is activated by set-
ting the SCIETPR or SCIERPR register to a value
other than zero. The baud rates are calculated as
follows:
Example: If fCPU is 8 MHz (normal mode) and if
PR=13 and TR=RR=1, the transmit and receive
baud rates are 38400 baud.
Note: the baud rate registers MUST NOT be
changed while the transmitter or the receiver is en-
abled.
Tx =
fCPU
Rx =
fCPU
16*ETPR*(PR*TR)
16*ERPR*(PR*TR)
with:
ETPR = 1,..,255 (see SCIETPR register)
ERPR = 1,.. 255 (see SCIERPR register)
109/294
1

Share Link: 

datasheetbank.com [ Privacy Policy ] [ Request Datasheet ] [ Contact Us ]