what on earth can I be doing wrong?
Hi Everyone;
Thanks for your thoughts in getting me started with my Epic Programmer. I believe Picmate was looking in the wrong directory for the Epic so I switched to Microcode Studio, use it to write a hex file and then open Epic to load the hexfile into my chip.
I say BELIEVE, because the Pic still won't work.
EPIC appears to program and verify the 16F876 chip....but when I transfer it to my breadboard --- NOTHING.
I'm using a simple blink the LED program, listed here:
symbol LED = 0 'Rename pin 0 of portb (PIC 16F876 pin 21) to LED
TRISB = %00000000 'Setup port b as RB7-RB1 outputs, RB0 as output
main: 'Label for beginning of main loop
High LED 'Set pin 0 of portb high (5 volts) which turns the LED on
pause 1000 'Pause 1000 milliseconds (1 second) with LED on
Low LED 'Set pin 0 of portb low (0 volts) which turns the LED off
pause 1000 'Pause for 1 second with LED off
goto main ' Jump to the main label and do it again
END
I have quadrupled checked my connections on the breadboard with two different chips and I still get nothing. Tried two different crystals. Two different 5v sources. The logic probe indicates I've got 5v at all the correct places, and ground at all the right places, but the LED still won't blink ( yes I've tried reversing the leads. No dice)
And strangely, my logic probe records a high on RC6. Which is strange since I don't think I've bothered with Port C in any way.
Is there some configuration I haven't set? Is it possible the EPIC programmer only THINKS it's programmed the chip? Or have I found a brand new way to be confused?
ANY THOUGHTS would be appreciated since I would really like to get on with building the strange lights to frighten the villagers.
cheers
MacQ
great suggestions, but...
thanks skimask for offering the simpler code.
I think you're probably right about the floating pin. Although, I connected a 1k resistor to it and gorund and the pin is still high. I don't have a scope to check though.
I have checked the config settings and tried every option but RC. But no luck. Tomorrow I'll rewire it for RC and see if that makes any difference.
And Duncan303, I think you're right too. The oscillator is almost certainly the problem. But as I say I've tried every configuration and nothing works. I have a smaller 16f876 pic that I will try in the morning.
So frustrating. But thank you so much for trying to help