Quote Originally Posted by azmax100 View Post
I just found out that I can't even make an Led to blink. Maybe there's a problem with the Pic itself. I will try to use another Pic this evening and try again with the code provide by arati.
Hi azmax100,
Let's pretend we never used a BS2, and we are using just PICs, and lose Include BS2Defs . . . and all their hokey renaming of ports cause it really just confuses hell out of me anyway.
Go back to the basics, check your config settings, did you set tris and port registers properly, disable all the analog . . . does your chip have ansel, adcon, adcon1, adcon0, cmcon, cmcon0, cmcon1, . . . . Did you DEFINE OSC ? Does it match the config ? Is mclr or mclre enabled? If so do you have a pullup resistor ? Make sure the LED is not reverse biased (this is an issue, I have LEDs where the Anode is the long lead and I have LEDs where the cathode is the long lead). Is the power supply voltage correct and of sufficient power output? Is it filtered properly? Make sure LVP is disabled, until all is working, enable PWRTE and WDT