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

EEPROM data copying between 2 PIC's

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



Joined: 15 Sep 2003
Posts: 75

View user's profile Send private message

EEPROM data copying between 2 PIC's
PostPosted: Thu Sep 28, 2006 9:02 am     Reply with quote

I am trying to copy some internal EEPROM data (128 bytes) between a target PIC (18F2620) to the internal EEPROM of an external PIC by using the ICSP lines (ie. B6, B7, Vpp, 0V and 5V). Does anyone know how I can do this? Does anyone know the protocol or have some source code?

I do not want to use RS232.

Thanks.
TL



Joined: 15 Sep 2003
Posts: 75

View user's profile Send private message

PostPosted: Thu Sep 28, 2006 9:08 am     Reply with quote

There is a mistake in the earlier post I have sent. Please ignore it and read the following:

I am trying to copy some internal EEPROM data (128 bytes) between a target PIC (18F2620) and the internal EEPROM of an external PIC by using the ICSP lines (ie. B6, B7, Vpp, 0V and 5V). The copying needs to be bi-directional.

Does anyone know how I can do this? Does anyone know the protocol or have some source code?

I do not want to use RS232.

Thanks.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Sep 28, 2006 4:36 pm     Reply with quote

Quote:

Does anyone know how I can do this? Does anyone know the protocol
or have some source code?

It would use more pins than that, and the pins used would depend upon
the programming mode. For LVP mode, you would need to control the
PGM pin. For HVP mode, you would to control the MCLR pin. In addition
to that, you would need a +12.5v generator circuit for HVP mode.
Read about this in the following section of the 18F2620 data sheet:
Quote:
23.9 Single-Supply ICSP Programming


Assuming that you decide to use LVP mode, you can get information
on the protocol from the Programming Specification. To get that
document, go to Microchip's Data Sheet Finder page:
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2046
(bookmark that page).
Download the 18F2620 data sheet and the Programming Specification.
Look in the following section:
Quote:
3.3 Data EEPROM Programming
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