![background image](http://html1.mh-extra.com/html/ibase-technology/bytem-w071-pc/bytem-w071-pc_user-manual_3227818067.webp)
58
BYTEM-xx1-PC User Manual
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)
Summary of Contents for BYTEM-W071-PC
Page 2: ...www ibase com tw IBASE Technology Inc BYTEM xx1 PC User Manual...
Page 9: ......
Page 13: ...4 BYTEM xx1 PC User Manual BYTEM 101 PC...
Page 14: ...Copyright 2013 IBASE Technology Inc All Rights Reserved 5 IBASE Technology Inc BYTEM 121 PC...
Page 19: ...10 BYTEM xx1 PC User Manual Board Dimensions for IB897 I45 I27 I15...