Online Development Notebook > Index > ODN > Raw Device Programming > 1F - Read1WireCmd

Command #1F - Read1WireCmd


VERSION 1.30+ of the firmware

Description:

Send a 1-wire (MicroLAN) byte⁄bit read on the previously selected port pin.

Command Format:

Byte Number Description
0 1Fh: Read1WireCmd
1 <not used>
2 Byte⁄bit - 0 = write byte, 1 = write bit. Bit feature for VERSION 1.30+ of the firmware
3 <not used>
4 <not used>
5 <not used>
6 <not used>
7 <not used>

Command Format Details:

Byte 0 contains the command. Byte 1 is not used.

Byte 2 selects reading either a byte or a bit.

This command does not set the port direction pins or select the pin to use as the 1-wire bus - it is the Reset1Wire command that does this.

Response Format:

Byte Number Description
0 1Fh: Read1WireCmd
1 Data - Byte⁄bit read.
2 <not used>
3 <not used>
4 <not used>
5 <not used>
6 <not used>
7 <not used>

Response Format Details:

Byte 0 contains the command. Byte 1 is the byte⁄bit data that was read. Byte 2 through byte 7 are unused.

If a 0 bit is read, data = 0. If a 1 bit is read, data is not 0.


Hardware:  U401 USB Interface    U421 USB Interface
Programming:  USBm DLL Programming    Download Files
Application Notes:  U4x1 Application Notes    Misc Applications and Information    FAQ