Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: strange display

2006-11-07 by gregorslemi

I believe the problem is, that when you separate the digits in the
variable, the variable is not 9 but it is 19 or something simmilar, so
it looks for number outside the lookup table.

Slemi

--- In AVR-Chat@yahoogroups.com, Moataz Hussein <husseinmoataz@...> wrote:
>
> 
> 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@...> 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
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.