Hi Mora
Make sure you are using MPLAB 8.60 & no later. I found later versions will not do a successful build on a 2420 chip.
You also need to choose the right asm file for your chip. The 'a' version is for the 2420. The 'b' version will not work on a 2420 chip.
The procedure is fairly simple doing it all via MPLAB.
Start MPLAB, browse to & open the correct asm file for your chip.
Probably a good idea not to change anything initially until you are sure it is programming & working right then start changing constants.
Select 'Project' then 'Quickbuild'
It will build the file & tell you if it is successfull.
Plug your Pickit2 programmer onto the chipset.
I got a clone from eBay for $20. Works fine.
The programmer powers the chip during programming so turn the 12v display supply off.
Next, choose 'Programmer' then 'Pickit2'
It will show that it has found the programmer, found the chip & powered up the chip.
Select 'Programmer' then 'Program'
It will program the chip & tell you when it's finished.
Select 'Programmer' then 'Set Vdd Off'
Unplug the programming cable & turn on the 12v supply.
You should be good to go.
I found my desktop works fine for programming but my old laptop does not do successful builds using the same version MPLAB.
|