Cyusb UART c++ code example

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

cross mob
DeCh_4514661
Level 1
Level 1
5 replies posted 5 questions asked First reply posted

Hi Cypress,

I want to use EVM kit (CY7C65211-24LTXI) for UART communication,

 

How shall I set no flow control (use utility?) and "isMsbFirst"?

Below is partial of my setting,

CY_UART_CONFIG cyUARTConfig;

cyUARTConfig.baudRate = CY_UART_BAUD_115200;

cyUARTConfig.parityMode = CY_DATA_PARITY_DISABLE;

cyUARTConfig.stopBits = CY_UART_ONE_STOP_BIT;

cyUARTConfig.dataWidth = 8;

Thank you!

Derlin Chow

0 Likes
1 Solution
YatheeshD_36
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello Derlin,

Please use the CyUartSetHwFlowControl() function to set the appropriate flow control. For no flow control, the parameter should be CY_UART_FLOW_CONTROL_DISABLE.

Please refer to the UART API section in the USB-Serial API guide ​for all the APIs related to UART in vendor mode.

The data is always transmitted LSb (Least Significant bit) first. This cannot be changed.

Thanks,

Yatheesh

View solution in original post

0 Likes
1 Reply
YatheeshD_36
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello Derlin,

Please use the CyUartSetHwFlowControl() function to set the appropriate flow control. For no flow control, the parameter should be CY_UART_FLOW_CONTROL_DISABLE.

Please refer to the UART API section in the USB-Serial API guide ​for all the APIs related to UART in vendor mode.

The data is always transmitted LSb (Least Significant bit) first. This cannot be changed.

Thanks,

Yatheesh

0 Likes