cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1

Anonymous
Not applicable

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

0 Likes
1 Solution
AnkitaS_51
Employee

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.

View solution in original post

0 Likes
4 Replies
rola_264706
Honored Contributor II

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

0 Likes
Anonymous
Not applicable

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?

0 Likes
AnkitaS_51
Employee

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.

View solution in original post

0 Likes
Anonymous
Not applicable

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.

0 Likes