Content originally posted in LPCWare by Kaveh.t on Mon Mar 16 07:52:16 MST 2015
Pin 19 is the SWDCLK_PIO_1 on the LPC 1112.
Funktion 4 of the IO is open drain Mode but i didnt need it.
I connected the Pin 22 to the LED an the other end of the LED to + 3,3 V.
when i want to switch it on i need to set the pin value from pin 22 to 0.
Now i can measure with my Oscilloskope the signals and i have on bouth sides of the LED a 3,3 V Signal.
This means the µC generates 3,3V to pin 22 instead of 0.
I tried to set the state of pin 22 to 0 but it didnt worked out. there are 3,3 V konstantly and i couldnt delete it.
I wrote a new source code to set pin value 22 to 0 and the Flashing the LPC with Flash magic but this also didnt worked, the 3,3 V are permanently on pin 22..
How can i set the value of pin 22 back to 0 ?