![background image](http://html1.mh-extra.com/html/ibase-technology/mbn802/mbn802_user-manual_3232472064.webp)
Appendix
MBN802 User Manual
57
void Lock_NCT5523D (void)
{
outportb(NCT5523D_INDEX_PORT, NCT5523D_LOCK);
}
//---------------------------------------------------------------------------
void Set_NCT5523D_LD( unsigned char LD)
{
Unlock_NCT5523D();
outportb(NCT5523D_INDEX_PORT, NCT5523D_REG_LD);
outportb(NCT5523D_DATA_PORT, LD);
Lock_NCT5523D();
}
//---------------------------------------------------------------------------
void Set_NCT5523D_Reg( unsigned char REG, unsigned char DATA)
{
Unlock_NCT5523D();
outportb(NCT5523D_INDEX_PORT, REG);
outportb(NCT5523D_DATA_PORT, DATA);
Lock_NCT5523D();
}
//---------------------------------------------------------------------------
unsigned char Get_NCT5523D_Reg(unsigned char REG)
{
unsigned char Result;
Unlock_NCT5523D();
outportb(NCT5523D_INDEX_PORT, REG);
Result = inportb(NCT5523D_DATA_PORT);
Lock_NCT5523D();
return Result;
}
//-----------------------------------------------------------------------