gnupic: how to init EEPROM internal memory ?


Previous by date: 26 Oct 2004 15:02:16 +0100 GPAL loops bug?, David McNab
Next by date: 26 Oct 2004 15:02:16 +0100 Re: how to init EEPROM internal memory ?, Gabor Kiss [Bitman]
Previous in thread: 26 Oct 2004 15:02:16 +0100 Re: how to init EEPROM internal memory ?, Gabor Kiss [Bitman]
Next in thread: 26 Oct 2004 15:02:16 +0100 Re: how to init EEPROM internal memory ?, Gabor Kiss [Bitman]

Subject: Re: how to init EEPROM internal memory ?
From: Nicaise J-Ch ####@####.####
Date: 26 Oct 2004 15:02:16 +0100
Message-Id: <20041026140414.GA26490@teledisnet.be>

On Mon, Oct 25, 2004 at 10:33:40AM +0200, Gabor Kiss [Bitman] wrote:
> > I would like to init some eeprom register directely in my .asm file
> > for do this I think I must do something like that :
> >
> > 	org 0x4100
> >         DE      0,0
> >         DE      0,0,0,1
> >         DE      0,0,0,0,0
> >
> > but the result is :
> >
> > :10820000000000000000000000000100000000006D
> > :0682100000000000000068
> > :00000001FF
> >
> > so as you can see the location is not correct :
> > it must be like this :
> >
> > :1042000000000000000000000000010000000000AD
> > :10421000000000000000000000000000000000009E
> > :00000001FF

hello, 

Thank's for yout answer !

> "org 0x4100" means 0x4100 _words_ from 0x0000.
> (Unless you have a PIC18XXXX chip)
> However HEX file addressing is in bytes.
> So address 8200 is correct.
> 4200 must be wrong anyway. (You wanted to write 4100, didn't you?)
yes I do ! ;-)

> Don't worry about 16 bit words in HEX file.
> Programmer uses the lower 8 bit only when writing EEPROM.
Ok !

I try with "org 8200" but with gpasm (gpasm-0.12.4)
the result is :

:020000040001F9
:1004000000000000000000000000010000000000EB
:06041000000000000000E6
:00000001FF

What's wrong this time ? Do I forgot to do something else ?

Dorian.
-- 

"The ultimate measure of a man is not where he stands in moments of comfort and 
 convenience,but where he stands at times of challenge and controversy. 
 Martin Luther King, Jr."

"Voici mon secret il est tres simple : on ne voit bien qu'avec le coeur 
 l'essentiel est invisible pour les yeux ! (LE PETIT PRINCE )" 

"First they ignore you, Then they laugh at you, Then they fight you, 
 Then you win." Gandhi
 
PGP key_id 0x05001CEF (which can be found on any PGP keys server)

[Content type application/pgp-signature not shown. Download]

Previous by date: 26 Oct 2004 15:02:16 +0100 GPAL loops bug?, David McNab
Next by date: 26 Oct 2004 15:02:16 +0100 Re: how to init EEPROM internal memory ?, Gabor Kiss [Bitman]
Previous in thread: 26 Oct 2004 15:02:16 +0100 Re: how to init EEPROM internal memory ?, Gabor Kiss [Bitman]
Next in thread: 26 Oct 2004 15:02:16 +0100 Re: how to init EEPROM internal memory ?, Gabor Kiss [Bitman]


Powered by ezmlm-browse 0.20.