|
From: <ha...@hu...> - 2007-03-13 19:55:10
|
Am 13.03.07 schrieb Hans H=FCbner <ha...@hu...>: > For fun, I have connected a four digit 7 segment display to my > ATMEGA32 running at 16 Mhz. The display is multiplexed in two pairs, > so I need to refresh fast enough to get a stable display. To do so, I > use TIMER0 with the overflow interrupt mapped to vector three. I > prescale the timer by 256, thus my interrupt handler is called at > about 240 Hz. It just works. Also, I have observed no anomalies > working in immediate mode while my display refresh was active, so I > could still compile works. What a gas! Great stuff :) Just an observation: While compiling, the display flickers. It seems that IRQs are being disabled during flash programming, which is a good thing. Other than that, the timer driven refresh code has now been running for several hours without a hitch. -Hans |