- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
i'm using cy8ckit4245-049 transmitting over uart
i can send using the api UART_WriteTxData also receive using UART_ReadRxData() it works good
but i can't use the read status when i check it never go into the loop
i don't know why
without the if condition it works good
char status,display;
for(;;)
{
status= UART_ReadRxStatus();
if(status&=UART_RX_STS_FIFO_NOTEMPTY)
// if( UART_RX_STS_FIFO_NOTEMPTY)
{
display=UART_ReadRxData();
LCD_PutChar(display);
}
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
it works just fine now
it was a bad hardware connection on the bread board but the code is correct
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you please post your complete project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By any chance: did you configure the UART to a bigger larger than 4 bytes? Then the internal interrupt handling probably reads the data before you do, clearing that flag.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
it works just fine now
it was a bad hardware connection on the bread board but the code is correct
thank you