[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
void StatusDisp (void)
{
uchar temp;
Set_Cd;
PRT1CF=0;
DataBus=0xff;
do {
Clr_Rd;
_nop_();
_nop_();
temp=DataBus & 3;
Set_Rd;
}
while (temp!=3);
PRT1CF=0xff;
}
void WriteDispData(uchar temp)
{
StatusDisp();
Clr_Cd;
DataBus=temp;
Clr_Wr;
_nop_();
_nop_();
Set_Wr;
Set_Cd;
}
void WriteDispCode(uchar temp)
{
StatusDisp();
DataBus=temp;
Clr_Wr;
_nop_();
_nop_();
Set_Wr;
}
E-mail: info@telesys.ru