Thank you Aussiesusan and JW for the quick response.
I tried posting this already, but it did not show up, so if you see it twice, that's why.
What I meant to say was that I did try using the chips internal oscillator at all of the different ranges, as opposed to my normal external 4mhz crystal with loading caps. The frequency for this project really does not matter to me, since I am just trying to get the MCU to work on 3.3volts. Also, I forgot mention that I am using PBP (PICBASIC PRO) for the IDE and compiler, not sure if this matters. And yes JW, I did test LED on 3.3v, good catch but not the issue (if only it was that simple). I tried some configuration code (that I was not familiar with) to try to turn off the BrownOutReset and even set the BOR voltage to 2.1v instead of 4v. The code does not produce errors and seems to compile correctly, but the LED still does not blink. Below is my TEST code to just blink an LED and prove that the 16F887 will work on 3.3v.
- Code: Select all
:Program = Test
clear
pause 1000
define LOADER_USED 1
define OSC 4
#CONFIG
__CONFIG _CONFIG1, _BOREN_OFF
__CONFIG _CONFIG2, _BOR21V
#endconfig
ANSEL = %00000000
ANSELH = %00000000
TRISD = %00000000 ; I also set TRISA - E for outputs
START:
PORTD.1 = 0
pause 500
PORTD.1 = 1
pause 500
goto START
end