Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > UART Rx Status Byte/s

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



UART Rx Status Byte/s
Moderator:
ANCY

Post Reply
Follow this topic



UART Rx Status Byte/s

RodneyE posted on 11 Sep 2012 12:21 AM PST
Member
6 Forum Posts

Hi All.

Is there a corresponding RX status byte for each byte of data that the UART recieves, or is there a single status byte that contains information about the last data byte that was received?

Lets say have an ISR whose source is the "RX - On Byte Received" signal. If the target is busy doing "something else", and by the time the ISR is called there are two bytes of data in the UART RX FIFO, do I need to check the RX status byte once, or once for each byte of data in the FIFO?

From the component datasheet, it appears that there is only one status byte, but I would like to be sure.

- R




Re: UART Rx Status Byte/s

H L posted on 11 Sep 2012 12:55 AM PST
Top Contributor
679 Forum Posts

The status should be just the last byte received. If you need to check the RX status, the best is to check this inside a RX interrupt.



Re: UART Rx Status Byte/s

hli posted on 11 Sep 2012 05:50 AM PST
Top Contributor
675 Forum Posts

Typically in your RX-ISR you should check, after each byte, if there is anything left in the receive fifo:

if (0!=(UART_RX_STS_FIFO_NOTEMPTY & UART_ReadRxStatus()))






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20