You are here

UART on byte received interrupt | Cypress Semiconductor

UART on byte received interrupt

Summary: 1 Reply, Latest post by Bob Marlowe on 06 Aug 2016 02:09 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
CYang's picture
14 posts

I've set up a the internal uart interrupt to fire when fifo is not empty. It works when the buffer size is default to 8 but when I increase the buffer size, the interrupt no longer fires. I see that for buffers greater than 8 bytes, the box is checked and greyed out so I am assuming that it is always active for fifos larger than 8. Am I wrong?


user_1377889's picture
9265 posts

Just a bit wrong. When the buffer size is larger than the FIFO size an internal interrupt gets activated which shuffels data from FIFO to buffer without any user action. Poll using GetRxBufferSize() which returns the number of bytes in the buffer (not the size of buffer) and read them with GetByte(). Do not interfere with internal interrupt by reading status of UART.




Log in to post new comments.