Figure 6.12-3 Auto-Baud Rate Measurement - Nuvoton ISD94124BYI Technical Reference Manual

Isd arm cortex-m4f soc
Table of Contents

Advertisement

6.12.5.3 UART Controller Auto-Baud Rate Function Mode
The ISD94100 Auto-Baud Rate function measures the baud rate of in-coming data from UART RX pin
automatically. When the Auto-Baud Rate measurement is finished, the measuring baud rate is loaded
into BRD (UART_BAUD[15:0]).
Both BAUDM1 (UART_BAUD[29]) and BAUDM0 (UART_BAUD[28]) are set to 1 automatically. UART
RX data from Start bit to 1
detection frame.
ABRDBITS
2
bit time from Start bit to the 1
(UART_ALTCTL[20:19]). Setting ABRDEN (UART_ALTCTL[18]) is to enable auto-baud rate function.
In beginning stage, the UART RX is kept at 1. Once falling edge is detected, START bit is received. The
auto-baud rate counter is reset and starts counting. The auto-baud rate counter will be stop when the
st
1
rising edge is detected. Then, auto-baud rate counter value divided by ABRDBITS
(UART_ALTCTL[20:19])
(UART_ALTCTL[18]) is cleared. Once the auto-baud rate measurement is finished, the ABRDIF
(UART_FIFOSTS[1]) is set. When auto-baud rate counter is overflow, ABRDTOIF (UART_FIFOSTS[2])
is set. ABRDIF (UART_FIFOSTS[1]) or ABRDTOIF (UART_FIFOSTS[2]) cause the auto-baud rate flag
ABRIF(UART_ALTCTL[17])
ABRIF(UART_ALTCTL[17]) cause the auto-baud rate interrupt ABRINT (UART_INTSTS[31]) is
generated.
UART_RX
Auto Baud
Rate Counter
ABRDIF
(UART_FIFOSTS[1])
BRD
(UART_BAUD[15:0])
ABRDEN
(UART_ALTCTL[18])
Programming Sequence Example:
1.
Program ABRDBITS (UART_ALTCTL[20:19]) to determines UART RX data 1
edge time from Start by 2
2.
Set ABRIEN (UART_INTEN[18]) to enable auto-baud rate function interrupt.
3.
Set ABRDEN (UART_ALTCTL[18]) to enable auto-baud rate function.
Sep 9, 2019
ISD94100 Series Technical Reference Manual
st
rising edge time is set by 2
st
rising edge is calculated by setting ABRDBITS
is
loaded
to
BRD
(UART_BAUD[15:0])
is
generated.
If
the
n = 10
n = 01
n = 00
start
bit 0
bit 1
bit 2
0 1 2 3
... ... ... ... ... ... ... ... ...
keep old BRD
n = ABRDBITS (UART_ALTCTL[20:19])

Figure 6.12-3 Auto-Baud Rate Measurement

ABRDBITS
bit time.
Page 574 of 928
ABRDBITS
bit time in Auto-Baud Rate function
automatically.
ABRIEN
(UART_INTEN[18])
n = 11
bit 3
bit 4
bit 5
bit 6
bit 7
... ... ... ... ... ... ... ... ... ... ...
... ... ...
ABRDEN
is
enabled,
parity
stop
m
... ...
m÷ 2
n
st
rising
Rev1.09

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents