
APPENDIX
MI987 User’s Manual
57
void Dio5Initial(void)
{
unsigned char ucBuf;
ucBuf = Get_NCT5523D_Reg(0x1C);
ucBuf &= ~0x02;
Set_NCT5523D_Reg(0x1C, ucBuf);
Set_NCT5523D_LD(0x07);
//switch to logic device 7
//enable the GP2 group
ucBuf = Get_NCT5523D_Reg(0x30);
ucBuf |= 0x04;
Set_NCT5523D_Reg(0x30, ucBuf);
}
//---------------------------------------------------------------------------
void Dio5SetOutput(unsigned char NewData)
{
Set_NCT5523D_LD(0x07);
//switch to logic device 7
Set_NCT5523D_Reg(0xE1, NewData);
}
//---------------------------------------------------------------------------
unsigned char Dio5GetInput(void)
{
unsigned char result;
Set_NCT5523D_LD(0x07);
//switch to logic device 7
result = Get_NCT5523D_Reg(0xE1);
return (result);
}
//---------------------------------------------------------------------------
void Dio5SetDirection(unsigned char NewData)
{
//NewData : 1 for input, 0 for output
Set_NCT5523D_LD(0x07);
//switch to logic device 7
Set_NCT5523D_Reg(0xE8, NewData);
}
//---------------------------------------------------------------------------
unsigned char Dio5GetDirection(void)
{
unsigned char result;
Set_NCT5523D_LD(0x07);
//switch to logic device 7
result = Get_NCT5523D_Reg(0xE8);
return (result);
}
//---------------------------------------------------------------------------
Содержание MI987
Страница 1: ...MI987 Intel Q87 H81 Based Mini ITX board Mini ITX Motherboard USER S MANUAL Version 1 0 ...
Страница 4: ...iv MI987 User s Manual This page is intentionally left blank ...
Страница 9: ...INSTALLATIONS MI987 User s Manual 5 Connectors on MI987 錯誤 尚未定義書籤 ...
Страница 12: ...INSTALLATIONS 8 MI987 User s Manual Jumper Locations on MI987 Jumpers on MI987 Page ...
Страница 15: ...INSTALLATIONS MI987 User s Manual 11 JP10 Power On Type JP10 Function 1 2 ATX Mode Default 2 3 AT Mode 3 1 ...
Страница 17: ...INSTALLATIONS MI987 User s Manual 13 Connector Locations on MI987 ...
Страница 26: ...INSTALLATIONS 22 MI987 User s Manual This page is intentionally left blank ...
Страница 56: ...DRIVER INSTALLATION 52 MI987 User s Manual This page is intentionally set blank ...