DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

DLP-245PB-G View Datasheet(PDF) - Unspecified

Part Name
Description
Manufacturer
DLP-245PB-G Datasheet PDF : 17 Pages
1 2 3 4 5 6 7 8 9 10 Next Last
TOKEN I/O COMMAND SET
0xA5 – Line In – Reads the state of a single port pin
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.
0xA6 – Line Out - Sets a single port pin high or low
Parameters:
Returns:
Function:
Example:
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.
0xA7 – Return Board ID
Parameters:
Returns:
Function:
Example:
None
5 bytes: “245PB”
This function will return the ID of the board currently opened.
0x1, 0xA7, A6 – Reads the board ID.
0xA8 – Setup A/D
Parameters:
Returns:
Function:
Example:
Port Configuration – Selects analog port configuration. (See command 0xA8 in
the example firmware for options.)
A/D Conversion Clock – Select the source for the A/D conversion clock. (See
command 0xA8 in the example firmware for options.)
Undefined
This function will select the source for the A/D conversion clock. (Refer to the
datasheet for the 16F877A for a detailed explanation of the conversion clock.)
0x3, 0xA8, 0x0, 0x7, 0xAC – Sets all available A/D inputs on the DLP-245PB-G
to analog mode (0x0) and selects the internal A/D clock (0x7).
V2.3
Page 8 of 15
February 2007

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]