Online Development Notebook > Index > ODN > Raw Device Programming > 00 - InitPortsCmd

Command #00 - InitPortsCmd


Description:

Initialize both ports to be passive inputs.

There are two 8-bit ports on the U4xx, 16 I⁄O lines. The 16 total I⁄O lines can be set to inputs or outputs on an individual per-line basis. The initial state of the ports on power up is that all of the 16 lines are set to be inputs. This command duplicates the power up conditions of setting all lines to input.

Command Format:

Byte Number Description
0 00h: InitPortsCmd
1 <not used>
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 through byte 7 are unused.

Response Format:

Byte Number Description
0 00h: InitPortsCmd
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:

Sending the InitPortsCmd command to the device will reset the ports.


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