Hardware Reference
In-Depth Information
Figure 20-1: The Arduino Due
The USB connector adjacent to the power barrel, the Programming port, is
a USB serial connector that is connected to an ATmega16U2 microcontroller
which handles serial communication between the Arduino Due's main processor
and the host computer. The other USB connector, the Native port, is connected
directly to the SAM3X8E (see Figure 20-2). This means the Due has full control
of this USB port, and can be connected as a slave for native serial communica-
tion. It is also USB OTG-compatible and can be connected to peripherals such
as keyboards and mice using a special adapter.
Figure 20-2: USB OTG connector
These adapters have a micro-USB connector on one side and a full-size USB
connector on the other, allowing keyboards and mice to be connected.
The Arduino Due can use the USBHost library, a powerful library containing
routines to use keyboards and mice as input devices, but it does come at a cost. USB
drivers tend to be big. To reduce the size and complexity of the driver for use with
a microcontroller, it's limited to talk only to a single device: a keyboard or a mouse.
Search WWH ::




Custom Search