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

PSoC™ Creator & Designer Forum Discussions

Anonymous
Not applicable

dear ,

I need help about Receiving Data by UART, because when I send data by PC tool, the process can not  interrupt function,  but if I use XX_UartPutChar() to send the data back, I can receive the data by PC tool, that means the board had received data,  but why it can not enter the interrupt function ?  I am very appreciate if  anyone can give some help ,   thank you very much !

picture 1:  pins of Design Wide Resource,  pin 21 and pin 22 are UART rx and UART tx.  my UART's name is DBUS.

picture 2:  UART config.

picture 3: main fuction.

picture 4: default interrupt function.

0 Likes
1 Solution
2 Replies
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

alexsh,

Check this PSOC4 UART code example (receiving/sending command string from terminal and changing LED brightness)

(SCB mode)

http://www.cypress.com/comment/389231#comment-389231

And similar for UDB mode

http://origin-www.cypress.com/comment/235306#comment-235306

The examples above are for PSoC4200, and I believe you have PSoC4100, so there may be some differences.

For the future, do not post JPEG snippets of the code, there is standard solution for sharing the project.

1. Clean the project, Top Menu->Build->Clean. 2. Select Project Name in the Project Explorer window on the left and File->Create Workspace Bundle->Minimal. 3. Open created Archive file (zip) and delete Generated Source folder. Now you can post small archived project for review.

 

/odissey1

0 Likes
GeonaP_26
Moderator
Moderator
Moderator
250 solutions authored 100 solutions authored 50 solutions authored
0 Likes