ACS-2645 User Manual
54
GP = inportb(0x4F); //Bit[3::0] = GPI[3::0]
Write GPIO value
Example x86 assembly code:
;Set GPO62
mov dx, 4Eh
mov al, 0E5h ;GPIO data reg.
out dx, al
mov dx, 4Fh
in al, dx
or al, 00000100b ;Bit2 = GPO62
out dx, al
;Clear GPO62
mov dx, 4Eh
mov al, 0E5h ;GPIO data reg.
out dx, al
mov dx, 4Fh
in al, dx
and al, not 00000100b
out dx, al
Example C code:
//Set GPO62
outportb(0x4E, 0xE5); //GPIO data reg.
Outportb(0x4F, (inportb(0x4F)|0x4)); //Set Bit[2]
//Clear GPO62
outportb(0x4E, 0xE5); //GPIO data reg.
Outportb(0x4F, (inportb(0x4F)&0xFB)); //Clear Bit[2]
The followings are C language source code:
#include "stdio.h"
#include "conio.h"
//Super I/O index access port
#define INDEXP 0x4E
#define DATAP 0x4F
//Enter super I/O programming mode
#define ENTERPRG { \
Summary of Contents for ACS-2645
Page 7: ...ACS 2645 User Manual 7 1 2 Dimensions ...
Page 8: ...ACS 2645 User Manual 8 Figure 1 1 Dimensions of ACS 2645 ...
Page 16: ...ACS 2645 User Manual 16 2 2 Board Dimensions Figure 2 1 Mainboard Dimensions ...
Page 18: ...ACS 2645 User Manual 18 Board Bottom Figure 2 3 Jumpers and Connectors Location Bottom ...
Page 67: ...ACS 2645 User Manual 67 Step 5 Click Install to begin the installation Step 6 Click Finish ...
Page 69: ...ACS 2645 User Manual 69 Step 3 Click Yes I want to restart my computer now to continue ...