I'm having a bit of a problem with some code I've written for the 16f84a, the program is designed to read input from 2 switches and turn an LED on or off.
The problem that I'm having is that, although it runs fine in MPLAB simulator and I've tried modifying the code to force it to go through the turning on and off of an LED but whenever I program the PIC one of the LEDs stays off for about a second on turn on then flashes.
It's running off of a 4Mhz XT oscillator, WDT is off, Code protect is off, and power on timer is off. (This is done through the program I use to program the PIC.)
I'm kind of new to Micro controllers so there's probably an obvious problem somewhere. Any feedback would be great.
The problem that I'm having is that, although it runs fine in MPLAB simulator and I've tried modifying the code to force it to go through the turning on and off of an LED but whenever I program the PIC one of the LEDs stays off for about a second on turn on then flashes.
It's running off of a 4Mhz XT oscillator, WDT is off, Code protect is off, and power on timer is off. (This is done through the program I use to program the PIC.)
I'm kind of new to Micro controllers so there's probably an obvious problem somewhere. Any feedback would be great.