DM163010 Microchip Technology, DM163010 Datasheet - Page 17

BOARD DEMO PICDEM USB

DM163010

Manufacturer Part Number
DM163010
Description
BOARD DEMO PICDEM USB
Manufacturer
Microchip Technology
Datasheet

Specifications of DM163010

Processor To Be Evaluated
PlC16C745/765
Interface Type
USB
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
©
2.1
2001 Microchip Technology Inc.
Gameport - USB Translator
2.1.1
Chapter 2. USB Demonstration Code
A variety of examples have been provided on the CD-ROM to speed you
Introduction
The gameport to USB translator is a simple example that reads a PC game-
towards a successful start with USB. These examples range from the very
basic gameport translator, to a very specialized LCD display. The gameport
and PS/2 examples are excellent tools to use, in order to become more famil-
iar with report descriptors and basic USB communications. These basic
examples are extremely useful because the OS vendor has already written
generic Human Interface Device (HID) drivers. The LCD display example
does not have a generic PC driver. In this example, PC software has been
provided to demonstrate how you can develop your own PC applications to
interface to your device. Example code is provided for PC and Macintosh.
port and reports the information over USB. Since peripherals for gameports
come in all shapes and sizes, it is important to identify exactly what peripheral
is used, in this example -- the Dexxa
can be used, however, some change to the firmware functions may be
required. The example code will enumerate as a gamepad with 2 axis and 6
buttons. PORTA on the PICmicro MCU is used to read the analog voltages
from resistors in the direction pad (D-pad) and two of the buttons, while
PORTD reads the switches for the four remaining buttons. Refer to
Figure 2.1.
PICDEM™ USB User’s Guide
®
8-button gamepad. Other gamepads
DS41174A-page 13

Related parts for DM163010