AAEON PFM-CVS Rev.A User Manual

Page 107

Advertising
background image

P C / 1 0 4 M o d u l e

P F M - C V S

Appendix D Electrical Specifications for I/O Ports

D-7

}

Else(Read Digital Input?){

// Read Digital Input Status, High/Low ?

// Example :

// GPIO8x GPIOPinStatusRegister = 0x8A

// GPIO7x GPIOPinStatusRegister = 0x82

ByteData = f81866ReadByte(GPIOPinStatusRegister);

// If ByteDate = 0xF0

// GPIOx4~GPIOx7 Pin Status is High

}

aaeonSuperIOClose();

}

Void aaeonSuperIOOpen(){ // Config F81866 Entry key

aaeonioWritePortByte(F81866_INDEX, 0x87);

aaeonioWritePortByte(F81866_INDEX, 0x87);

}

Void aaeonSuperIOClose(){

aaeonioWritePortByte(F81866_INDEX, 0xaa);

}

Advertising