![Portwell WADE-8065 Скачать руководство пользователя страница 22](http://html1.mh-extra.com/html/portwell/wade-8065/wade-8065_user-manual_1581800022.webp)
System Installation
WADE-8065 User’s Manual
3-7
// Select Count Mode
outp(0x002E, 0xF5);
outp(0x002F, (inp(0x002F) & 0xF7) | ( Count-mode Register & 0x08));
// Specify Time-out Value
outp(0x002E, 0xF6);
outp(0x002F, Time-out Value Register );
// Disable WDT reset by keyboard/mouse interrupts
outp(0x002E, 0xF7);
outp(0x002F, 0x00);
// Exit Extended Function Mode
outp(0x002E, 0xAA);
Definitions of Variables:
Value of Count-mode Register:
1) 0x00 -- Count down in seconds (Bit3=0)
2) 0x08 -- Count down in minutes (Bit3=1)
Value of Time-out Value Register:
1) 0x00 -- Time-out Disable
2) 0x01~0xFF -- Value for counting down
3.6
GPIO
WADE-8065 provides 8 programmable input or output ports that can be individually
configured to perform a simple basic I/O function. Users can configure each
individual port to become an input or output port by programming register bit of I/O
Selection. To invert port value, the setting of Inversion Register has to be made. Port
values can be set to read or write through Data Register.
J18 : 8-Bit GPIO Header
PIN No. Signal Description
1 Ground
2 Ground
3 GPIO0
4 GPIO4
5 GPIO1
6 GPIO5
7 GPIO2
8 GPIO6
9 GPIO3
10 GPIO7
11 +5V
12 +12V