Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: LPC824/main.cpp
- Revision:
- 26:7810c849cb78
- Parent:
- 24:223a68f33f09
- Child:
- 27:53a29982d658
--- a/LPC824/main.cpp Tue Dec 16 17:18:15 2014 +0900 +++ b/LPC824/main.cpp Tue Dec 16 18:13:49 2014 +0900 @@ -90,16 +90,16 @@ I2C* dev=&dev1; pc.baud(115200); + bool s = false; + dev1.frequency(900000);//900k; works around 940kHz with 200ohm pullups/ not work at 1M? LPC_IOCON->PIO0_11 &= ~(0x03<<8); LPC_IOCON->PIO0_11 |= (0x02<<8); LPC_IOCON->PIO0_10 &= ~(0x03<<8); LPC_IOCON->PIO0_10 |= (0x02<<8); - LPC_I2C0->CLKDIV &= 0xFFFFFF00; - LPC_I2C0->CLKDIV |= 0x05; - LPC_I2C0->MSTTIME &= 0xFFFFFF00; - LPC_I2C0->MSTTIME |= 0x10; - bool s = false; - dev1.frequency(800000);//800k not work at 1M? too large pullup? +// LPC_I2C0->CLKDIV &= 0xFFFFFF00; +// LPC_I2C0->CLKDIV |= 0x05; +// LPC_I2C0->MSTTIME &= 0xFFFFFF00; +// LPC_I2C0->MSTTIME |= 0x00; #ifdef QUAD_I2C dev2.frequency(400000);//400k dev3.frequency(400000);//400k