Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 11 months ago.
Problem with mbed NXP LPC1768 digital outputs
My mbed NXP LPC1768 seems to be broken, all pinss are reading 2.22V and when i try and set an output to 0V it still reads 2.22V.
Has anyone else had this problem and how did you solve it?
Question relating to:
2 Answers
9 years, 11 months ago.
Can you flash one of the LEDs? If yes, you are probably measuring wrong. If no then you are probably coding wrong ;)
9 years, 11 months ago.
Did you try the HelloWorld example? It looks like your pio is set at an input with PullUp. Just a couple of changes to the HelloWorld code will produce the code below. Connect your multimeter or an LED and resistor to p20.
#include "mbed.h" DigitalOut myled(p20); int main() { while(1) { myled = 1; wait(1); myled = 0; wait(1); } }