Online Development Notebook > Index > ODN > Raw Device Programming > 1E - Write1WireCmd

Command #1E - Write1WireCmd


VERSION 1.30+ of the firmware

Description:

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

Command Format:

Byte Number Description
0 1Eh: Write1WireCmd
1 Data - Byte⁄bit to write.
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 contains the data to write to the previously selected port line. the data is either a byte or a bit, depending on byte 2.

Byte 2 selects writing 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 1Eh: Write1WireCmd
1 <not used>
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 through byte 7 are unused.


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