The USB HID Keyboard Example will help you to get familiar with the USB Device Port(UDP) and PIO interface on SAMv7 microcontrollers. Also it can help you to be familiar with the USB Framework that is used for rapid development of USB-compliant class drivers such as USB human Interface Device class (HID).
The demo simulates a simple keyboard with a caps lock and 'a' on it.
When an Xplained board running this program connected to a host (PC for example), with USB cable, the Xplained board appears as a HID Keyboard for the host. Then you can use the push buttons on the Xplained board to input letter to the host. E.g, to open a editor and input a letter 'a'.
On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
Start the application.
-- USB Device HID Keyboard Project xxx -- -- SAMxxxxx-xx -- Compiled: xxx xx xxxx xx:xx:xx --