
26
How to program the related registers:
out 0x4e, 0x87 ; Enable register read/write by softeare.
out 0x4e, 0x87
out 0x4e, 0x07
out 0x4f, 0x06 ; Set LDN
out 0x4e, 0x30 ; Set register's Index( 0x30, for example )
in byte_value, 0x4f ; Get the register value from chip.
and byte_value, 0xfe ; Clear the related bits. ( "Enable/Disable GPIO Port", for example )
or byte_value, 0x01 ; Set the related bits. ( "Enable/Disable GPIO Port", for example )
out byte_value. 0x4f ; Set the register value into chip.
out 0x4e, 0xaa ; Disable register read/write by softeare.
The register's in datasheet; you can reference to the attached file.
The session is "8.6 GPIO Registers(CR06)" in page 87.
You have to program the following registers in basic:
CR06 Index F0h[1] = 0/1 = GPIO01(COM Connector Pin 36) as input/output pin
CR06 Index F0h[2] = 0/1 = GPIO02(COM Connector Pin 38) as input/output pin
CR06 Index F0h[4] = 0/1 = GPIO04(COM Connector Pin 40) as input/output pin
CR06 Index F1h[1] = 0/1 = GPIO01(COM Connector Pin 36) with a Lo/Hi voltage output while it is
output mode.
CR06 Index F1h[2] = 0/1 = GPIO02(COM Connector Pin 38) with a Lo/Hi voltage output while it is
output mode.
Содержание WARM TOUCH WT22M-RH
Страница 1: ...1 WARM TOUCH WT22M RH Technology Manual ...
Страница 21: ...21 4 3 KIOSK Bracket Assembly 厚度 60 5mm ...
Страница 32: ...32 6 Jumper Setting 6 1 For Huronriver Motherboard 6 1 1 Motherboard Placement ...
Страница 33: ...33 6 1 2 I O board Placement 6 1 3 Jumper Setting RJ50 DB9F serial Cable ...