I assume I won’t need the 680 resistors in front of the LEDs because I have 5V LEDs?
What current is required to operate the 5V LED's? PORTA & PORTB pins can only sink/source 200mA...
I think I won’t need the switches either?
Maybe not right now, but when you get a little more adventurous, they may come in handy...
If I turn on the internal oscillator I won’t need the stuff on pin 15? Could you please give me the line of code to do this?
I won't give you the line, but I will point you in the right direction...have a look at the datasheet ( http://ww1.microchip.com/downloads/en/D ... 40300C.pdf
) Section 14 - pages 91 to 95, where you will see how to set up the config word.
Hint: in Demo1.asm, look at this line :
__CONFIG _BODEN_ON & _CP_OFF & _DATA_CP_OFF & _PWRTE_ON & _WDT_OFF & _LVP_OFF & _MCLRE_ON & _XT_OSC
I just don’t understand why I need power on the Vpp pin. I thought this is some kind of programming voltage and not needed during runtime?
From the datasheet:
"When configured as MCLR, this pin is an active low RESET to the device. Voltage on MCLR/Vpp must not exceed Vdd during normal device operation."
In the config word, pin 4 is set as MCLR (See __CONFIG........... above)
I have to admit that there was no fitting power supply around and my resistors are gone so I used the USB port power. I think this is regulated?
It should be regulated by the motherboard/PC PSU, but I would strongly suggest that you dedicate a PSU solely for powering your project boards. If you manage to release the magic smoke that makes electronic circuits work, you will only need to get another PSU and not a new PC.