There comes a time when it is quicker to upgrade your application software without removing the PIC from the target hardware, or it may be you have chosen a surface mount PIC.
You can flash program your target device whilst it is in circuit using your Matrix Multimedia development board as a programming agent.
In your [b]application[/b] circuit you will need to bring RB6, RB7, MCLR, Ground & +5v to a strip connector.
On the strip connector, link the 5 pins of the strip connector to the ports named above to your application PIC, and also link the +5V via a 10K resistor and diode (cathode to MCLR) to the MCLR pin.
So in your pcb layout you have your application circuit with a strip connector and diode resistor as described above added.
On your Matrix development board, make sure there are no PICs mounted and plug in a header into one of the PIC sockets, (I used the 18 way socket) and make an extension lead with +5V, Ground, RB6, RB7, and MCLR wired to a suitable connector to connect with your strip connector on your application circuit.
To use, without applying power to your application board, connect the Matrix board via the extension lead you have made into the strip connector. The application PIC will draw its power from the Matrix board. Now follow the normal β€Compile to Chipβ€ procedure to program the application PIC.
Please note this will not work if RB6 or RB7 are connected and pulled down/up by your other application components in your application circuit, and if there is a PIC device plugged into the Matrix board.
In circuit flash programming
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Thanks for the info GJB, a great way to do ICSP from the Dev and Multiprogrammer boards.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 209
- Joined: Thu Oct 19, 2006 11:46 am
- Location: Bakewell, UK
- Has thanked: 20 times
- Been thanked: 16 times
This topic has been gone through in detail in the E-Blocks forum, dated 7 January 2007 ('Flying leads').
There are issues that arise from having MCLR pull ups on both the PCB and the programmer board and the technique can give rise to some obscure problems, so proceed with caution.
Mark
There are issues that arise from having MCLR pull ups on both the PCB and the programmer board and the technique can give rise to some obscure problems, so proceed with caution.
Mark
Go with the Flow.