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

Psuedo UART TX for evaluation on CY8CKIT-145-40XX

YoIs_1298666
Level 5
Level 5
250 sign-ins 100 replies posted 100 sign-ins

Hello,

If you evaluate UART reception error for example frame error and parity error, use this sample project.

When you send data from the terminal software of your PC, the sent data will be echoed back. Then, the sent data is output with the set baud rate, parity, and stop bit length.
It is also possible to change the polarity of the stop bit to generate an error.

YoIs_1298666_0-1617173639737.png

To enable 230400bps, make the following settings.

YoIs_1298666_3-1617174704406.png

 

The baud rate of the Pseudo UART is set by the timer Period.

YoIs_1298666_1-1617173717185.png

You can change the polarity and bit length of the stop bit, none, even, odd of parity on the line with # in the comment in main.c.

YoIs_1298666_2-1617174349913.png

Best regards,

Yocchi

1 Reply
Aashita_Raj
Moderator
Moderator
Moderator
100 solutions authored 250 replies posted 250 sign-ins

Hi @YoIs_1298666 ,

Thank you very much for sharing this example project with our community. It will be very beneficial for the community members here.

Best Regards,

Aashita

 

 

0 Likes