Anonymous
Not applicable
Jan 16, 2013
02:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 16, 2013
02:13 AM
hi...
I want to read ZERO '0' on the UART receive pin.
But it giving a ststus of error or no data in the buffer, when I use the functions -- UART_GetChar() and UART_Read _Tx_Data().
So please help how to read the value '0' on the UART...
thankyou.
Labels
- Labels:
-
PSoC 3
4 Replies
Jan 16, 2013
08:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 16, 2013
08:31 AM
Use UART_GetRxStatus() and test for a byte already received and read it with UART_ReadRxData().
Bob
Jan 17, 2013
07:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 17, 2013
07:06 AM
Are you trying to test for the logic state of the pin itself ? Independent
of UART framing ?
If this is the case you could poll the pin using - CyPins_ReadPin(pinPC)
Regards, Dana.
Anonymous
Not applicable
Jan 19, 2013
11:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 19, 2013
11:46 PM
Use the existing UART example project and try to send 0x00 from hyperterminal or vice versa. It would definitely work.
Jan 20, 2013
02:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 20, 2013
02:32 PM
His stated problem is "I want to read ZERO '0' on the UART receive pin.",
not how do I send and receive "0" as a character into the UART buffer.
Regards, Dana.