PRoC 4 UART receive problem | Cypress Semiconductor
PRoC 4 UART receive problem
Q1: I have problem when I am writing a UART Tx and Rx program for the PRoC 4 (CYBL10573) device. I found that all the example project used a function "UART_UartGetChar" in the generated driver to receive a byte from the UART. However this function will ignore number 0 in the receiver part. I think it assumes it is receiving ASCII string. However in my case I am receiving decimal value so I need to receive 0.
How can I check if any data is received instead of using the "UART_UartGetChar" function?
Q2: In the examples, they are not using receive interrupt. I tried to enable the "RX FIFO not empty" internal interrupt, and trace the stack, I found that it will call "UART_SPI_UART_ISR" and then wait forever here. How can I use the interrupt?
Q3: The generated code is so complicated that it is very difficult to follow by the code. And most of the time the example project is too simple. Actually I have encountered other problem before and I want to do some study before asking question here or finding the support engineer. Is there any documents that describe how to use the generated driver code? Or a user manual for the device?