SLAU533D September 2013 – April 2017
The backchannel UART allows communication with the USB host that is not part of the target application main functionality. This is very useful during development. For example, if, while developing a USB interface, you want to send debug information to the host without using the USB interfaces under development to do so.
Figure 14 shows the pathway of the backchannel UART. The backchannel UART (USCI_A1) is independent of the UART on the 40-pin BoosterPack plug-in module connector (USCI_A0).
On the host side, a virtual COM port for the application backchannel UART is generated when the F5529 LaunchPad development kit enumerates on the host. You can use any PC application that interfaces with COM ports, including terminal applications like Hyperterminal or Docklight, to open this port and communicate with the target application.
You need to identify the COM port for the backchannel. On Windows PCs, Device Manager can assist (see Figure 15). (See Section 3.7 for instructions on starting Device Manager.)
The backchannel UART is the port named "MSP Application UART1". In this example, the figure shows COM13, but the port number varies from one host PC to the next.
After you identify the correct COM port, configure it in your host application according to its documentation. You can then open the port and begin talking to it from the host.
On the target F5529 side, the backchannel is connected to the USCI_A1 module.
Unlike the eZ-FET on the G2 LaunchPad development kit, this eZ-FET lite has a configurable baudrate. Therefore, it is important that the PC application configures the baudrate to be the same as what is configured on the USCI_A1.
Also unlike the eZ-FET on the G2 LaunchPad development kit, this eZ-FET lite supports hardware flow control, if desired. Hardware flow control (CTS and RTS handshaking) allows the target F5529 and the emulator to tell each other to wait before sending more data. At slow baud rates and with simple target applications, flow control may not be necessary. An application with faster baud rates and more interrupts to service has a higher likelihood that it cannot read the USCI_A1 RXBUF register in time, before the next byte arrives. If this happens, the USCI_A1 UCA1STAT register will report an overrun error.
To implement the backchannel on the target F5529, a simple library is provided within the simpleUsbBackchannel example. It supports communication with and without hardware flow control. See Section 3.6.4 for more information.