Hi, I've recently built the **broken link removed**, the alternate version, using a PNP transistor. It's working fine, but I've got problems while programming a 12F675 and a 16F628a. I'm using WxPic as the software programmer.
Yesterday, I was able to program a 12F675 with the following code, using HiTech C:
I have two of these PICs, so today I've tried to program the other one, and it "worked". The programming was fine, but when I put it on the breadboard I've got no results. Vdd was 5.5V, but I measured on GPIO0 a constant ~4V. Then I tried the previous one, same result, programming was fine but not the output I wanted. May I have burned these PICs somehow? I tried also yesterday to program them on another computer, but there the software didn't recognized the programmer nor the PIC (I've tried it there with PicPgm, WinPic and IcProg). I tried to do it anyway, but it didn't work. Could it be the cause for the failing PICs? I've checked that the OSCCAL value is OK, but still it won't work.
Now, when I try with a 16F628a, it works fine and I have an awesome LED flashing in front of me. That at least proves that the programmer is working.
One thing that I find strange is that I cannot program any of them in Vpp-first mode. I read somewhere that for the 12F675 it had to be this way, but for the 628a too? The first time I programmed the 628a I used Vpp first and it worked, but when I tried to reprogram, it failed while verifying. I have the slight impression that I've read somewhere that when disabling MCLR, programming settings would have to change, but I'm not sure which one it could be. Anyway, it works if I set it to Vdd first.
I did disable MCLR, but I didn't find reasonable info relating those two, so I just switched to Vdd first and it was reprogrammed ok.
Yesterday, I was able to program a 12F675 with the following code, using HiTech C:
Code:
#include <htc.h>
__CONFIG(MCLREN & UNPROTECT & BORDIS & WDTDIS & PWRTEN & INTIO);
void main()
{
TRISIO = 0;
while (1)
{
GPIO0 = 1;
_delay(100000);
GPIO0 = 0;
_delay(100000);
}
}
I have two of these PICs, so today I've tried to program the other one, and it "worked". The programming was fine, but when I put it on the breadboard I've got no results. Vdd was 5.5V, but I measured on GPIO0 a constant ~4V. Then I tried the previous one, same result, programming was fine but not the output I wanted. May I have burned these PICs somehow? I tried also yesterday to program them on another computer, but there the software didn't recognized the programmer nor the PIC (I've tried it there with PicPgm, WinPic and IcProg). I tried to do it anyway, but it didn't work. Could it be the cause for the failing PICs? I've checked that the OSCCAL value is OK, but still it won't work.
Now, when I try with a 16F628a, it works fine and I have an awesome LED flashing in front of me. That at least proves that the programmer is working.
One thing that I find strange is that I cannot program any of them in Vpp-first mode. I read somewhere that for the 12F675 it had to be this way, but for the 628a too? The first time I programmed the 628a I used Vpp first and it worked, but when I tried to reprogram, it failed while verifying. I have the slight impression that I've read somewhere that when disabling MCLR, programming settings would have to change, but I'm not sure which one it could be. Anyway, it works if I set it to Vdd first.
I did disable MCLR, but I didn't find reasonable info relating those two, so I just switched to Vdd first and it was reprogrammed ok.