Searching \ for 'programming a pic with a pic' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devprogs.htm?key=programming
Search entire site for: 'programming a pic with a pic'.

Truncated match.
PICList Thread
'programming a pic with a pic'
2004\02\12@175733 by Jim Monteith

flavicon
face
Hi all,

I'm working on a project where I need to store hex code in a 16F877
different from the code running in the 16f877.  The code running in the chip
needs to be able to read the stored hex code and write it to another pic.

I just wanted to ask if this is do-able before I started beating my head
against the screen.

I had thought about storing the hex code like a bootloader in upper program
memory.  Is it possible to read those locations and clock the bits out a
port?

Thanks for any thoughts,

Jim

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2004\02\12@184339 by Wouter van Ooijen

face picon face
> I'm working on a project where I need to store hex code in a 16F877
> different from the code running in the 16f877.  The code
> running in the chip
> needs to be able to read the stored hex code and write it to
> another pic.
>
> I just wanted to ask if this is do-able before I started
> beating my head against the screen.

Why not? A PIC can program another PIC, and a 16F877 can read its own
memory. But:
- the source PIC contains both its own code and the image for the second
PIC, so the image can not be the full 8k
- you will have to do the programming-tricks: wiggle the /MCLR and the
PGC/PGD lines, and generate the HVP (or restrict yourself to LVP).

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

2004\02\12@191247 by Tony Nixon

flavicon
picon face
Wouter van Ooijen wrote:

>Why not? A PIC can program another PIC, and a 16F877 can read its own
>memory. But:
>- the source PIC contains both its own code and the image for the second
>PIC, so the image can not be the full 8k
>- you will have to do the programming-tricks: wiggle the /MCLR and the
>PGC/PGD lines, and generate the HVP (or restrict yourself to LVP).
>
>
>
Or bootloader to bootloader.

Tony

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

More... (looser matching)
- Last day of these posts
- In 2004 , 2005 only
- Today
- New search...