Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

Knowledge Base Articles

Detecting change in baud rate for the USBUART Component- CDC COM port - KBA233881

ArunKumarChoul
Employee

Detecting change in baud rate for the USBUART Component- CDC COM port - KBA233881

Version: **

The baud rate for the USBUART Component is theoretically limited by the USBFS data rate (12 Mbps) for Full-Speed devices like PSoC™ family of devices.

The USBUART baud rate can be changed using the serial terminal.

Do the following with the predefined APIs and macros in the USBUART Component to detect change in baud rate:

  1. Receive the SET_LINE_CODING request when the host sends the coding information to the device such as for setting up the baud rate through the serial terminal.
  2. Call the USBUART_IsLineChanged() API, which returns a non-zero (USBUART_LINE_CODING_CHANGED) value if the SET_LINE_CHANGED request is received.
  3. Check the set baud rate using the USBUART_GetDTERate() API, which returns the data terminal rate set for this port in bits per second (bps) and is called to read the data coding information.
Version history
Revision #:
1 of 1
Last update:
‎Sep 28, 2021 12:45 AM
Updated by:
 
Contributors