You are here

Changing UART parity at runtime (on PSOC5LE device) | Cypress Semiconductor

Changing UART parity at runtime (on PSOC5LE device)

Summary: 1 Reply, Latest post by Bob Marlowe on 07 Apr 2016 06:43 AM PDT
Verified Answers: 1
Last post
Log in to post new comments.
mahesh_1542241's picture
4 posts

Hello Everyone,

I want to configure parity of my uart module at runtime on my PSOC5LE device.  I am using UART[v2.50] component and PSOC designer.

To achieve this I had enabled the API control. I went through the component datasheet where it describes to use the UART_WriteControlRegister() API to achieve this task. But I cannot find the macros UART__B_UART__NONE_REVB, UART__B_UART__EVEN_REVB etc... defined in the code. 

Please help. 

user_1377889's picture
9249 posts

Welcome in the forum!

I am quite sure you are using PSoC Creator and not Designer.

the #define UART__B_UART__NONE_REVB is in your UART.h file which is already included in your project, so you may use that instantly. Remember to replace the first "UART" with your component name which usually is "UART_1"!



Log in to post new comments.