AHM-6XX6A User Manual
56
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 { \
outportb(INDEXP, 0x87); \
outportb(INDEXP, 0x87);}
//Super I/O index write
#define WRITEREG(reg,val) { \
outportb(INDEXP, reg); \
outportb(DATAP, val);}
//Exit super I/O programming mode
#define EXITPRG { \
outportb(INDEXP, 0xAA);}
//Select logic device number
#define SELETDEV(ldn) { \
outportb(INDEXP, 7); \
outportb(DATAP, ldn); }
//Initialize the GPIO port2
int InitGP2() {
//Start the super I/O chip programming
ENTERPRG
//Select the logical device 9, GP2
SELETDEV(9)
//Activate GP1
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 ...