C28 Sci-A To M3 Uart4 Internal Loopback - Texas Instruments Concerto F28M36 Series Technical Reference Manual

Table of Contents

Advertisement

www.ti.com
(1)
FIFO Options
SCI Interrupt Source
FIFO receive
Transmit empty
Auto-baud
Auto-baud detected
13.1.1.10.2 SCI Auto-Baud
Most SCI modules do not have an auto-baud detect logic built-in hardware. These SCI modules are
integrated with embedded controllers whose clock rates are dependent on PLL reset values. Often
embedded controller clocks change after final design. In the enhanced feature set this module supports an
autobaud-detect logic in hardware. The following section explains the enabling sequence for autobaud-
detect feature.
13.1.1.10.3 Autobaud-Detect Sequence
Bits ABD and CDC in SCIFFCT control the autobaud logic. The SCIRST bit should be enabled to make
autobaud logic work.
If ABD is set while CDC is 1, which indicates auto-baud alignment, SCI transmit FIFO interrupt will occur
(TXINT). After the interrupt service CDC bit has to be cleared by software. If CDC remains set even after
interrupt service, there should be no repeat interrupts.
1. Enable autobaud-detect mode for the SCI by setting the CDC bit (bit 13) in SCIFFCT and clearing the
ABD bit (Bit 15) by writing a 1 to ABDCLR bit (bit 14).
2. Initialize the baud register to be 1 or less than a baud rate limit of 500 Kbps.
3. Allow SCI to receive either character "A" or "a" from a host at the desired baud rate. If the first
character is either "A" or "a". the autobaud- detect hardware will detect the incoming baud rate and set
the ABD bit.
4. The auto-detect hardware will update the baud rate register with the equivalent baud value hex. The
logic will also generate an interrupt to the CPU.
5. Respond to the interrupt clear ADB bit by writing a 1 to ABD CLR (bit 14) of SCIFFCT register and
disable further autobaud locking by clearing CDC bit by writing a 0.
6. Read the receive buffer for character "A" or "a" to empty the buffer and buffer status.
7. If ABD is set while CDC is 1, which indicates autobaud alignment, the SCI transmit FIFO interrupt will
occur (TXINT). After the interrupt service CDC bit must be cleared by software.
NOTE: At higher baud rates, the slew rate of the incoming data bits can be affected by transceiver
and connector performance. While normal serial communications may work well, this slew
rate may limit reliable autobaud detection at higher baud rates (typically beyond 100k baud)
and cause the auto-baudlock feature to fail.
To avoid this, the followng is recommended:
Achieve a baud-lock between the host and 28x SCI boot loader using a lower
baud rate.
The host may then handshake with the loaded 28x application to set the SCI
baud rate register to the desired higher baud rate.

13.2 C28 SCI-A to M3 UART4 Internal Loopback

The C28 SCI-A peripheral can be internally connected to the M3 UART4 peripheral. External GPIO pins
are not used when the loopback feature is enabled and can be used for other functions.
SPRUHE8E – October 2012 – Revised November 2019
Submit Documentation Feedback
Table 13-6. SCI Interrupt Flags (continued)
Interrupt Flags
RXFFIL
TXFFIL
ABD
Copyright © 2012–2019, Texas Instruments Incorporated
C28 SCI-A to M3 UART4 Internal Loopback
Interrupt Enables
FIFO Enable
SCIFFENA
RXFFIENA
TXFFIENA
Don't care
C28 Serial Communications Interface (SCI)
Interrupt Line
1
RXINT
1
TXINT
x
TXINT
1029

Advertisement

Table of Contents
loading

Table of Contents