High and low are according to the PBP manual supposed to set the pin automaticly to an output.
But I guess it is good practise to to it your self
/me
High and low are according to the PBP manual supposed to set the pin automaticly to an output.
But I guess it is good practise to to it your self
/me
Ok, pgc on oscilloscope peaks at 5V or so in reg intervals, pgd also active, mclr is at 14 volts during programming, programmer verifies, ceramic resonator is resonating. Stuff is going in that black box just nothing out of it. I have also tried changing the chips, port numbers, used a 16F84, 16F88, 12F675. I have even changed the breadboard. What else can I do?
- Can you post a schematic or picture of your setup?
- Your diode is not reversed? (take it out and measure port with DMM while "running")
EDIT - As Skimask suggested, is your resonator resonating after you program - I think you tell us it does during programming but how about when you try and run your chip - is it resonating?
Last edited by paul borgmeier; - 30th December 2006 at 19:54.
Paul Borgmeier
Salt Lake City, UT
USA
__________________
Try a different programmer software, and or a different programmer.I have even changed the breadboard. What else can I do?
I use ICPROG available on internet free, with a JDM clone programmer I bought off ebay from a seller in Bulgaria, cost 18 bucks and works always.
http://www.ic-prog.com/index1.htm
edit:
you said you have used stamps for years, which programmer did you use on them, is the one you are using now? Are you using a bootloader to load your PIC? And I am just covering the bases here and not trying to offend, you are loading the HEX file and not one of the others, correct? Last thing, verify MCLR pin is at or near 5v+ when operating, do not attach any load to it though. I had once hooked an LED to MCLR so as to observe and verify reset switch operation and PIC would not work.
Last edited by Archangel; - 31st December 2006 at 01:40. Reason: add
So, I finally found out what was wrong. It was not in the circuit, but the software. From what I had understood Microcode Studio would compile the PicBasic pro program to a hex file and pass that to the programmer software. When I looked at the code in the programmer it was just a bunch of 0FFFs. So I then found the compiled hex file and opened that in the programmer and then programed the pic and voila! Blink. Apparently Microcode studio doesn't pass the hex file along as the stamp editor does. Thanks for all your help and happy New Year.
By the way I used an Athena rs232 to ttl line driver I had laying around to create a debug to the pc using hyperterminal thru my usb port (using a serial to usb converter.) The microcode studio doesn't seem to have a com 4 port on the serial communicator. So all is well.
Glad you got it working Gary! Funny It seems so obvious to someone experienced with microcode studio that you have to select the file to load, but to a newbie it seems that the file you just compiled should be loaded when you click program. I will remember this post for someone else's sake down the road.
Last edited by Archangel; - 1st January 2007 at 10:03. Reason: Add
Hello,
If you just compiled a program in Microcode Studio by pressing the button for Compile and Program or pressed F10 it should have brought up the programmer window. This is what happens when I use the ME Labs USB programmer or the EPIC programmer. The only time it doesn't is when I use the PIC Flash from Mikroelektronica. Then I have to open the programmer program and then select the .hex file to load. That may be because I don't have the path for PicFlash setup properly. But as long as I have used MCS it has always opened the programmer window with the .hex file ready to load.
BobK
Bookmarks