[quote=“Snake”]Hello
I assume I won’t need the 680 resistors in front of the LEDs because I have 5V LEDs?[/quote]
What current is required to operate the 5V LED’s? PORTA & PORTB pins can only sink/source 200mA…
[quote=“Snake”]
I think I won’t need the switches either?[/quote]
Maybe not right now, but when you get a little more adventurous, they may come in handy…
[quote=“Snake”]
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?[/quote]
I won’t give you the line, but I will point you in the right direction…have a look at the datasheet ( 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
[quote=“Snake”]
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?[/quote]
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)
[quote=“Snake”]
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?[/quote]
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.