- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @KeTa_1875721 ,
Kindly open UART_1INT.asm file under "lib" "source" tree. Kindly note that Tx and Rx Interrupt service routines are already implemented in this file.
Kindly remove lines 27,28 in Disp_Prot.c. The ISRs are already implemented, and the ISR itself will be made to call the functions referred to in the pragma declaration.
#pragma interrupt_handler COM_Rx_ISR
#pragma interrupt_handler COM_Tx_ISR
Uncomment (; is comment marker in assembly language) lines 106-108 and replace the function call with COM_Tx_ISR. The lines should now look like
PRESERVE_CPU_CONTEXT
lcall _COM_Tx_ISR
RESTORE_CPU_CONTEXT
Uncomment lines 169-172 and replace the function call with COM_Rx_ISR. The lines shouls now look like
PRESERVE_CPU_CONTEXT
lcall _COM_Rx_ISR
RESTORE_CPU_CONTEXT
Furthermore, a review of AN90833 - PSoC® 1 Interrupts will be helpful.
Best regards,
Sampath Selvaraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @KeTa_1875721
Could you please attach you project as this will help us to get a better understanding of the issue?
Thanks and Regards
Ekta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank Ekta for your time in advance for trying to get to a solution!
Attached is the project, pretty basic remote display. Most all functions tested and working.
Only problem here is COM_Rx_ISR() never fires. Data is getting to the pin ok.
My only assumption is that the schematic editor did not connect the pin right or something is blocking the rx interrupt. Transmitter interrupt works fine, no issues
Thanks
Ken
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @KeTa_1875721 ,
Kindly open UART_1INT.asm file under "lib" "source" tree. Kindly note that Tx and Rx Interrupt service routines are already implemented in this file.
Kindly remove lines 27,28 in Disp_Prot.c. The ISRs are already implemented, and the ISR itself will be made to call the functions referred to in the pragma declaration.
#pragma interrupt_handler COM_Rx_ISR
#pragma interrupt_handler COM_Tx_ISR
Uncomment (; is comment marker in assembly language) lines 106-108 and replace the function call with COM_Tx_ISR. The lines should now look like
PRESERVE_CPU_CONTEXT
lcall _COM_Tx_ISR
RESTORE_CPU_CONTEXT
Uncomment lines 169-172 and replace the function call with COM_Rx_ISR. The lines shouls now look like
PRESERVE_CPU_CONTEXT
lcall _COM_Rx_ISR
RESTORE_CPU_CONTEXT
Furthermore, a review of AN90833 - PSoC® 1 Interrupts will be helpful.
Best regards,
Sampath Selvaraj