Andy1845c said:
I did not, however get the LED to blink. Is there a reason I can't just connect it between RB0 and GND thought a 470
hm: resistor? Why does the Blueroom hello world have it also tied into VPP with the diode and 22k
hm: resistor? I haven't figured that out yet.
I always feel better when the LED blinks
If this is too elementary please do not be insulted.
Think of it this way. One side of the LED is tied to +5 (VDD) via the 470R resistor. The other side is hooked to the PIC IO pin.
To turn on the LED the PIC drives the pin low creating a ground path for the LED. The PIC is sinking the LED (serving as ground).
PIC-IO-PIN ----- LED ------ 470R ------ +5
The schematic shows VPP tied to the same VDD point via the LED and 22K resistor, they do not effect the LEDs operation.
Can you single step the program ? If not you may still have problems with the config settings or OSC.
If you can single step check to see if you wired it right.
Maybe you got the pins on the LED in backwards. Try switching it.
The check to see if you entered the code correctly. You used cut and past, yes?
3v0
If you hooked the LED up as you suggested it would work as long as you got the polarity correct. In this case it would come on when the IO pin was high. This is called sourcing.
Think of it this way, you source the current to a part or sink it to ground.