RUBY-D812-Q470E
Copyright © Portwell 2021 RUBY-D812-Q470E User's Guide
34
MicroSecondDelay(10);
Status = Inportb(SMBU 0x00);
}
3. Get GPIOn GPI value
Status = Inportb(SMBU 0x00);
Outportb(SMBU 0x00, Status); // SMBus Clear Status
Outportb(SMBU 0x02, 0x08); // Set SMBus CMD to Byte Data
Outportb(SMBU 0x04, 0x41); // Set SMBus Slave Address to 0x40 and excute Read flow
Outportb(SMBU 0x03, 0x09); // Set SMBus Reg
val = Inportb(SMBU 0x02);
val = val | 0x40;
Outportb(SMBU 0x02, val); // Excute SMBus Command
Status = Inportb(SMBU 0x00); // Get SMBus Status
while (!(Status & 0x8E)) { // Wait for SMBus finished command
MicroSecondDelay(10);
Status = Inportb(SMBU 0x00);
}
val = Inportb(SMBU 0x05); // Get SMBus Data
Summary of Contents for RUBY-D812-Q470E
Page 13: ...RUBY D812 Q470E Copyright Portwell 2021 RUBY D812 Q470E User s Guide 13 3 Block Diagram...
Page 41: ...RUBY D812 Q470E Copyright Portwell 2021 RUBY D812 Q470E User s Guide 41...
Page 91: ...RUBY D812 Q470E Copyright Portwell 2021 RUBY D812 Q470E User s Guide 91 7 2 5 Boot...
Page 98: ...RUBY D812 Q470E Copyright Portwell 2021 RUBY D812 Q470E User s Guide 98...