Question: How do you test a Cypress® USB-Serial Bridge Controller configured as USB-UART with Mac® OS?
A Cypress USB-Serial Bridge Controller configured as Communication Device Class (CDC) UART will automatically bind to the Apple USB CDC driver, which is the CDC driver in Mac OS X.
Follow these steps to test the CDC mode for the Cypress USB-UART LP Bridge on Mac OS:
- Connect the USB-Serial Bridge Controller to Mac. The Mac CDC driver (AppleUSBCDC) automatically binds to the device. After the driver successfully binds, a device node is created as /dev/tty.usbmodem
- Install a standard terminal emulator, such as SerialTools, to test the UART functionality of the device. SerialTools is a free application available in the Apple App Store.
- Open the SerialTools application. In the Serial Port field, select the Cypress USB-Serial UART device node created in step 1, as shown in Figure 1.
Figure 1: Connecting the USB-UART Bridge in SerialTools
- Configure the UART parameters, such as baud rate, stop bits, data width, and parity.
- For simple loopback tests, short the RXD and TXD pins of the USB-Serial device on the board.
- Click Connect to start communicating with the device.
- Type Cypress in the text field. Because the local echo is always enabled in the SerialTools application, the entered characters will be displayed twice.
Figure 2: Serial Tools Application Loopback Test Output