Download Print this page

AOpen WARM TOUCH Manual page 28

Advertisement

CR06 Index F1h[2] = 0/1 = GPIO02(COM Connector Pin 38) with a Lo/Hi voltage output while it is
output mode.
CR06 Index F1h[4] = 0/1 = GPIO04(COM Connector Pin 40) with a Lo/Hi voltage output while it is
output mode.
CR06 Index F2h[1] = 0/1 = GPIO01(COM Connector Pin 36) read as a Lo/Hi voltage input while it is
input mode.
CR06 Index F2h[2] = 0/1 = GPIO02(COM Connector Pin 38) read as a Lo/Hi voltage input while it is
input mode.
CR06 Index F2h[4] = 0/1 = GPIO04(COM Connector Pin 40) read as a Lo/Hi voltage input while it is
input mode.
The following setting is by your add-board design:
CR06 Index F3h[1] = 0/1 = GPIO01(COM Connector Pin 36) with a open-drain/push-pull design.
CR06 Index F3h[2] = 0/1 = GPIO02(COM Connector Pin 38) with a open-drain/push-pull design.
CR06 Index F3h[4] = 0/1 = GPIO04(COM Connector Pin 40) with a open-drain/push-pull design.
In DOS, you just use ASM with "in" "out" command or C with "inportb" "outportb" or QBasic with "INP" "OUT".
If your program is in Windows, you have to write a Ring-0 I/O driver to access 0x4e/0x4f I/O ports.
Or, you can use the DLL writen by some one:
IO.DLL - http://www.geekhideout.com/iodll.shtml
WinIO.DLL - http://www.internals.com/
How to write a C/C++/Basic or the other program: all description are on the OfficalWebSite and ZIP file,
please reference it.
28

Advertisement

loading

This manual is also suitable for:

Wt22m-rhWt22m-rhi