CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

PIC16f1937 write internal eeprom from external

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
p.wolf



Joined: 30 Mar 2015
Posts: 1
Location: Minden - Germany

View user's profile Send private message

PIC16f1937 write internal eeprom from external
PostPosted: Fri May 29, 2015 7:10 am     Reply with quote

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

View user's profile Send private message AIM Address

PostPosted: Fri May 29, 2015 7:22 am     Reply with quote

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

View user's profile Send private message

PostPosted: Sun May 31, 2015 12:40 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group