Content originally posted in LPCWare by HammingBird on Wed Mar 16 10:39:43 MST 2016
Hallo bremans,
you used "PIO0_3" and "PIO0_4" for SDA & SCL . And you wrote:
//Disable Pullups for PIO0_2 and PIO0_3
LPC_IOCON->PIO0_2 = 0x80;
LPC_IOCON->PIO0_3 = 0x80;
So, you are using pullups for "PIO0_2" and "PIO0_3".
why ? Because, you are using "PIO0_3" and "PIO0_4" for SWM.
So,the pull up registors should be for both "PIO0_3" and "PIO0_4" isn't it ? And the address is not 0x80 But 0x90.
Am I right ?
Thanks :)