Searching \ for '[PIC]: Reading EEPROM' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/memory.htm?key=eeprom
Search entire site for: 'Reading EEPROM'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: Reading EEPROM'
2002\11\20@144855 by Royce Simmons

picon face
part 1 305 bytes content-type:text/plain; (decoded 7bit)

Hello All,

I am trying without any success to read data from EEPROM in a 16F628,
attached is a fragment that I am using that
does not work.  Prehaps someone can point out the error of my ways.  Or show
me a better bit of code to use.

Sure would appreciate it,  Royce


part 2 923 bytes content-type:application/octet-stream; (decode)

part 3 131 bytes
--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2002\11\20@150143 by Nick Veys

flavicon
face
What doesn't work about it?

It looks like you're reading EEPROM values and putting them out to PORTB
if they are not zero, if they are zero you have an infinite loop it
would appear, unless you have an interrupt modifying EEPROM values
elsewhere.

Nick Veys / spam_OUTnickTakeThisOuTspamveys.com / http://www.veys.com

] {Original Message removed}

2002\11\20@165515 by Kyrre Aalerud

flavicon
face
I would check directions of portb and any other registers concering portb's
functions.
You may find you are reading correctly, but can't output...

   Kyrre

----- Original Message -----
From: "Nick Veys" <.....nickKILLspamspam@spam@VEYS.COM>
To: <PICLISTspamKILLspamMITVMA.MIT.EDU>
Sent: Wednesday, November 20, 2002 9:03 PM
Subject: Re: [PIC]: Reading EEPROM


> What doesn't work about it?
>
> It looks like you're reading EEPROM values and putting them out to PORTB
> if they are not zero, if they are zero you have an infinite loop it
> would appear, unless you have an interrupt modifying EEPROM values
> elsewhere.
>
> Nick Veys / .....nickKILLspamspam.....veys.com / http://www.veys.com
>
> ] {Original Message removed}

2002\11\20@173122 by Jinx

face picon face
> initeeprom
>           bcf    STATUS,R            ; bank 0
>           clrf   EEADR               ; read first address

>           bcf    STATUS,RP0          ; bank 0
>           movf   EEDATA,W            ; W = EEDATA

EEDATA and EEADR aren't in bank0

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2002\11\21@095331 by Royce Simmons

picon face
Hi,

Thanks to Jinx I found the problem,  wrong bank selection.  Really dumb.

Thanks also to Nick and Kyrre.

Royce

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email EraseMElistservspam_OUTspamTakeThisOuTmitvma.mit.edu with SET PICList DIGEST in the body


2002\11\21@111904 by Olin Lathrop

face picon face
> Thanks to Jinx I found the problem,  wrong bank selection.

Sounds like you're ready to use the DBANKIF and related macros in
STD.INS.ASPIC at http://www.embedinc.com/pic.  They are not a complete
cure all, but they do greatly reduce dumb mistakes like this one.


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email listservspamspam_OUTmitvma.mit.edu with SET PICList DIGEST in the body


More... (looser matching)
- Last day of these posts
- In 2002 , 2003 only
- Today
- New search...