gnupic: how to init EEPROM internal memory ?


Previous by date: 25 Oct 2004 09:36:14 +0100 Re: Yikes, I crashed GPAL, David McNab
Next by date: 25 Oct 2004 09:36:14 +0100 Re: Yikes, I crashed GPAL, Craig Franklin
Previous in thread: 25 Oct 2004 09:36:14 +0100 how to init EEPROM internal memory ?, Nicaise J-Ch
Next in thread: 25 Oct 2004 09:36:14 +0100 Re: how to init EEPROM internal memory ?, Nicaise J-Ch

Subject: Re: how to init EEPROM internal memory ?
From: "Gabor Kiss [Bitman]" ####@####.####
Date: 25 Oct 2004 09:36:14 +0100
Message-Id: <Pine.LNX.4.58.0410251027430.12743@nelson.cdata.hu>

> 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

"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?)

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

Gabor
-- 
E-mail = m-mail * c-mail ^ 2

Previous by date: 25 Oct 2004 09:36:14 +0100 Re: Yikes, I crashed GPAL, David McNab
Next by date: 25 Oct 2004 09:36:14 +0100 Re: Yikes, I crashed GPAL, Craig Franklin
Previous in thread: 25 Oct 2004 09:36:14 +0100 how to init EEPROM internal memory ?, Nicaise J-Ch
Next in thread: 25 Oct 2004 09:36:14 +0100 Re: how to init EEPROM internal memory ?, Nicaise J-Ch


Powered by ezmlm-browse 0.20.