You are here

PSOC3 UART | Cypress Semiconductor

PSOC3 UART

Summary: 4 Replies, Latest post by ranjithr4777_1983851 on 17 Jul 2017 04:50 AM PDT
Verified Answers: 1
Last post
Log in to post new comments.
ranjithr4777_1983851's picture
User
4 posts

Can anyone help me with changing the uart databits and stopbit in PSOC3 at runtime?

user_242978793's picture
User
1485 posts

Please post your code so we know what Uart component you are using.

ranjithr4777_1983851's picture
User
4 posts

Hi Bob,

 

This is my UART component which I'm using in my project. Here I can change the Baud Rate at Run time so that I can make the Baud Rate as user configurable. I need to know whether I can use the Data bits and Stop bit in the Same way?

ANKS's picture
Cypress Employee
345 posts

Hello ,

The clock  Frequency you connected can be controlled by API's(check the clock datasheet).The Bits per second for UART will then depend on that external clock.

Parity you can set using the API "UART_1_WriteControlRegister".But you cannot control Stop bits at run time in firmware.

ranjithr4777_1983851's picture
User
4 posts

Thanks for your Reply I have noticed that I couldn't change the Stop bits in this firmware. I am using Tera-term to display the UART output but while changing the stop bits in the tera term there is no change in the output sometimes I still can get the output and sometimes I can't. Can anyone help me in reasoning with that.

Log in to post new comments.