- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
PSoC 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yepp, and you overflow your buffer because the variable i is never reset,