UART to I2C master(s) converter, targetting to emulate SC18IM700(NXP) chip
UART to I2C master(s) converter, targetting to emulate SC18IM700(NXP) chip
Features
up to 4x I2C master
- for LPC824 implement, we can use up to 4 channels of I2C masters
- 1x Fm+ and 3x Fm I2C channels
- for LPC1768 implement, we can use up to 2 channels of I2C masters
- 2x Fm I2C channels
- for LPC11U35 implement, only one channel for I2C master,
but program uses USB CDC class for UART communication (means no external USB-Serial converter chip)
- 1x Fm+ I2C channels
1x SPI master
up to 2x 8bit GPIO
Tested Platforms
LPC824
- https://developer.mbed.org/platforms/Switch-Science-mbed-LPC824/
- https://developer.mbed.org/platforms/LPCXpresso824-MAX/
LPC1768
LPC11U35
Quote:
LPC11U35 implement requires importing USBDevice library to use USBSerial class
visit https://github.com/K4zuki/tinyI2C for more information
Diff: settings.h
- Revision:
- 36:ffbd9829c8d1
- Parent:
- 0:b597ed665b76
- Child:
- 78:434514b8d383
--- a/settings.h Thu Jan 08 11:51:57 2015 +0900 +++ b/settings.h Tue Aug 30 16:30:55 2016 +0000 @@ -1,30 +1,28 @@ -/* -settings.h -*/ - -// #define isI2C1 // unused(always enabled) -// #define isGPIO0 // unused(always enabled) - -enum chipID_e { - ID_LPC824 = '0', - ID_LPC1768 = '1', - ID_LPC11UXX = '2', -}; - -#if defined(TARGET_SSCI824) || defined(TARGET_LPC824) -#warning "tinyI2C_824.h" -#include "tinyI2C_824.h" - -#elif defined(TARGET_LPC11U35_501) || defined(TARGET_LPC11U35_401) - -#warning "import USBDevice library" -#include "tinyI2C_11U3x.h" - -#elif defined(TARGET_LPC1768) - -#warning "tinyI2C_1768.h" -#include "tinyI2C_1768.h" - -#endif - - +/* +settings.h +*/ + +// #define isI2C1 // unused(always enabled) +// #define isGPIO0 // unused(always enabled) + +enum chipID_e { + ID_LPC824 = '0', + ID_LPC1768 = '1', + ID_LPC11UXX = '2', +}; + +#if defined(TARGET_SSCI824) || defined(TARGET_LPC824) +#warning "tinyI2C_824.h" +#include "tinyI2C_824.h" + +#elif defined(TARGET_LPC11U35_501) || defined(TARGET_LPC11U35_401) + +#warning "import USBDevice library" +#include "tinyI2C_11U3x.h" + +#elif defined(TARGET_LPC1768) + +#warning "tinyI2C_1768.h" +#include "tinyI2C_1768.h" + +#endif