Copyright © 2013 IBASE Technology Inc. All Rights Reserved.
59
IBASE Technology Inc.
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)
Содержание BYTEM-103-PC
Страница 1: ...www ibase com tw IBASE Technology Inc BYTEM 103 PC User Manual...
Страница 8: ......
Страница 11: ...Copyright 2013 IBASE Technology Inc All Rights Reserved 3 IBASE Technology Inc 1 2 2 Dimensions BYTEM 103 PC...
Страница 12: ...4 BYTEM 103 PC User Manual...
Страница 14: ...6 BYTEM 103 PC User Manual M12 10 100M LAN Port Pin 1 LAN TX Pin 2 LAN RX Pin 3 LAN TX Pin 4 LAN RX...
Страница 60: ...52 BYTEM 103 PC User Manual 3 Click Yes to accept the license agreement...