[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]

Отправлено Сергей Тюнькин 09 октября 2001 г. 09:27
В ответ на: Поддержка периферии в симуляторе uVision2 V2.04b отправлено Keiler 08 октября 2001 г. 20:33

Я эмуляцию ЖКИ делаю так:

1.определяем режим отладки

#define Debug_Ind

2.Выделяем область памяти, за границей используемой XDATA

#ifdef Debug_Ind
#define Buf_Displey_Debug 0x00800
#endif

3. В отадчике в Memory Window устанавливаем Address: X:0x800, режим вывода ASCII

Например см. п/п:

void ClearDisplay()
{
#ifdef Debug_Ind
data char i;
Count_Poz_Debug = 0;
for (i=0;i!=0x70;i++)
{
Mem[Buf_Displey_Debug+i] = ' ';
}
#else
Wait_Ready_Ind();
WrInstrInd = _IndClr;
Wait_Ready_Ind();
WrInstrInd = _IndReturn;
#endif
}//void ClearDisplay()


Составить ответ  |||  Конференция  |||  Архив

Ответы



Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru