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 support@ccsinfo.com

HMI for read/write inbuilt EEPROM another PIC MCU
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
temtronic



Joined: 01 Jul 2010
Posts: 9097
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Nov 23, 2022 6:16 am     Reply with quote

sigh, so far THREE ways to do it
1st, HMI PIC using simple 'RS-232' to get/put EEPROM data. Easy and fast to code.

2nd, HMI PIC using a 'bootloader' approach, one way,needs modification to read current EEPROM.

3rd, HMI PIC 'mimics' part of what a 'programmer' does, can't be done ? hmm ?

I may be confused about what is really being posted but #3 is possible. The Picstart+ programmers used a PIC17C44 ( ?) as the 'brains', and using MPLAB you could read/program just the EEPROM. It is the most complicated method to get to work though ! You need to create the ICSP access firmware,create r/w EEPROM code and of course the entire HMI code but it is 'technically' possible.

I suspect we're all missing 'something' in what the OP really wants to do, especially since no 'target' PIC has been posted. Any of these options, maybe even a 4th ??, can work IF you have designed the 'target' PIC.

gee, nasty little gremlin just showed up (coffee was ready too !!!).... I'm now wondering if it's possible when 'code protection' has been enabled !! Seems the newer PIC you have to erase the ENTIRE PIC before burning, so it may NOT be possible to just edit the EEPROM bytes ??
dmitrboristuk



Joined: 26 Sep 2020
Posts: 51

View user's profile Send private message

PostPosted: Thu Nov 24, 2022 12:28 am     Reply with quote

Even in very old LPT interface programmers (PGMs), EEPROM can be read and edited. I have one from 2000. Naturally, there are no new devices in it. But apparently the work protocol has changed little, so if you select the notorious 16F877A, then you can write and read the program on a modern 16F15376 (if you have permission), you can also edit the contents of EEPROM in a separate window without rewriting the program.
Ttelmah



Joined: 11 Mar 2010
Posts: 19215

View user's profile Send private message

PostPosted: Thu Nov 24, 2022 1:38 am     Reply with quote

Yes, for the internal EEPROM.
On all PIC's, the internal EEPROM is mapped for programming to an area
of otherwise unused addresses in the address map (you have to look at
the programming specifications for the particular chip).
However the chip you mention, the PIC16F15376 does not have any EEPROM.
From it's programming sheet:

Quote:

The PIC16(L)F153XX family does not include EEPROM.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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