DM163010 Microchip Technology, DM163010 Datasheet - Page 31

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
©
2001 Microchip Technology Inc.
2.4.4
2.4.5
LCD Report Descriptor
The report descriptor for this example is very simple; a vendor defined usage
dt 006h, 000h, 0ffh ; USAGE_PAGE (Vendor Defined Page 1)
dt 009h, 001h
dt 0a1h, 001h
dt 019h, 001h
dt 029h, 008h
dt 015h, 000h
dt 026h, 0ffh, 000h ;
dt 075h, 008h
dt 095h, 008h
dt 081h, 002h
dt 019h, 001h
dt 029h, 008h
dt 091h, 002h
dt 0c0h
USB Command Set
The USB command set implementation is simple. The first byte in the packet
Table 2.5: USB Command Set
page and a vendor defined usage with an 8-byte payload. Two reports are
defined, one for input and one for output. The report formats are identical.
is the command byte, while the remaining seven bytes contain data. The
command byte has a command number in the low nibble, while the upper nib-
ble contains a command modifier. Although six commands are implemented,
sixteen commands are available.
Command
Number
0
1
2
Command Name
Clear Display
Move Cursor
Write Text
; USAGE (Vendor Usage 1)
; COLLECTION (Application)
;
;
;
;
;
;
;
;
;
; END_COLLECTION
USB Demonstration Code
USAGE_MINIMUM (Vendor Usage 1)
USAGE_MAXIMUM (Vendor Usage 8)
LOGICAL_MINIMUM (0)
LOGICAL_MAXIMUM (255)
REPORT_SIZE (8)
REPORT_COUNT (8)
INPUT (Data,Var,Abs)
USAGE_MINIMUM (Vendor Usage 1)
USAGE_MAXIMUM (Vendor Usage 8)
OUTPUT (Data,Var,Abs)
Function
This command clears the display and
homes the cursor. No additional data is
required so the data bytes are ignored.
This command moves the cursor to the
indicated row and column. The row is
specified in the first data byte while the
column is specified in the second data
byte. The row byte is limited to 2 rows.
This code works on a 2x20 LCD. It
should also work on a 2x16 LCD.
Beyond that, expect to modify the code.
This commands writes the N characters
to the current cursor position.
N is the value in the upper nibble of the
command and cannot exceed 7.
The data is in the 7 data bytes following
the command.
DS41174A-page 27

Related parts for DM163010