0x10
Port 0 default value
0x11
Port 1 default value
0x12
Port 2 default value
0x13
Port 3 default value
0x14
Port 4 default value
0x15
Port 5 default value
0x16
Port 6 default value
0x17
Port 7 default value
0x18
Port DIO default value
0x19
Input/output default setting
USB_M_4IO
0x00
IN03 to IN00
Remarks
In USB_8PR, we provide 2 digital ports for user to define either as input or output. It can be defined
by Jumper 10 and Jumper 11 on the board. And we can use hid_GetDigitalByte / com_GetDigitalByte
function to read Jumper State to determine witch port is either input or output.
hid_GetDigitalByte( hDevice, 0x10, &byState); // or use com_GetDigitalByte for serial communication
When JP9 is closed, DIO7 - DIO0 is for Input.
The fifth bit of byState is 0
When JP9 is opened, DIO7 - DIO0 is for Output. The fifth bit of byState is 1
When JP10 is closed, DIO15 – DIO8 is for Input. The sixth bit of byState is 0
When JP10 is opened, DIO15 – DIO8 is for Output. The sixth bit of byState is 1