Online Development Notebook > Index > ODN > Raw Device Programming > 07 - SetBitCmd

Command #07 - SetBitCmd


Description:

Set a single bit⁄line high.

Command Format:

Byte Number Description
0 07h: SetBitCmd
1 Data - This is the line to set
2 <not used>
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 line to set. Byte 2 through byte 7 are unused.

Bit⁄Line Selection

Byte Value Result   Byte Value Result
00h Affect A.0   08h Affect B.0
01h Affect A.1   09h Affect B.1
02h Affect A.2   0Ah Affect B.2
03h Affect A.3   0Bh Affect B.3
04h Affect A.4   0Ch Affect B.4
05h Affect A.5   0Dh Affect B.5
06h Affect A.6   0Eh Affect B.6
07h Affect A.7   0Fh Affect B.7

Response Format:

Byte Number Description
0 07h: SetBitCmd
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.

Example Usage:

The command 07-07-00-00-00-00-00-00 will set lines A.7 high, assuming it is configured as an output.


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