
Firmware
UM0529
20/29
6 Firmware
The demo-application consists of an HID demonstrator GUI running on the PC and HID
class demonstration firmware running on the board. The PC software and the firmware
running on the USB microcontroller provide a clear example of data exchange between
the
PC and the board. The USB signals are routed through the STUSB02E/STUSB03E
transceiver. The ST72F63B firmware is based on a USB core library that does all the
hardware control of the USB interface. This application board incorporates basic input
sources such as push-buttons, trimmers or output devices (LEDs) and a wrap area.
Communications between the PC and the ST7 board are done through different USB pipes:
●
control IN and OUT during the enumeration with the bi-directional endpoint 0
●
interrupt IN from endpoint 1 for data transferred from ST7 to PC
●
interrupt OUT to the endpoint 2 for the data transferred from PC to ST7
The evaluation board must first be connected to the PC with the USB cable. As a result, the
evaluation board is enumerated as a HID device as shown in
and is ready to use.
Figure 4.
STUSB02E/STUSB03E evaluation board enumeration
By starting the HID demonstrator on the PC, you get a graphical interface for controlling the
application board. This PC software is used to demonstrate the enumeration process and
www.BDTIC.com/ST