View previous topic :: View next topic |
Author |
Message |
TL
Joined: 15 Sep 2003 Posts: 75
|
EEPROM data copying between 2 PIC's |
Posted: Thu Sep 28, 2006 9:02 am |
|
|
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
|
|
Posted: Thu Sep 28, 2006 9:08 am |
|
|
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
|
|
Posted: Thu Sep 28, 2006 4:36 pm |
|
|
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 |
|
|
|
|