DM163010 Microchip Technology, DM163010 Datasheet - Page 29

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.4
©
2001 Microchip Technology Inc.
Multi-Function LCD Text Display Example
2.4.1
2.4.2
There is no way to tell what endpoint a report descriptor is associated with by
Looking at Figure 2.5 again, you can see that HID1 is associated with
Introduction
USB endpoints can be used to send data from the host as well as receive
Hardware Implementation
The hardware is simply the PICDEM™ USB with an LCD character module
looking at the report descriptor. In other words, unlike other descriptor types,
report descriptors do not have a field that identifies them as a report descrip-
tor. Nor do report descriptors have an index number that distinguishes one
from another. Report descriptors are associated with the appropriate endpoint
in the firmware with the use of a Report Descriptor Index.
endpoint1 and that HID1 specifies that it has a report descriptor. The host
assigns this report descriptor an index value of 0 (this is a zero based array),
simply because the HID1 descriptor is the first descriptor sent to the host that
specifies a report descriptor. Similarly, the host assigns the report descriptor
specified by HID2 an index value of 1. The host keeps track of what descrip-
tors branch off a particular interface, therefore, the host is able to deduce that
report descriptors with indexes 0 and 1 are describing the communication that
will take place over endpoint1 and endpoint2, respectively. The host will call
these report descriptors with the Get_Report_Descriptor request. As part of
this request, the host specifies the index number of the descriptor it desires.
It's up to the developer to make sure that Report Descriptor 1 is sent to the
host when index 0 is specified in the request, and Report Descriptor 2 is sent
to the host when index 1 is specified. To make this process as painless as
possible, the Report Descriptor Index in file descript.asm was created. In
this index, all that is needed, is for you to list the labels of your report descrip-
tors in the order that the corresponding HID descriptors are sent to the host.
data from a device. In this example, a simple vendor defined protocol is used
to draw text on the LCD. Additional commands are provided to move the cur-
sor around, clear the screen, download custom font characters, send data
through the serial port, and light LED’s on PORTB. This example does not
use the alphanumeric HID class defined by the USB-IF. This example used
the second endpoint to provide additional functionality. The second endpoint
will receive serial data from the UART and read the analog-to-digital
converter.
attached to the LCD connector. The LCD control signals are PORTE, while the
data is PORTD. Provision is in place for backlight power on the PICDEM™
USB, but backlight control is not provided. If you use an LCD with an LED
backlight, your board could draw slightly more than 100 mA. Fortunately, cur-
rent PC drivers will not shut-down the device for using too much current,
unless the current draw from all the USB ports or a hub exceeds 500 mA.
Future PC drivers may require additional power management capabilities.
USB Demonstration Code
DS41174A-page 25

Related parts for DM163010