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

cross mob

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

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

ArunKumarChoul
Employee
Employee
50 questions asked 50 sign-ins 25 sign-ins

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.
302 Views