Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > UART_Rx example doesn't reach ISR on PSoC5

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



UART_Rx example doesn't reach ISR on PSoC5
Moderator:
ANCY

Post Reply
Follow this topic



UART_Rx example doesn't reach ISR on PSoC5

johnk posted on 19 Oct 2010 5:46 PM PST

1 Forum Post

I've compiled the UART_Rx.cywrk example in the CY8CKIT-001 development kit and have been unable to get it working while sending characters over RS232 using 'HyperTerminal'.  I've confirmed the UART generates a RX interrupt upon receiving a character (by bringing the signal out to a I/O pin) but the ISR routine never gets called.  Is this a known problem?  Any ideas what might be causing the problem??  Thanks.




Re: UART_Rx example doesn't reach ISR on PSoC5

Gautam Das posted on 30 Dec 2010 04:24 AM PST
Cypress Employee
742 Forum Posts

Hi Johnk,

 

Please ensure that the following measures are taken while communicating using RS232:

1) When Hyperterminal is used, the correct Com Port is chosen.

2) Jumper J10 on the Developement Kit is closed in order to power the RS232.

3) Since you are able to observe the pulse on interrupt, the interrupts should be enabled using 'CYGlobalIntEnable'.

4) In the configuration box of UART Component, the Interrupt 'RX- On Byte  Received' should be checked.

5) In the ISR, the UART status register must be read to clear the interrupt so that the next received bytes can also trigger the interrupt.

 

Let us know if this helps.

 

Regards,

dasg



Re: UART_Rx example doesn't reach ISR on PSoC5

bkphat posted on 07 Oct 2011 04:10 PM PST
Senior Member
13 Forum Posts

Calling "CYGlobalIntEnable" did it for me. Didn't see that in the docs anywhere.

Here is an example of my init function:

 

void InitIsrRoutine(void)

{

         isr_UART_RX_Start();

CYGlobalIntEnable; //macro

}

 

 






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: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20