AOpen WARM TOUCH WT22M-RH Technology Manual page 26

Touch screen computer
Hide thumbs Also See for WARM TOUCH WT22M-RH:
Table of Contents

Advertisement

How to program the related registers:
out
0x4e, 0x87
out
0x4e, 0x87
out
0x4e, 0x07
out
0x4f, 0x06
out
0x4e, 0x30
in
byte_value, 0x4f
and
byte_value, 0xfe
or
byte_value, 0x01
out
byte_value. 0x4f
out
0x4e, 0xaa
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.
; Enable register read/write by softeare.
; Set LDN
; Set register's Index( 0x30, for example )
; Get the register value from chip.
; Clear the related bits. ( "Enable/Disable GPIO Port", for example )
; Set the related bits. ( "Enable/Disable GPIO Port", for example )
; Set the register value into chip.
; Disable register read/write by softeare.
26

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents