DLP-245PA DLP Design Inc, DLP-245PA Datasheet - Page 6

Interface Modules & Development Tools USB/Micro Dev Board

DLP-245PA

Manufacturer Part Number
DLP-245PA
Description
Interface Modules & Development Tools USB/Micro Dev Board
Manufacturer
DLP Design Inc
Datasheet

Specifications of DLP-245PA

Interface Type
USB
Data Bus Width
8 bit
Operating Supply Voltage
5 V
Product
Interface Modules
For Use With/related Products
16F872
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
TOKEN I/O
The 16F872 microcontroller on the DLP-245PA is shipped from the factory preprogrammed with
firmware that provides rudimentary access to the port pins via either the VCP or DLL drivers.
Features include the ability to read and write individual port pins as well as 8-bit port reads and
writes.
The firmware in the DLP-245PA also provides access to the 16F872’s A/D converter, EEPROM
memory, and communications with digital temperature-sensing devices.
Commands sent to the Token I/O firmware must adhere to a specific communications protocol.
Each command sequence contains the following information:
The checksum is computed by exclusive-OR-ing every byte in the string. If the same checksum
is calculated by the 16F872 upon receipt of the packet, then a single-byte reply of 0x55 is
returned to the host. In the event of a checksum error, the 16F872 will return an error code of
0xAA. For example, setting port PIN_A1 high would require the following string of bytes:
0x03, 0xA6, 0x29, 0x01, 0x8D
Definition of the Bytes:
0x03 – Number of bytes in command (checksum excluded)
0xA6 – Command for set port pin high/low
0x29 – Affected port pin
0x01 – Desired state of port pin
0x8D – Checksum of previous 4 bytes
The port pins equate to hexadecimal numeric constants as defined here:
PORT A:
PIN_A0 0x28, PIN_A1 0x29, PIN_A2 0x2A,
PIN_A3 0x2B, PIN_A4 0x2C, PIN_A5 0x2D
Byte 0:
Byte 1:
Byte 2…n-1:
Byte n:
Number of bytes in command sequence
Command
Parameter/Data bytes
Checksum
6

Related parts for DLP-245PA