Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
mramos1 said:The inchworm works fine as ISP and ICD2.. But if you flipped on the internal oscilator, I know on some chips, you are hosed without a regular programmer to reset the register..
The only time you can safely set the external reset pin to general IO is if you have an external oscillator which you can stop by grounding the OSC1/CLKIN pin. With the ICD2, I have had luck reprogramming a PIC set for internal osc AND mclr as IO but it was hit and miss. It worked after a few tries.So is that a fundamental rule that I should stick to, to always have an external reset (MCLR) circuit and not set the configuration bit for internal? Or should this not be an issue if I now only use the inchworm?
So I have a pic I can write a REAL small program too.. Will blink an LED with it one day ..William At MyBlueRoom said:Yep it can make the PIC non reprogrammable. Here's the warning right from MPLAB.
ICDWarn0033: You have selected Internal MCLR and Internal Oscillator in your configuration settings. If your code makes use of port pins that correspond to Clock and Data pins in programming mode, you may not be able to reprogram your device. See on-line help for this warning for more information. (OK/Cancel)
When Internal MCLR is used with MPLAB ICD 2 for programming, both Vpp and Vdd are powered together, and then Vpp is pulled high to Vihh to enter programming mode. This means that your code will be running before Vpp goes to Vihh. If that code makes use of port pins that correspond to Clock and Data pins in programming mode, there is a chance their values may not be 0, as necessary to enter programming mode. Therefore, the device could not be reprogrammed.
It was a 12F675 and IOs were at a premium!I'll have to try it. Which PIC seemed to do this? The 16F628A?
mramos1 said:I thought the P16PRO40 would allow me to clear that config, but it did not.
William At MyBlueRoom said:When Internal MCLR is used with MPLAB ICD 2 for programming, both Vpp and Vdd are powered together, and then Vpp is pulled high to Vihh to enter programming mode. This means that your code will be running before Vpp goes to Vihh. If that code makes use of port pins that correspond to Clock and Data pins in programming mode, there is a chance their values may not be 0, as necessary to enter programming mode. Therefore, the device could not be reprogrammed.
Nigel Goodwin said:It will, as it switches Vdd it can program a PIC with internal oscillator and internal MCLR - my tutorials are all written using those settings.
What software were you using?.
mramos1 said:Winpic and Winpicprog. I will try it again. It is all still hooked up.