UART to I2C master(s) converter, targetting to emulate SC18IM700(NXP) chip

Dependencies:   mbed

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

LPC1768

LPC11U35

Quote:

LPC11U35 implement requires importing USBDevice library to use USBSerial class

visit https://github.com/K4zuki/tinyI2C for more information

Committer:
K4zuki
Date:
Wed Aug 31 02:39:01 2016 +0900
Revision:
76:fcbc456010e0
Parent:
42:da85c17ea495
Merge branch 'master' of https://@developer.mbed.org/users/k4zuki/code/uart_i2c_conv

Who changed what in which revision?

UserRevisionLine numberNew contents of line
K4zuki 76:fcbc456010e0 1 /*
K4zuki 76:fcbc456010e0 2 settings.h
K4zuki 76:fcbc456010e0 3 */
K4zuki 76:fcbc456010e0 4
K4zuki 76:fcbc456010e0 5 // #define isI2C1 // unused(always enabled)
K4zuki 76:fcbc456010e0 6 // #define isGPIO0 // unused(always enabled)
K4zuki 76:fcbc456010e0 7
K4zuki 76:fcbc456010e0 8 enum chipID_e {
K4zuki 76:fcbc456010e0 9 ID_LPC824 = '0',
K4zuki 76:fcbc456010e0 10 ID_LPC1768 = '1',
K4zuki 76:fcbc456010e0 11 ID_LPC11UXX = '2',
K4zuki 76:fcbc456010e0 12 };
K4zuki 76:fcbc456010e0 13
K4zuki 76:fcbc456010e0 14 #if defined(TARGET_SSCI824) || defined(TARGET_LPC824)
K4zuki 76:fcbc456010e0 15 #warning "tinyI2C_824.h"
K4zuki 76:fcbc456010e0 16 #include "tinyI2C_824.h"
K4zuki 76:fcbc456010e0 17
K4zuki 76:fcbc456010e0 18 #elif defined(TARGET_LPC11U35_501) || defined(TARGET_LPC11U35_401)
K4zuki 76:fcbc456010e0 19
K4zuki 76:fcbc456010e0 20 #warning "import USBDevice library"
K4zuki 76:fcbc456010e0 21 #include "tinyI2C_11U3x.h"
K4zuki 76:fcbc456010e0 22
K4zuki 76:fcbc456010e0 23 #elif defined(TARGET_LPC1768)
K4zuki 76:fcbc456010e0 24
K4zuki 76:fcbc456010e0 25 #warning "tinyI2C_1768.h"
K4zuki 76:fcbc456010e0 26 #include "tinyI2C_1768.h"
K4zuki 76:fcbc456010e0 27
K4zuki 76:fcbc456010e0 28 #endif
K4zuki 76:fcbc456010e0 29