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

PSoC™ 5, 3 & 1 Forum Discussions

Anonymous
Not applicable

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.

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

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

View solution in original post

0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

0 Likes
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

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

0 Likes