cancel
Showing results for 
Search instead for 
Did you mean: 

diode

Sax
Associate III

HelIo,

I connected the anode from a diode to the operating voltage and the cathode to a pinx. I need ground to make the diode glow.  How can this be implemented?

13 REPLIES 13
Sax
Associate III

This is the overview in SFR:

Sax_0-1704562436498.png

MODER and IDR have a value.

IDR is input data..

MODER looks ok, 440 = pin 3+5 -> output. ODR = 0, outputs lo.

LEDs on ? check voltage at pins 14+16 , with and without your plug connected.

If you feel a post has answered your question, please click "Accept as Solution".
Sax
Associate III

LEDs are not on. No plug no voltage. The problem is because the pins do not allow any current to pass through to ground of the pin.

Sax
Associate III

Hello, thank you for your effort. I found the error. Pins PF3 and PF5 are not suitable for reasons I can't explain. I've bridged in the hardware to 2 other pins and it works.