Yahoo Groups archive

AVR-Chat

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

Thread

Hmmm...more

Hmmm...more

2007-10-03 by Thomas Keller

OK, here  is the code that si reading the EEPROM: (sans comments):

RETRY:
   
    sbic     EECR,        EEPE
    rjmp    RETRY

    out      EEARL,      POINTER
    in        BUFFER,    EEDR


tom

Re: [AVR-Chat] Hmmm...more

2007-10-04 by John Samperi

At 09:19 AM 4/10/2007, you wrote:
>OK, here  is the code that si reading the EEPROM: (sans comments):
>
>RETRY:
>
>     sbic     EECR,        EEPE
>     rjmp    RETRY
>
>     out      EEARL,      POINTER
>     in        BUFFER,    EEDR

hmmmmmmmmmmmmmmmmmmmm that looks NOTHING like what the data sheet shows,
even with comments.

Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Email: john@ampertronics.com.au
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

Re: [AVR-Chat] Hmmm...more

2007-10-04 by Bruce Parham

Thomas Keller wrote:

> OK, here  is the code that si reading the EEPROM: (sans comments):
> 
> RETRY:
>    
>     sbic     EECR,        EEPE
>     rjmp    RETRY
> 
>     out      EEARL,      POINTER
                                      <----- need to set the EERE bit here fort the next "in BUFFER, EEDR" to do anything
Show quoted textHide quoted text
>     in        BUFFER,    EEDR
> 
> 
> tom
>

Re: [AVR-Chat] Hmmm...more

2007-10-04 by enkitec@gmail.com

On 3 Oct 2007 at 18:19, Thomas Keller wrote:

> OK, here  is the code that si reading the EEPROM: (sans comments):
> 
> RETRY:
>    
>     sbic     EECR,        EEPE
>     rjmp    RETRY
> 
>     out      EEARL,      POINTER
>     in        BUFFER,    EEDR
> 
> 
> tom
> 

	Is your uP the ATMEGA48?  What is the EEARH value?

	Mark Jordan

Re: [AVR-Chat] Hmmm...more

2007-10-04 by Thomas Keller

John Samperi wrote:
>
> At 09:19 AM 4/10/2007, you wrote:
> >OK, here is the code that si reading the EEPROM: (sans comments):
> >
> >RETRY:
> >
> > sbic EECR, EEPE
> > rjmp RETRY
> >
> > out EEARL, POINTER
> > in BUFFER, EEDR
>
> hmmmmmmmmmmmmmmmmmmmm that looks NOTHING like what the data sheet shows,
> even with comments.
>
> Regards
>
> John Samperi
>



















***DANG***   You're right, I see now where I screwed up.  I left out a 
crucial line of code,
sbi   EECR,   EERE
prior to copying the data from the EEDR tot he buffer.  *sheesh*  adding 
that line solved the problem.
Thanks, John!!!!

tom

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.