Thanks for the suggestions, I mentioned that sometims it is working fine; starting at 99 and counting down at 1 sec intervals, updating display correctly. This indicates that initialization is ok, lookup table, addressing is ok! BUT SOMETIMES it gets this strange output on the seven segment which is changing at 1 sec intervals. this strange output is repeated every 10 sec, which appears that the problem is in the reading data from lookup table. If it starts giving correct output it continues this way, also if it starts giving strange output it continues. My question is: 1- Why is it sometimes working ok and stable and sometimes not? if it is getting correct output code why sometimes it is corrupted? 2- If a reset is done at the reset pin will it do a complete reset? because what happens is that when it gives strange output a reset brings it back to the first corrupted displyed output not the 99 as it should be. I tried different chip and the same happened. Moataz --- David VanHorn <microbrix@gmail.com> wrote: > Verify that when you load Z, it's actually pointing > to twice the address of > the table base, plus the proper offset? > > Verify that you are picking up the data after the > LPM instruction and not > erasing it accidentally. > > Check that you don't have an ISR that is killing the > data. > > > [Non-text portions of this message have been > removed] > > ____________________________________________________________________________________ Sponsored Link Degrees online in as fast as 1 Yr - MBA, Bachelor's, Master's, Associate Click now to apply http://yahoo.degrees.info
Message
Re: [AVR-Chat] strange display
2006-11-07 by Moataz Hussein
Attachments
- No local attachments were found for this message.