How to implement interrupt in UART SCB ?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
urchc_1533771
Level 5
Level 5
5 likes given First like received First like given

Hi!

Because UART is not compatible with PROC I must to use SCB-UART but don`t know how to implement interrupt on " RX byte received " ?

Please help !

0 Likes
1 Solution
Anonymous
Not applicable

Here is an example someone uploaded that will do what you want: https://community.cypress.com/external-link.jspa?url=http%3A%2F%2Fwww.cypress.com%2Fcomment%2F389231...

But for a description of how to implement it from scratch:

Setup an ISR.

Associate the ISR with the UART component.

Handle clearing the interrupt flag in the ISR, and reading data into a buffer.

In main code, check if you have data available in the buffer you are reading into, and use the data as your application determines.

View solution in original post

2 Replies
Anonymous
Not applicable

Here is an example someone uploaded that will do what you want: https://community.cypress.com/external-link.jspa?url=http%3A%2F%2Fwww.cypress.com%2Fcomment%2F389231...

But for a description of how to implement it from scratch:

Setup an ISR.

Associate the ISR with the UART component.

Handle clearing the interrupt flag in the ISR, and reading data into a buffer.

In main code, check if you have data available in the buffer you are reading into, and use the data as your application determines.

Thank you very much !

It exactly what I need. I checked and it work.

You're best !!!

0 Likes