SN32F760 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 160
Version 2.0
register will get set if the interrupt is enabled (ABTOIE bit in
register is set and the auto-baud has completed successfully).
The auto-baud interrupts have to be cleared by setting the corresponding ABTOINTCLR and ABEOIE bits in
The fractional baud rate generator must be disabled (DIVADDVAL = 0) during auto-baud. Also, when auto-baud is
used, any write to
registers should be done before
write. The minimum and the maximum baud rates supported by USART are a function of USARTn_PCLK and the
number of data bits, stop bits and parity bits.
14.8.2 AUTO-BAUD MODES
When the SW is expecting an “AT” command, it configures the USART 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 USART 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
USARTn_PCLK cycles.
3.
During the receipt of the start bit, 16 pulses are generated on the RSR baud input with the frequency of the
USART 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 USART input clock (USARTn_PCLK).
5.
If MODE = 0, the rate counter will stop on next falling edge of the USART 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
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 in
USARTn_ABCTRL
Start bit
LSB of “A” or “a”
Rate Counter
16 x Baud Rate
16 Cycles
16 Cycles
AUTO-BAUD RATE MODE 1 Waveform
Содержание SN32F755
Страница 218: ...SN32F760 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 218 Version 2 0 22 2 LQFP 64 PIN...
Страница 220: ...SN32F760 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 220 Version 2 0 22 4 QFN 46 PIN...
Страница 221: ...SN32F760 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 221 Version 2 0 22 5 QFN 33 PIN 5x5...