help with UART ISR

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

cross mob
Anonymous
Not applicable

Hi,

   

Ive been messing around with the UART function..... again. Ive implemented a simple ISR so on RX byte received which when triggered shows pn the LCD a message ISR, just to show it works.

   

I wanted to use the ISR to fill a buffer because i dont want other code to stop running while the PSoC is polling the uart rx.

   

I have a simple isr function and was wondering what would be the best way of filling a char array of size maybe 20 with some data in the correct order, then have the ISR exit and return back to code after that.

   

I can send a string to the PSOC with a  specific start command i.e an 'S' followed by a number but Id need to get that data into an array first before acting on it.

   

thanks guys

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Yepp, and you overflow your buffer because the variable i is never reset,

View solution in original post

0 Likes
9 Replies