This embedded application source code illustrates how to implement a simple USB host application with CDC support. In the host mode, the USB can be connected (with a mini A connector attached to the mini AB EVK110x receptacle) to a standard CDC device (or another EVK110x running device CDC application). The controller will initialize and enumerate a device CDC application.
In our example, we will connect 2 EVK110x boards together using the USB: one will act as a host, the second one will operate as a device. Connect the USART output of each board to the COM ports of a PC (e.g. HyperTerminal under Windows systems or minicom under Linux systems; USART settings: 57600 bauds, 8-bit data, no parity bit, 1 stop bit, no flow control).
Open the 2 terminals using the same baudrates.
- Any characters typed on the "Serial COM x" terminal will be transferred through USART and then be dispayed on the "Serial COM y"
- Any characters typed on the "Serial COM y" terminal will be transferred through USART and then be dispayed on the "Serial COM x"
The following picture shows the architecture of the host application: