I2C sample code???

Started by Rick in LPC20008 years ago 3 replies

Does anyone have sample code for I2C that could be used on an LPC-17xx mcu? Or tell me where to find...

Does anyone have sample code for I2C that could be used on an LPC-17xx mcu? Or tell me where to find it. Thanx Rick ------------------------------------


Weird I2C behaviour

Started by Shannon Holland in LPC200014 years ago 1 reply

I'm trying to get I2c up and running on my 2106 board and am seeing strange things. Basically, when the LPC2106 brings SCL low I...

I'm trying to get I2c up and running on my 2106 board and am seeing strange things. Basically, when the LPC2106 brings SCL low I see the line dropping only to 1.5V rather than 0. I can verify this by switching P0.2 to GPIO mode and outputting 0. SDA fluctuates between 0 and


initializing I2C problem

Started by neptunus1000 in LPC200013 years ago 9 replies

Hello, I use an olimex evaboard (LPC2129) and crossStudio. I would like to use the I2C interface but it won't work. ARM should be...

Hello, I use an olimex evaboard (LPC2129) and crossStudio. I would like to use the I2C interface but it won't work. ARM should be the master. First I tried to code it on my own with the datasheet. Then I found some example code on the group. The methode InitI2C() is working fine. Only the methode SendSlaveAdress(unsigned char Addr_S)


lpc2106 i2c problem

Started by nana_pii in LPC200014 years ago 1 reply

Hi group, I need some help getting my i2c to run. An lpc2106 board (Master) is connected to a 5V mega16 AVR. No interrupt...

Hi group, I need some help getting my i2c to run. An lpc2106 board (Master) is connected to a 5V mega16 AVR. No interrupt is sent, after the start bit is set. I have tested the pins P0.2, P0.3, and P0.4 (reference) in GPIO mode, and here is, what I find:


I2C (slave and master on board)

Started by Jon Trem in LPC200010 years ago 22 replies

Hello, I want to test I2C and since I have no I2C device I used I2C0 and I2C1 of a same LPC2148 board. I2C0 is master transmitter, I2C1 is...

Hello, I want to test I2C and since I have no I2C device I used I2C0 and I2C1 of a same LPC2148 board. I2C0 is master transmitter, I2C1 is slave receiver. But I can't make it work. Using LEDS to debug, I see that : - I2C0 send a START condition well - I2C0 send the SLA+W and receive an ACK (0x18 in I2C0STAT) - I2C1 receive its SLA+W and return an ACK (0x60 in I2C1STAT) That makes th...


LPC2138 can't clear SI flag in I2C interfacing

Started by allendeng881028 in LPC20007 years ago 2 replies

Hi there, I'm currently trying to interface a gyro with the LPC2138 through I2C, but after the start bit was sent, setting I2C0CONCLR to 0x08...

Hi there, I'm currently trying to interface a gyro with the LPC2138 through I2C, but after the start bit was sent, setting I2C0CONCLR to 0x08 doesn't clear the SI flag. I'm out of ideas why this happens, any help will much appreciated:P Cheers, Allen ------------------------------------


Interrupt-Driven I2C Problem

Started by James Dabbs in LPC200013 years ago
I2C

I have implemented an interrupt-driven I2C module for master mode send and receive. It works fine, EXCEPT that when I issue a STOP at the end...

I have implemented an interrupt-driven I2C module for master mode send and receive. It works fine, EXCEPT that when I issue a STOP at the end of a transaction, I get an interrupt with a status code 0x08, just like I've issued a start. Any idea what's going on? Thanks.


I2C problem

Started by Nishant Agrawal in LPC200010 years ago 2 replies

Hi everybody, I am trying to implement I2C bus in interrupt mode for LPC 2103. It clearly is not working. It is working...

Hi everybody, I am trying to implement I2C bus in interrupt mode for LPC 2103. It clearly is not working. It is working perfectly well without the interrupt, sending the data in a polled manner. When I went through the documentation of User manual, I found that it is telling to set the ack bit even while transmitting as a master. Is that necessary or did I interpreted it w...


Tasking question

Started by Martijn Broens in LPC200010 years ago 24 replies

Hi, I've been struggling for a while now on this topic. So I thought I'd ask you all for an opinion. I have several I2C devices , keyb, LCD,...

Hi, I've been struggling for a while now on this topic. So I thought I'd ask you all for an opinion. I have several I2C devices , keyb, LCD, LED, and AD/DA connected to one I2C bus. (LPC2468) and I have several tasks running that need to either put data to a peripheral or read data from it. For example one task should take care of all button values and call the tasks associated with the b...


LPC2148 ISR Problems

Started by nickdesantis54 in LPC20006 years ago 4 replies

As many of you have seen, I've been working with an LPC2148 dev board trying to take advantage of the I2C lines to communicate with some I/O...

As many of you have seen, I've been working with an LPC2148 dev board trying to take advantage of the I2C lines to communicate with some I/O expanders. I was able to get one I2C line up and running and communicating without any issues, but now all of a sudden it's not working anymore. The problem seems to be that I'm not jumping into the ISR at all and I've got no idea why. Is there any way I ...


Started by Robert Adsett in LPC200012 years ago

Quoting rtstofer : [Hide Quoted Text] --- In l...@yahoogroups.com, Richard Duits wrote: If you don't use I2C you can use the P0.2 and...

Quoting rtstofer : [Hide Quoted Text] --- In l...@yahoogroups.com, Richard Duits wrote: If you don't use I2C you can use the P0.2 and P0.3 pins. Are you saying that P0.2 and P0.3 are special in that they are open collector? If so, the way I read the datasheet is that they are open collector in I2C mode only. Have I missed something? Yes, they are open col


I2C help for LPC2148

Started by Sutton Mehaffey in LPC200013 years ago 1 reply

Just learning to play with I2C. I am trying to address a RAMTRON Serial RAM chip and am having some difficulty getting proper responses from...

Just learning to play with I2C. I am trying to address a RAMTRON Serial RAM chip and am having some difficulty getting proper responses from it. I have the chip addressed as 000, to make it easy on the electrical hookups. My first trial is to READ data from a particular (selective) memory location. By reading, and if I understand it correctly, I need to do the following: 1. Issue a STAR


I2C hardware configuration with DS1621

Started by daniela_boyo in LPC200014 years ago

Hi everyone, I am relatively new with using an LPC2129 based ARM board. I need to link the board with a DS1621 temperature...

Hi everyone, I am relatively new with using an LPC2129 based ARM board. I need to link the board with a DS1621 temperature sensor using the I2C hardware. Does anyone have the code for doing this or an example of anything similar which will help me? Any help will be greatly


I2C Interrupt Modification

Started by samjith_wasim in LPC20009 years ago
I2C

Dear Sir, with the feedback given by you I was able to re-structure my I2C Interrupt routine.Interrupt is invoking properly everytime, but I am...

Dear Sir, with the feedback given by you I was able to re-structure my I2C Interrupt routine.Interrupt is invoking properly everytime, but I am not able to get the desired result. I want to clarify that I am reading data from my master controller. My Slave has data like this. Location Value 0x00 ---> 1 0x01 ---> 2 0x02 ---> 3 and so on till 0x23 ----


SHT-71

Started by szczypta_marek in LPC200010 years ago 9 replies
I2C

Hi! Has anyone had experience with SHT-71/11 with arm? Is it necessery to use pins P0.2 P0.3 as (SCK ,DATA I2c configuration) ,becouse as i...

Hi! Has anyone had experience with SHT-71/11 with arm? Is it necessery to use pins P0.2 P0.3 as (SCK ,DATA I2c configuration) ,becouse as i know this protocol is little diferent from I2c , so maby only use pin 0.2 as SCK and any other as input/output for SHT comunication data.? ------------------------------------


I2C failure rate

Started by Sutton Mehaffey in LPC200012 years ago 2 replies
I2C

Does anyone have any benchmarks on the failure rate of I2C? I am running at 120Khz and running a test on a RAM. I am finding that approx....

Does anyone have any benchmarks on the failure rate of I2C? I am running at 120Khz and running a test on a RAM. I am finding that approx. every 100 writes and reads to various memory locations (sometimes more, sometimes less), I get a NACK (where there should be an ACK) and I have to issue a RESTART. Is this normal? Sutton ------------------------ Yahoo! Groups Sponsor ----------------...


I2C Master on LPC2129 (also slave)

Started by troqualy in LPC200012 years ago

Hello and thank you in advance for your help. I have been researching and trying to understand the I2C protocal for some time now but haven't...

Hello and thank you in advance for your help. I have been researching and trying to understand the I2C protocal for some time now but haven't been able to create a working program. I have been able to create a start signal (the SDA goes low, then the SCL goes low), however the clock never creates a signal and thus my transmition ends. Ex1: Ex2: ____ ...


LPC2148 USB+I2C

Started by Mohit in LPC20008 years ago 4 replies

I have some problem regarding with the USB plus I2C interface. I want to receive the data from the VCOm using USB Port and this data...

I have some problem regarding with the USB plus I2C interface. I want to receive the data from the VCOm using USB Port and this data should be stored in the I2C- EEPROM and now the reverse process, the data stored in the EEPROM want to receive at the VCOM using USB Port. ------------------------------------


Multiple master I2C problem

Started by "kyz.hyma" in LPC200010 years ago 1 reply

Hi everyone, I'm developping a multiple master I2C driver for an LPC2106. Everything works fine as long as no master tries to speak at the...

Hi everyone, I'm developping a multiple master I2C driver for an LPC2106. Everything works fine as long as no master tries to speak at the same time but when that occurs, no communication can be made at all: devices just don't acknowledge one another and ignore everything 'till it can transmit its command. The LPC2104/5/6 user manual states that the microcontroller should by itself ...


Any examples for I2C or SPI ?

Started by elvis_seventy_seven in LPC200014 years ago

I'm working with the KEIL DKARM Tools 1.2a, using the MCB2100 Evalboard with the KEIL ULINK USB Debugger. Are there any...

I'm working with the KEIL DKARM Tools 1.2a, using the MCB2100 Evalboard with the KEIL ULINK USB Debugger. Are there any example source codes for I2C or SPI implementations for the LPC2106 or LPC2129 ? I looked through several internet resources, but i haven't found any