[an error occurred while processing this directive] [an error occurred while processing this directive]
Только я ни фига не пойму,прога-то рабочая...
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)
[an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive]

Отправлено Бав 02 октября 2001 г. 11:52
В ответ на: А вам конкретно и ответили! отправлено Elektronik 02 октября 2001 г. 11:36

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