DLP-245PA DLP Design Inc, DLP-245PA Datasheet - Page 7
![Interface Modules & Development Tools USB/Micro Dev Board](/photos/26/87/268784/dlp245pa_sml.jpg)
DLP-245PA
Manufacturer Part Number
DLP-245PA
Description
Interface Modules & Development Tools USB/Micro Dev Board
Manufacturer
DLP Design Inc
Datasheet
1.DLP-245PA.pdf
(14 pages)
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
PORT B:
PIN_B0 0x30, PIN_B4 0x34, PIN_B5 0x35
The source code for the Token I/O firmware (developed for the CCS C compiler) is available as a
free download from http://www.dlpdesign.com/usb/245pa.html. Example Visual C++ source code
(for Windows 98/2000/XP) for communicating with the DLP-245PA via the Token I/O firmware is
also available for download. The windows source code also contains the port pin definitions
listed above.
TOKEN I/O COMMAND SET
0xA5 – Line In – Reads the state of a single port pin
Parameters:
Returns:
Function:
Example:
0xA6 – Line Out - Sets a single port pin high or low
Parameters:
Returns:
Function:
Example:
0xA7 – Return Board ID
Parameters:
Returns:
Function:
Example:
Port – Select from available port pins (PIN_A3, PIN_B0, etc)
1 Byte: State of the port pin (0 or 1)
This function will read the state of a single port pin. If the data direction for the
pin selected was set to output, the direction is first set to input.
0x2, 0xA5, 0x2B, 0x8C - Reads the current state of port pin PIN_A3.
Port – Select from available port pins (PIN_A3, PIN_B3, etc)
State – 0 or 1
Undefined
This function will change the output state of a single port pin. If the data direction
for the pin selected was set to input, the direction is first set to output.
0x3, 0xA6, 0x2B, 0x1, 0x8F – Sets port pin PIN_A3 high.
None
5 bytes: “245PA”
This function will return the ID of the 245xx board currently opened.
0x1, 0xA7, A6 – Reads the board ID.
7