APC-3x82/83 User Manual
52
outportb(0x4F, 0x08); //Select LDN=8, GPIO Port6
or
outportb(0x4E, 0x07); //LDN selection register
outportb(0x4F, 0x09); //Select LDN=9, GPIO Port2
Activate the logic device
Example x86 assembly code:
mov dx, 4Eh
mov al, 030h ;Logic device activation control reg.
out dx, al
mov dx, 4Fh
in al, dx
or al, 004h ;Set bit2 to enable GPIO Port6 if LDN=8
or al, 002h ;Set bit1 to enable GPIO Port2 if LDN=9
out dx, al
Example C code:
outportb(0x4E, 0x30); //Logic device activation control
outportb(0x4F, (inportb(0x4F)|0x2));
//Set bit[1] to enable GPIO Port2 if LDN=9
Or
outportb(0x4E, 0x30); //Logic device activation control
outportb(0x4F, (inportb(0x4F)|0x4));
//Set bit[2] to enable GPIO Port6 if LDN=8
Configure GPIO register
Example x86 assembly code:
mov dx, 4Eh
mov al, 0E6h ;GPIO inversion reg.
out dx, al
mov dx, 4Fh
mov al, 000h ;0
– normal, 1 - inverted
out dx, al
mov dx, 4Eh
mov al, 0E4h ;GPIO I/O selection reg.
out dx, al
mov dx, 4Fh
mov al, 0FFh ;0
– Output, 1 – Input
;or mov al, 0F0h to set output
out dx, al
Summary of Contents for APC-3x82
Page 8: ...APC 3x82 83 User Manual 8 1 2 Dimensions Figure 1 1 Dimensions of APC3282 APC 3283 ...
Page 9: ...APC 3x82 83 User Manual 9 Figure 1 2 Dimensions of APC 3582 APC 3583 ...
Page 10: ...APC 3x82 83 User Manual 10 Figure 1 3 Dimensions of APC 3782 APC 3783 ...
Page 11: ...APC 3x82 83 User Manual 11 Figure 1 4 Dimensions of APC 3982 APC 3983 ...
Page 64: ...APC 3x82 83 User Manual 64 Step 5 Click Next Step 6 Click Next to continue ...
Page 71: ...APC 3x82 83 User Manual 71 Step 5 Select Yes I want to restart my computer now then click OK ...
Page 76: ...APC 3x82 83 User Manual 76 Step 8 Click Finish to compete installation ...