SN32F760 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 159
Version 2.0
14.7.2 AUTO-CTS
The Auto-CTS function is enabled when CTSEN=1. If Auto-CTS is enabled, the transmitter circuitry checks the UCTS
input before sending the next data byte. When UCTS is active (low), the transmitter sends the next byte. To stop the
transmitter from sending the following byte, UCTS must be released before the middle of the last stop bit that is
currently being sent. In Auto-CTS mode, a change of the UCTS signal does not trigger a modem status interrupt unless
the CTS Interrupt Enable bit is set, but the DCTS bit in the
MSIE
CTSEN
Delta CTS (DCTS)
MODEM status interrupt
0
X
X
X
1
0
1
O
1
1
0
X
1
1
1
O
The Auto-CTS function typically eliminates the need for CTS interrupts. When flow control is enabled, a UCTS state
change does not trigger host interrupts because the device automatically controls its own transmitter. Without
Auto-CTS, the transmitter sends any data present in the transmit FIFO and a receiver overrun error can result.
bit0
Start
bit7
Stop
...
Idle Status
UTXD
...
bit0
Start
bit7
Stop
...
...
bit0
Start
bit7
Stop
...
UCTS
During transmission of the second character the UCTS signal is negated. The third character is not sent thereafter. The
USART maintains 1 on UTXD as long as UCTS is negated (high). As soon as UCTS is asserted, transmission resumes
and a start bit is sent followed by the data bits of the next character.
14.8 AUTO-BAUD FLOW
14.8.1 AUTO-BAUD
The USART auto-
baud function can be used to measure the incoming baud rate based on the “AT” protocol (Hayes
command). If enabled the auto-baud feature will measure the bit time of the receive data stream and set the divisor
latch registers
and
Auto-baud function is started by setting the START bit in
register, and can be stopped by clearing
the START bit. The START bit will clear once auto-baud has finished and reading the bit will return the status of
auto-baud (pending/finished). When auto-baud function is started, FIFO will be cleared, not available to write the TX
FIFO, and the transmitter will stop transmitting until auto-baud function finishes or be stopped.
Two auto-baud measuring modes are available which can be selected by the MODE bit in
In Mode 0 the baud rate is measured on two subsequent falling edges of the USART RX pin (the falling edge of the
start bit and the falling edge of the least significant bit). In Mode 1 the baud rate is measured between the falling edge
and the subsequent rising edge of the USART RX pin (the length of the start bit).
The AUTORESTART bit in
register can be used to automatically restart baud rate measurement if a
timeout occurs (the rate measurement counter overflows). If this bit is set, the rate measurement will restart at the next
falling edge of the URXD pin.
The auto-baud function can generate two interrupts.
The ABTOINT interrupt in
register will get set if the interrupt is enabled (ABTOIE bit in
register is set and the auto-baud rate measurement counter overflows).
Содержание 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...