Asus AAEON COM-BYTC2 User Manual page 89

Com express module
Table of Contents

Advertisement

************************************************************************************
VOID ECB RAMWriteByte(byte OPReg, byte OPBit, byte Value){
IOWriteByte(EcBRAMIndex, 0x10);
IOWriteByte(EcBRAMData, BRAMLDNReg);
IOWriteByte(EcBRAMIndex, 0x11);
IOWriteByte(EcBRAMData, BRAMFnDataReg);
IOWriteByte(EcBRAMIndex, 0x13 + OPReg);
IOWriteByte(EcBRAMData, Value);
IOWriteByte(EcBRAMIndex, 0x12);
IOWriteByte(EcBRAMData, 0x30);
}
Byte ECBRAMReadByte(byte FnDataReg, byte OPReg){
IOWriteByte(EcBRAMIndex, 0x10);
IOWriteByte(EcBRAMData, BRAMLDNReg);
IOWriteByte(EcBRAMIndex, 0x11);
IOWriteByte(EcBRAMData, FnDataReg);
IOWriteByte(EcBRAMIndex, 0x12);
IOWriteByte(EcBRAMData, 0x10);
IOWriteByte(EcBRAMIndex, 0x13 + OPReg);
Return
IOReadByte(EcBRAMData, Value);
}
************************************************************************************
Appendix C – Programming Digital I/O
//Write start
//Read start
77

Advertisement

Table of Contents
loading

Table of Contents