Lab 7b – LED On/Off CDC Example
Lab 7b – LED On/Off CDC Example
Our next program is another example from the MSP430 USB Developers Package. This program
is a near duplicate of the previous lab – that is, it changes the state of an LED based on string
commands sent from the USB host. In this example, though, the string commands are sent using
the CDC class (versus the HID-datapipe class).
The advantage of the CDC class is that it can communicate with just about any Windows serial
terminal application. The disadvantage, as you might remember from the discussion, is that
Windows does not automatically load CDC based drivers – whereas Windows did this for us
when using an HID class driver.
10. Import the CDC version of the LED On/Off/Flash project.
11. Build the project and launch the debugger.
12. Run the program.
The first time you run the program, Windows may not be able to enumerate the USB CDC
driver. You might see an error such as this pop up.
Why does this error occur? ___________________________________________________
7 - 34 MSP430 Workshop - USB Devices