View previous topic :: View next topic |
Author |
Message |
mnoble_uk
Joined: 15 Dec 2004 Posts: 4
|
Data flash on 18LF6620 |
Posted: Wed Dec 15, 2004 6:04 am |
|
|
I'm trying to use the data flash on a 6620 and am using write_eeprom(), however the function only accepts an 8 bit address. How can I write to the data flash above 0xff ??
Thanks
Michael.
Last edited by mnoble_uk on Wed Dec 15, 2004 6:21 am; edited 1 time in total |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Wed Dec 15, 2004 6:15 am |
|
|
I can't find the datasheet for the 16LF6620, are you sure about this type number? |
|
|
mnoble_uk
Joined: 15 Dec 2004 Posts: 4
|
|
Posted: Wed Dec 15, 2004 6:20 am |
|
|
oopsie I meant 18LF6620 .... |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Wed Dec 15, 2004 7:08 am |
|
|
From the readme.txt in v3.212: Quote: | The READ_PROGRAM_EEPROM and WRITE_PROGRAM_EEPROM functions for PIC18 now return 16 bits. The manual indicates it is 8 bits. New functions are comming that will will have more options. |
If you have an older version then check your readme.txt for supporting 16 bits. |
|
|
mnoble_uk
Joined: 15 Dec 2004 Posts: 4
|
|
Posted: Wed Dec 15, 2004 7:47 am |
|
|
yes I've read that, but that sentence doesnt make much sense.
Besides does that not refer to programme flash rather than data flash? |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Wed Dec 15, 2004 8:15 am |
|
|
You are right, I mixed up the data and program EEPROM.
The quickest way to find out if 16 bit addressing works is just to try it. Write data to a high memory address and check in MPLAB the EEPROM view to find out where the data was written. |
|
|
mnoble_uk
Joined: 15 Dec 2004 Posts: 4
|
|
Posted: Wed Dec 15, 2004 8:27 am |
|
|
Ive tried it and it doesnt work, hence the question |
|
|
|