Other Parts Discussed in Thread: C2000WARE
Tool/software:
Development Board: TMS320F2838x
Path to Example Code:
C:\ti\c2000\C2000Ware_5_03_00_00\driverlib\f2838x\examples\cm
Question 1:
I am testing the uart_config_c28x (CPU1) and uart_ex1_echoback (CM) example codes using a 2-channel SCI-to-USB converter. The goal is to output one character at a time for each input. However, currently, two characters are output only after entering two inputs.
I expected the FIFO level configuration (UART_setFIFOLevel(UART0_BASE, UART_FIFO_TX1_8, UART_FIFO_RX1_8)) to process one byte at a time and trigger an interrupt after each character. My assumption is that this might be caused by the FIFO buffer size, i it 16 bytes?
Could this behavior be due to the FIFO size?
How can I ensure that one character is output for each input?
Question 2:
I am testing the same example code using an RS232 transceiver instead of the SCI-to-USB converter. When I send the string 12345abcde, the output is as follows:
1�3�5a�c�e
(Here, � represents an incorrect or garbage character).
Only the odd-numbered characters (e.g., 1, 3, 5, a, c, e) are displayed correctly, while even-numbered characters (2, 4, 6, b, d) appear as corrupted or incorrect values.
Here are the details of the setup:
UART configuration:
UART_setConfig(UART0_BASE, UART_CLK_FREQ, 115200,
(UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE | UART_CONFIG_PAR_NONE));
Serial port settings on the PC match the UART configuration.
Pin connections and hardware setup are verified to be correct.
What could be causing this issue?
-tera term monitor