At 00:03 15/12/00 -0500, Adolfo Cobo wrote: >Date: Thu, 14 Dec 2000 09:25:12 +0100 >From: Adolfo Cobo >Subject: [PIC]: programming a pic using a pic > I've designed a pic (16F84 only) programmer without a PC, > just another pic copying the contents from one pic to another. > Now, I need the programming code, but I think that this topic > has been discussed before in this list and somebody has done > the same thing before. does anyone know of some code > (C or assembler) to do that, or a description of the > programming algorithm apart of the Microchip' application notes? > Thanks in advance to everybody. > Adolfo. > > Adolfo Cobo Garcia - UNIVERSIDAD DE CANTABRIA > E.T.S.I.I. y Telecomunicacion, Grupo de Ingenieria Fotonica > Avda. Los Castros s/n E-39005 Santander SPAIN > Tfno. +34-942-201539 Fax +34-942-201873 > Email: acobo@teisa.unican.es Sorry to be late responding to this one. I think I might be one of those referred to by Adolfo as having raised this before, but I didn't get a response either. I've now implemented a system which uses one PIC16F84 to program another, and hope to write it up soon. All based on standard Microchip application notes and the (PC C) code used in David Tait's parallel port programmer, written in assembler. There are sundry problems, primarily the small storage capacity of an '84. One can embed data as RETLW blocks, but to program a word takes two of those, so the size of any programmable-by-another-PIC program is not large. More info in the new year - meantime compliments of the season to all. Tim Forcer tmf@ecs.soton.ac.uk Department of Electronics & Computer Science The University of Southampton, UK The University is not responsible for my opinions -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu