ROBO-8113VG2AR
Copyright © Portwell 2016 ROBO-8113VG2AR User's Guide
31
4.2
GPIO Signal
#Define GPCR 0x2B //GPIO Counter Register, Bit7 = GPIO7, Bit6 = GPIO6, ..., 0: Output; 1: Input
#Define GPDR 0x2C //GPIO Data Register, Bit7 = GPIO7, Bit6 = GPIO6, ..., 0: Low; 1: High
VOID Write_EC_SRAM(UINT8 Offset,UINT8 Value){
IoWrite8(Offset,Value);
}
Byte Read_EC_SRAM(UINT8 Offset){
IoRead8(offset,Value);
return Value;
}
void GPIO()
{
int Temp;
// Get GPIO data
Temp = Read_EC_SRAM(GPDR);
// Set GPIO7 High
Temp |= 0x80;
Write_EC_SRAM(GPDR,Temp); //Bit7: GPIO7 status, 0: Low 1: High
}
Содержание ROBO-8113VG2AR
Страница 2: ...ROBO 8113VG2AR Copyright Portwell 2016 ROBO 8113VG2AR User s Guide 2 Revision History R1 0 Preliminary...
Страница 13: ...ROBO 8113VG2AR Copyright Portwell 2016 ROBO 8113VG2AR User s Guide 13 2 2 Mechanical Dimensions...
Страница 14: ...ROBO 8113VG2AR Copyright Portwell 2016 ROBO 8113VG2AR User s Guide 14...
Страница 17: ...ROBO 8113VG2AR Copyright Portwell 2016 ROBO 8113VG2AR User s Guide 17 Block Diagram...
Страница 36: ...ROBO 8113VG2AR Copyright Portwell 2016 ROBO 8113VG2AR User s Guide 36...
Страница 87: ...ROBO 8113VG2AR Copyright Portwell 2016 ROBO 8113VG2AR User s Guide 87 6 2 5 Save Exit...