I2C Master Receiving Mode

Started by andersryl in LPC200012 years ago 4 replies

Hi, I'm writing a driver for the I2C-bus on a LPC2214. The idea is to avoid busy waiting and instead use the I2C interrupt for capturing...

Hi, I'm writing a driver for the I2C-bus on a LPC2214. The idea is to avoid busy waiting and instead use the I2C interrupt for capturing events on the I2C-bus. My uC will at all times act as the bus master and will transmit as well as receive data. I have studied http://www.semicond uctors.philips.com/acroba


I2C - with 2148 master and 2103 slave

Started by Gigi in LPC200010 years ago 1 reply

hello, I have any problem in a net I2C i have 2 micro an lpc2148 as master and an lpc2103 as slave i have configured all but at start-up some...

hello, I have any problem in a net I2C i have 2 micro an lpc2148 as master and an lpc2103 as slave i have configured all but at start-up some times all the bus is bloked there are any particular configuration of i2c micro? thanks


LPC2294 I2C master problem

Started by Boris Kralik in LPC200013 years ago

Hi all. I want to use I2C bus on LP2294, I initialize bus, set the baud rate (I2C_I2SCLL = 50;I2C_I2SCLH = 50;//BR=24000kHz/100=240kBd) and...

Hi all. I want to use I2C bus on LP2294, I initialize bus, set the baud rate (I2C_I2SCLL = 50;I2C_I2SCLH = 50;//BR=24000kHz/100=240kBd) and now I want to set slave address, SCL go low, SDA stays in high, I set STA in SET register (I2C_I2CONSET = STA) and I wait, while I2C_I2STAT!=0x08. Next I set slave address, clear I2C interrupt bit, I am using I2C interr


problem in I2C Interface

Started by vadivoo geetha in LPC200010 years ago 1 reply

hi we are working with lpc2129,we have written one program for I2C interface in keil software but we unable to compile and debugg because of...

hi we are working with lpc2129,we have written one program for I2C interface in keil software but we unable to compile and debugg because of target not created,serial.h file is also not included,please send us i2c program using lpc2129


I2C example and winARM LPC2148

Started by nerdinrage in LPC20009 years ago 8 replies

I was wondering if anyone could point me towards a working i2c example for = winarm. I modified the one from the not ported/tested directory,...

I was wondering if anyone could point me towards a working i2c example for = winarm. I modified the one from the not ported/tested directory, added rpr= intf to it to send error messages to the comport. I also fixed the pinsel = and iodir issues between rprintf and the i2c header. The communication str= ucture of the chip in the example and the chip I am using are the same. I = seem to be...


LPC2148 and I2C connection to MCP23017

Started by nickdesantis54 in LPC20005 years ago 6 replies

Hi guys and gals, I'm working on a a project where I want to interface an LPC2148 with 16 MCP23017 I/O Expanders via the two I2C buses. The 2148...

Hi guys and gals, I'm working on a a project where I want to interface an LPC2148 with 16 MCP23017 I/O Expanders via the two I2C buses. The 2148 obviously runs on 3.3V and the MCP23017s will run on 5v, so I'm wondering if SCL and SDA will definitely need to be connected to 5v with a pull up resistor. Besides that, could anyone point me in a good direction for learning how to work with the I2C conn...


FreeRTOS- LPC2138 I2C Driver

Started by jagdishlpc2138 in LPC200011 years ago 1 reply

i have used wiznet i2c driver as well as lpc2129 i2c driver but not working on FreeRTOS. without FreeRTOS my simple i2c code is working can...

i have used wiznet i2c driver as well as lpc2129 i2c driver but not working on FreeRTOS. without FreeRTOS my simple i2c code is working can any one help me for that


I2C problem

Started by allanbr08 in LPC20006 years ago 3 replies

I'm doing a program to ready a temperature from a LM75A temp. sensor IC using I2C protocol but I'm having some problems. The device don't send the...

I'm doing a program to ready a temperature from a LM75A temp. sensor IC using I2C protocol but I'm having some problems. The device don't send the acknowledge flag and I don't know what I'm doing wrong. There is my functions to control the I2C bus. I hope someone can help me. I'm using Keil Compiler and my microcontroller is the LPC2138. Thanks void start(void) { I2C0CONCLR = 0x28; I2C0CON...


I2C question

Started by Sutton Mehaffey in LPC200012 years ago 7 replies

Can someone unconfuse me on several I2C issues as I try to understand the Philips I2C code in the file section? On, my design using a LPC2148,...

Can someone unconfuse me on several I2C issues as I try to understand the Philips I2C code in the file section? On, my design using a LPC2148, I am using Master Transmitter mode to address a RAM. The AA flag: Is it only used to acknowledge data received from the RAM after reading from I2C0DAT? I assume that the ACKs received from the RAM when simply addressing it is not related to AA (b...


ic2 problem on Embedded Artists LPC2129 CAN QuickStart Board

Started by cm296pip in LPC200011 years ago 6 replies

Hi, I'm finding it impossible to get i2c running on the Embedded Artists LPC2129 CAN QuickStart Board (there is an on-board 24C256 eeprom...

Hi, I'm finding it impossible to get i2c running on the Embedded Artists LPC2129 CAN QuickStart Board (there is an on-board 24C256 eeprom attached to the LPC2129's i2c interface pins). I'm just wondering is there is a hardware problem at this point in time - I've run out of ideas as to why I can't get i2c going on it :( The i2c pins SCL & SDA (P0.2 & P0.3) have no other connection...


I2C for Accel Sensor

Started by Sumit Bhatnagar in LPC20009 years ago

I have a two ISR on the LPC 2148 1 timer ISR at 1 micro sec. 2 I2C ISR for a Digital Accel (MMA7455) in the Master Reciver mode. The timer...

I have a two ISR on the LPC 2148 1 timer ISR at 1 micro sec. 2 I2C ISR for a Digital Accel (MMA7455) in the Master Reciver mode. The timer should work hand in hand with the I2C interrupts. There are 2 questions here: 1) How to make these 2 work together with the timer driving the I2C, but not having the interrupts nested. 2) The datasheet for the MMA7455 says that the device oper...


I2c bus speed - LPC2148

Started by Sutton Mehaffey in LPC200011 years ago 3 replies

I have been having some LCD graphical display issues concerning timing with my LPC2148. Is the I2C bus speed of 400 Khz independent of the CPU...

I have been having some LCD graphical display issues concerning timing with my LPC2148. Is the I2C bus speed of 400 Khz independent of the CPU speed? In other words, is the I2C bus non-adjustable? The display manufacturer has been trying to help me resolve my timing issues, but they are testing out the display with a Atmega8535 at 100Khz I2C bus. I think the problem lies there. Sutton...


I2C on LPC2148

Started by Sutton Mehaffey in LPC200012 years ago 9 replies

I'm back on my I2C problems since I was pulled off the project for a month or so. I'm still having some problems. The problem I thought was I...

I'm back on my I2C problems since I was pulled off the project for a month or so. I'm still having some problems. The problem I thought was I was trying to address a 5V RAM instead of a 3.3V RAM. I have now a couple of ATMEL 256K serial RAM - 2.7V to 5V. I am still having trouble with understanding the status of the I2C bus. It appears I am getting the correct status, but even when the R...


I2c/Spi bus sharing

Started by FIRAT KOCAK in LPC20009 years ago 7 replies

Hi, While sharing i2c/spi bus, it is ok for spi devices that they have a chip select input but for i2c devices there is not any kind of input...

Hi, While sharing i2c/spi bus, it is ok for spi devices that they have a chip select input but for i2c devices there is not any kind of input ( some have reset pin, this pin may be held down while writing to spi devices but this may be not a good solution ), thus, i2c devices must be isolated from the bus while writing to spi devices. So what is the best way of isolating i2c devices f...


i2C bus, master control

Started by zpierre007 in LPC200013 years ago
I2C

Hi every body, If you want to use the i2c bus as a Master, go to the files list and watch the i2c.zip. There are somes...

Hi every body, If you want to use the i2c bus as a Master, go to the files list and watch the i2c.zip. There are somes functions and an example to a full acess of an eeprom 24c64. the speed is for a VPB clcok divider = 1 and it's set a 375khz. don't forget the


I2C and bootloader control on the same pin

Started by peterssonmikael in LPC200013 years ago 4 replies

On the LPC2138, P0.14 is both SDA1 and bootloader control pin. So if I am using the second I2C-channel in a multimaster application there...

On the LPC2138, P0.14 is both SDA1 and bootloader control pin. So if I am using the second I2C-channel in a multimaster application there might a situation where another I2C-unit send a 0 during reset (startup) of my unit forcing it into boot mode. Have anyone thought about this?


I2C in LPC2368

Started by samjith_wasim in LPC20009 years ago 5 replies
I2C

Is it possible to develop I2C without Interrupt Service Routines (ISR) ? ------------------------------------

Is it possible to develop I2C without Interrupt Service Routines (ISR) ? ------------------------------------


Clock issue

Started by ashermantec in LPC200013 years ago

Hello This is my ARM Based work : 1. Act as an I2C PROM via the I2C channel. 2. Receive configuration orders from the I2C...

Hello This is my ARM Based work : 1. Act as an I2C PROM via the I2C channel. 2. Receive configuration orders from the I2C channel. 3. Read HW configuration via IO pins. 4. Configure an external component using a multiplexed 8 bit data/address bus, should be implemented by GPIO. 5. Drive several HW pins according to configuration


LPC2148 as slave for I2C

Started by heedaf in LPC200011 years ago 1 reply

I'm trying to use a LPC2148 as slave for I2C but I can't get it to bring the 9th bit low for the ack after sending over the address. ...

I'm trying to use a LPC2148 as slave for I2C but I can't get it to bring the 9th bit low for the ack after sending over the address. Everything is setup correctly but I can't get it to work. What is also strange is if I set the address to 0x0a and let it run and then send over the address the I2C Data register will change to 0x14 after I stop the process. Has anyone had similar problem...


I2C ?

Started by Sutton Mehaffey in LPC200012 years ago

I have an I2C question that has been bugging me for a month now. Any time I issue a SLA+R to read from a particular address from any chip, I...

I have an I2C question that has been bugging me for a month now. Any time I issue a SLA+R to read from a particular address from any chip, I have to wait one extra cycle before the data is ready on the bus. This is both for an EPSON RTC and an ATMEL RAM chip. Is this normal operation for those who have done I2C? I can't find in any datasheet that you must wait this extra cycle, but I have...