Content originally posted in LPCWare by Rob65 on Sun Jun 10 06:08:59 MST 2012
Quote: ranaya
Why shud i use uart pins, functions for cdc example ?
Who told you you should use the uart pins ? Not Zero and surely not me.
The example that I mentioned contains a README.txt file and in there you'll see:
Quote:
USB_Serial Example
------------------
This example provides a minimal implementation of a USB serial port, using
the CDC class. This therefore allows you to connect to the board over USB from
a terminal program, such as hyperterminal.
By default this port of the example will simply echo everything it receives
right back to the host PC, but incremented by 1. Thus if you type 'a' on the
host PC, the program will send back 'b'.
So it creates a USB serial port (that's a [B]USB[/B] port) that echos everything it received back to the PC.
Sounds simple enough to me.