Цитата(Anjey_N @ Feb 7 2007, 15:15)

Всем привет!...
Код
...
/* массив дисплея */
UCHAR Display_Array[DISPLAY_ARRAY_SIZE];
...
/* Прерывание от счетчика для обновления дисплея. Вызывается каждые 20 мс (50 Гц) */
__interrupt void display_isr(void) {
static UCHAR index = 0;
...
PORTB = Display_Array[index++];
if(DISPLAY_ARRAY_SIZE <= index)
index = 0;
...
}