- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
I'm pretty new to Cypress PSoC 5LP. I'm trying to read at least 6 different values using the UART_GetByte() API coming from a Serial Terminal. I have no idea how to start, Could you please provide an sample example code? Any help will be appreciated.
Thanks in Advance.
AG.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When you right click on your UART component you will see an option "find code example".
There is an API GetBufferSize() which reports how many bytes already received, use GetByte() API only when the value has been > 0.
Enter into a loop until you have got your values.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When you right click on your UART component you will see an option "find code example".
There is an API GetBufferSize() which reports how many bytes already received, use GetByte() API only when the value has been > 0.
Enter into a loop until you have got your values.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AG,
You can adopt the code from these examples for PSoC 4
(receiving/sending command string from terminal)
(SCB mode)
http://www.cypress.com/comment/389231#comment-389231
And similar for UDB mode
http://origin-www.cypress.com/comment/235306#comment-235306
odissey1