About your POWER LED not coming on:
How about taking a copy of that last code, deleting all the lines except the absolute minimum to get the power LED on.
Just keep the config, variable, ports, etc. Get rid of everything else, it's cluttering your view.
I bet you have a config set up wrong, or your wiring is not exactly as you think it is.
Robert
Dumb question #1: Did you try to light the POWER LED and resistor directly to confirm it does indeed work?
#2: Maybe you blew the pin on the PIC, try another one.
#3: PWMOUT VAR GPIO.0 <-- Is this your POWER LED? You never turn it on, you only define it (or maybe I'm missing something).
#4: TRISIO = %00000111 <-- port 0 is set as input, it should be TRISIO = %00000110.
Bookmarks