E m b e d d e d C o n t r o l l e r
T K S - G 2 0 - L N 0 5
Appendix B DIO
B-9
int
status;
SMBusCheckReady( SMBus_Base );
outportb(SMBSMBUS_REG_DID_RW, De
SMBUS_DATA_WRITE);
//ID cmd(Write)
IO_Delay(1000);
IO_Delay(1000);
SMBusClearStatus(SMBus_Base);
outportb(SMBSMBUS_REG_DATA_OFFSET,
REG_DATA_OFFSET);
//Index
IO_Delay(1000);
IO_Delay(1000);
outportb(SMBSMBUS_REG_HST_D0,
data);
//Data0
IO_Delay(1000);
IO_Delay(1000);
outportb(SMBSMBUS_REG_COMMAND,
SMBUS_CMSMBUS_CMD_CMD_RW); //write
data
IO_Delay(1000);
IO_Delay(1000);
IO_Delay(100);
status=SMBusCheckReady( SMBus_Base );
if
(status<0)
{
printf("\n Write Fail\n");
}
else
{
//
printf("\n Write Success\n");
}
return
0;
}
Содержание TKS-G20-LN05
Страница 10: ...Embedded Controller T K S G 2 0 L N 0 5 Chapter 1 General Information 1 1 General Chapter 1 Information ...
Страница 18: ...Embedded Controller T K S G 2 0 L N 0 5 Chapter 2 Quick Installation Guide 2 4 Solder Side ...
Страница 31: ...Embedded Controller T K S G 2 0 L N 0 5 Chapter 3 AMI BIOS Setup 3 1 AMI Chapter 3 BIOS Setup ...
Страница 34: ...Embedded Controller T K S G 2 0 L N 0 5 Chapter 4 Driver Installation 4 1 Driver Chapter 4 Installation ...
Страница 46: ...Embedded Controller T K S G 2 0 L N 0 5 Appendix B DIO B 1 DIO Appendix B ...