View previous topic :: View next topic |
Author |
Message |
p.wolf
Joined: 30 Mar 2015 Posts: 1 Location: Minden - Germany
|
PIC16f1937 write internal eeprom from external |
Posted: Fri May 29, 2015 7:10 am |
|
|
Hello Forum,
My 16f1937 should measure temperatures with different NTCs or PTCs. In EEPROM the data to calculate the right temperature should be stored. So when I change the NTC I want to write new data in the EEPROM without changing the program:
can I change data in eeprom after writing my program to flash without using the ICD? If yes, how?
Thanks for reply
p.wolf |
|
|
asmboy
Joined: 20 Nov 2007 Posts: 2128 Location: albany ny
|
|
Posted: Fri May 29, 2015 7:22 am |
|
|
read_eeprom( )
and its twin
write_eeprom()
using the USART serial capability of course to send the new cal data in. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19552
|
|
Posted: Sun May 31, 2015 12:40 pm |
|
|
Separately, most programming programs, do have an option somewhere to specify 'what to program'. So CCSLOAD for example has a column of tick boxes on the right hand side of the screen specifying what to write. One of these is 'data EEPROM'. Untick this, and it doesn't program the EEPROM.
Conversely tick this and untick the one for program memory, and the EEPROM will be the only thing written.
The ICD, in MPLAB, has similar options. It's a matter of finding where they are in the program you use. |
|
|
|