SN32F100 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 125
Version 1.9
The fractional baud rate generator must be disabled (DIVADDVAL = 0) during auto-baud. Also, when auto-baud is
used, any write to
and
registers should be done before
The minimum and the maximum baud rates supported by UART are a function of UARTn_PCLK and the number of
data bits, stop bits and parity bits.
12.6.2 AUTO-BAUD MODES
When the SW is expecting an “AT” command, it configures the UART with the expected character format and sets the
ACR Start bit. The initial values in the divisor latches DLM and DLM don‘t care. Because of the “A” or “a” ASCII coding
(“A” = 0x41, “a” = 0x61), the UART Rx pin sensed start bit and the LSB of the expected character are delimited by two
falling edges. When the ACR Start bit is set, the auto-baud protocol will execute the following phases:
1.
On START bit setting, the baud rate measurement counter is reset and the RSR is reset. The RSR baud rate is
switched to the highest rate.
2.
A falling edge on URXD pin triggers the beginning of the start bit. The rate measuring counter will start counting
UARTn_PCLK cycles.
3.
During the receipt of the start bit, 16 pulses are generated on the RSR baud input with the frequency of the UART
input clock, guaranteeing the start bit is stored in the RSR.
4.
During the receipt of the start bit (and the character LSB for MODE = 0 in
counter will continue incrementing with the pre-scaled UART input clock (UARTn_PCLK).
5.
If MODE = 0, the rate counter will stop on next falling edge of the UART RX pin. If MODE = 1, the rate counter will
stop on the next rising edge of the URXD pin.
6.
The rate counter is loaded into
and the baud rate will be switched to normal operation.
After setting the DLM/DLL, the end of auto-baud interrupt ABEOINT in
register will be set, if enabled.
The RSR will now continue receiving the remaining bits of the character.
AUTO-BAUD RATE MODE 0 Waveform
bit1
bit3
bit4
bit5
bit6
Start
bit7
Parity
Stop
URXD
bit0
bit2
“A” (0x41) or “a” (0x61)
Start bit
LSB of “A” or “a”
Rate Counter
16 Cycles
16 Cycles
16 x Baud Rate
START bit in
UARTn_ABCTRL
AUTO-BAUD RATE MODE 1 Waveform
Содержание SN32F107
Страница 34: ...SN32F100 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 34 Version 1 9 0 Reserved R 0...
Страница 180: ...SN32F100 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 180 Version 1 9 20 2 LQFP 64 PIN...
Страница 181: ...SN32F100 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 181 Version 1 9 20 3 LQFP 80 PIN...