USBUART Parity

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

cross mob
Anonymous
Not applicable

Hi everyone,

   

 I have implemented a USBUART on my CY8CKIT-059 Kit everything works properly but I would change the parity and the stop bit of trasmission

   

Could someone tell me where I can set the UART's parameters?

   

Thanks

0 Likes
5 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Welcome in the forum!

   

Only the windows host is able to set the datarate. Because the com port is only emulated, there is no real baud rate in that communication. There is a configuration setting program from Cypress:

   

USB-Serial Configuration Utility
Cypress USB-Serial Configuration Utility is an application included in the USB-Serial software development
kit (SDK) installation. This utility is used to configure the USB-Serial device configuration,
and helps use additional capabilities of USB-Serial device such as USB-UART configurations, USBGPIO
controls, and custom development using the USB-I2C and USB-SPI protocols.
After you install the USB-Serial SDK, click Start > All Programs > Cypress > Cypress
USB Serial > Cypress USB-Serial Configuration Utility to launch the USB-Serial Configuration
Utility.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Thank you for your disponibility
Nicola

0 Likes
Anonymous
Not applicable

Hi,

   

 I tried to follow your suggestion... I installed the Utility but when I launch it I can't Connect any devices.

   

In the Start Page of Utility there is a list of components (CY7C.....) I use CY8C, it can be this the problem?
If Yes, how can I change the parity of the USBUART?
Thanks

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

USBUART is a slave.
It has  function  uint8  USBUART_1_GetConfiguration(void) 
but it does not has function SetConfiguration
Bob said that Only the windows host is able to set the datarate.
those. configuration (parity) can only change the master (PC) but not PSoC​
Yes?

0 Likes
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received


CDC Class Request are the requests supported by the USBUART component. If a request is not
supported, the USBUART component responds with a STALL, indicating a request error.

   

There is a  CDC Class Request available as SET_LINE_CODING which allows the host to specify typical asynchronous line character
formatting properties such as: data terminal rate,number of stop bits, parity type and number of data bits. It applies to data transfers both from the host to the device and from the device to the host.

   

So, host can change the  value of parity and stop bits, USBUART component cannot.

0 Likes