AHM-6XX6A User Manual
55
Example x86 assembly code:
mov dx, 4Eh
mov al, 0E5h ;GPIO data reg.
out dx, al
mov dx, 4Fh
in al, dx ;Bit[3::0] = GPI[3::0] value
Example C code:
outportb(0x4E, 0xE5); //GPIO data reg.
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]
Summary of Contents for AHM-6XX6A
Page 9: ...AHM 6XX6A User Manual 8 1 2 Dimensions Figure 1 1 Dimensions of the AHM 6086A ...
Page 10: ...AHM 6XX6A User Manual 9 Figure 1 2 Dimensions of the AHM 6126A ...
Page 11: ...AHM 6XX6A User Manual 10 Figure 1 3 Dimensions of the AHM 6156A ...
Page 12: ...AHM 6XX6A User Manual 11 Figure 1 4 Dimensions of the AHM 6176A ...
Page 13: ...AHM 6XX6A User Manual 12 Figure 1 5 Dimensions of the AHM 6196A ...
Page 63: ...AHM 6XX6A User Manual 62 ...
Page 66: ...AHM 6XX6A User Manual 65 ...
Page 67: ...AHM 6XX6A User Manual 66 ...
Page 70: ...AHM 6XX6A User Manual 69 ...
Page 73: ...AHM 6XX6A User Manual 72 Click FINISH A Driver Installation Complete ...
Page 77: ...AHM 6XX6A User Manual 76 5 Installing ...
Page 78: ...AHM 6XX6A User Manual 77 6 The Install Shield Wizard Completed appears Click Finish ...