View Full Version : Why does DATA or EEPROM not work 18f2450 ?
Bonxy
- 21st July 2011, 10:44
Hi
When I use the DATA, EEPROM, READ or WRITE I get the following warnings and the code does not work (no values are stored to eeprom).
'Address exceeds maximum range for this processor'
I tried this in a new blank project an I still get the warnings
PBP V2.60, 18F2450 mpasm 5.31
Any Ideas ?.
Bruce
- 21st July 2011, 11:53
Does the 18F2450 have on-chip EEPROM?
Bonxy
- 21st July 2011, 15:07
Hi Bruce
I think it does, am I reading the datasheet wrong ?, does it not have eeprom ?
Bruce
- 21st July 2011, 15:26
Just downloaded & looked over the datasheet. Doesn't look like this one has on-chip EEPROM so that would explain the error.;)
Bonxy
- 21st July 2011, 15:33
OMG, I'm a total idiot, I've been looking at the 2455 datasheet all this time :confused:
My project is prety scuppered without being able to persist some values on power down, do you know if I could use something else with that processor, maybe peek or pokecode or something ?.
Thanks for your help Bruce
Bruce
- 21st July 2011, 16:03
The easy route would just be to use the 2455, but you could use ERASECODE, WRITECODE and READCODE.
This memory wears out a lot faster than EEPROM, and you have to erase before writes, and deal with different block sizes, etc, but it's do-able.
Melanie posted a nice tutorial here somewhere on this.
Bonxy
- 21st July 2011, 16:21
Bruce
I will have a go with the writecode / readcode and see how that goes....
Thanks for your help :-)
mackrackit
- 22nd July 2011, 00:51
http://www.picbasic.co.uk/forum/showthread.php?t=137
Bonxy
- 25th July 2011, 18:28
Thanks Dave & Bruce
I tried with no success to use the write / readcode, so I ordered some 18f13k50's today and while I was at it I realised my dev board (easypic 3) would not program em, so I splashed out on a pickit3 programmer too lol, new toys to play with! yey :)
I'ts going to be oh so easy with these new pic's and me shiney new programer, right....?
mister_e
- 26th July 2011, 15:16
I'm surprised the EasyPic 3 can't program theses... I would try to download the latest MikroProg Suite from MikroElektronika website and see what happen.
More toys never hurt, that's for sure, and now you can also program them directly in circuit without nasty adapters ;)
Bonxy
- 26th July 2011, 15:24
Hmm, acording to the pickit3 bumf, it now can program all pics, unless I have read the description wrong :confused: (again).
http://www.microchip.com/pickit3
mister_e
- 26th July 2011, 15:32
It has to work. PICKIT 3 is their new beloved toy. I still like my PICKIT 2, but they've stopped the support. However, it seems that some third party/clone site provide some extended support. It is not that hard to add new device to PICKIT 2, but hey, PICKIT 3 is so cheap (when you compare to other 3rd party one).
Not sure how good/complete their standalone application is VS PICKIT 2 though. Would be nice if they would open their source... but I guess it will never happen since they've lost a load of sale with PICKIT 2 with the tons of clones...
Bonxy
- 26th July 2011, 15:37
I bet you have seen the eeVblog thing where the OZ engineer slates the pickit 3 and Microchip makes a video response, quite entertaining I thought.. :)
http://www.eevblog.com/2009/10/21/eevblog-39-pickit-3-programmerdebugger-review/
mister_e
- 26th July 2011, 15:45
:D yeah i saw that, pretty cool reply from such company. Love them :D
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.