Hie,
OK i will buy a 4mhz osc. My programmer is PicKit 2... :-/
What software do you use ? "Pickit 2 programmer" or MPLAB IDE ? ..with the later I dont know if the manual settings overrides the settings in the source, I use the Pickit2 software.
I just tried your code, compiled it with
C:\PBP>pbpw -p16f877a blinkit.bas
and loaded the hexfile into the pic with the pickit2 software.
The pic only had a 20MHz xtal between pin 13 and 14, two 22pf caps from both pins to ground and a 10k pullup on ~MCLR, a 470ohm resistor from pin 17 to a LED wich is connectet to ground in the other end. exactly your setup as far as I can see.
And yes, it works here.
btw the text on my 16F877A also reads "PIC16F877A-I/P" and its 20MHz units, i know coz I ordered it, and I also run them in 20MHz![]()
I had problems with that same PIC not so long ago. Mackrackit posted a solution in post 21 of this thread. It might help here
yea, but his example works for me without disabling AD-converters and comparators.
Coucou,
Bon j'ai testé avec un autre PIC et apparement tout est OK ! Surement le PIC qui devaient etre foutu...
J'ai testé avec et sans
et cela fonctionneCode:ADCON1=7 CMCON=7
Merci ŕ tous !
-----------------
Oups ! To resume, it's OK with an another PIC. I've tested with A/D off and comparator OFF.
I use PIC Flash soft
Thx for your support![]()
Last edited by nquere; - 10th November 2008 at 20:58.
Yup ca fait du sens! Anyways the pin you're using aren't multiplexed with ADCs, or comparator...
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks