I2C Transaction Summary

Started by tcirobot in LPC20007 years ago

If you are working on I2C code you might find this transaction summary useful: File : /I2C/I2C_Transaction_Summary.pdf Uploaded by : tcirobot ...

If you are working on I2C code you might find this transaction summary useful: File : /I2C/I2C_Transaction_Summary.pdf Uploaded by : tcirobot Description : I2C Transaction Summary You can access this file at the URL: http://groups.yahoo.com/group/lpc2000/files/I2C/I2C_Transaction_Summary.pdf The document summarizes the various state transitions (interrupts) for master an


Re: I2C Start Problem

Started by ryan...@gmail.com in LPC200010 years ago

No worries, I'm glad you have a solution :) g_gambler2000 wrote: > > Hi, > > I have solve my I2C problem. The problem was mainly due to...

No worries, I'm glad you have a solution :) g_gambler2000 wrote: > > Hi, > > I have solve my I2C problem. The problem was mainly due to wrong > initialization of 'device enable' pin for the I2C slave. I define it > as input instead of output. Somehow, this cause my slave device to be > in undefined mode and cause the I2C bus down. > > I agree that Tom's advise is very good. Thanks to P


I2C NAKs on LPC2148

Started by Sutton Mehaffey in LPC200011 years ago 1 reply

This isn't really a LPC2148 question, even though I use I2C on mine. However, some of you using I2C might be able to answer this...

This isn't really a LPC2148 question, even though I use I2C on mine. However, some of you using I2C might be able to answer this curiosity question. I am using a I2C display (240x64) connected to my LPC2148. If I print too fast, the display drops characters, since the display has a 128 character buffer. I can put delays in to fix the problem, but the better solution is to monitor for th...


IAR EWARM I2C example?

Started by stephan2148 in LPC200011 years ago 1 reply

Hello all, Does anyone have an I2C example for the IAR kickstart, or full Embedded Workbench version for a LPC2148? I have looked at...

Hello all, Does anyone have an I2C example for the IAR kickstart, or full Embedded Workbench version for a LPC2148? I have looked at the MakeApp utility, but the register names seem to be different from those of the project I currently am trying to add I2C to. Thanks for any information, Steve


I2C code for LPC2148

Started by Sutton Mehaffey in LPC200012 years ago 4 replies

I am trying to use a RAMTRON Serial Memory chip using I2C. I have grounded the Address lines for a 000 address as well as the WP...

I am trying to use a RAMTRON Serial Memory chip using I2C. I have grounded the Address lines for a 000 address as well as the WP (write protect line). Does someone have a small I2C sample code showing how to manipulate the SDA and SCL lines properly and feed the data? Does the I2C code have to use an interrupt? If no, is it preferable? Just looking for options and a few hints as I exper


I2C question

Started by saidaiy in LPC200010 years ago 3 replies
I2C

can anyone tell me how to define the register value of I2SCLH & I2SCLL , this is my first times to use the i2c, i read several sample code...

can anyone tell me how to define the register value of I2SCLH & I2SCLL , this is my first times to use the i2c, i read several sample code about i2c but i still have no idea about these. from data sheet (fCLK is the frequency of pclk.) does it means the frequency of the crystal? thanks regards, saidaiy


I2C Bus

Started by imra...@ansaldo-sts.co.in in LPC20009 years ago 2 replies

Hi all, I use LPC2106 microcontroller, In which i have connected the I2C bus=20 signals (SDA, SCL and Gnd) to another PCB which has I2C slaves...

Hi all, I use LPC2106 microcontroller, In which i have connected the I2C bus=20 signals (SDA, SCL and Gnd) to another PCB which has I2C slaves (6 slaves).= =20 And the cable which I use to connect the I2C bus signals is the Teflon=20 wires of length 0.5 feet and pull up resistors value is 3K.=20 The system works in high noise environment, Sometimes the system fails and= =20 when we de...


I2C examples for LPC2148

Started by "shahin.ghazinouri" in LPC200012 years ago 2 replies

Hello, I was wondering if anyone knows where I can find a working Keil I2C=20 example for LPC2148.=20 What I want to do is to use the I2C bus...

Hello, I was wondering if anyone knows where I can find a working Keil I2C=20 example for LPC2148.=20 What I want to do is to use the I2C bus to send commands to a Philips=20 Display Driver chip (PCF-8535) and it would help if I had some example=20 code to use as basis. I=B4ll appriciate any help I can get! /Shahin =20 =20


WDG timer interrupt during I2C interrupt

Started by S Kumar in LPC200010 years ago 1 reply

Hi, I am newbie to this group. I have modified the I2C sample program for my application. In my application,I configured the following...

Hi, I am newbie to this group. I have modified the I2C sample program for my application. In my application,I configured the following interrupts and listed as per the priority, 1.WDG timer Interrtpt - 500 ms 2.UART 1 3.I2C Interrupt I have connected 5 no of I2C based Display driver IC's into LPC2106. Also,I included the following things to avoid spurious interrupt and abort mode, ...


I2C Multiple Buses

Started by Chris in LPC20008 years ago 15 replies

I've got an app where I need 3 fully functional I2C master buses. The LPC2368 has (3) I2C, but as I read the manual only 1 of them has OpenDrain...

I've got an app where I need 3 fully functional I2C master buses. The LPC2368 has (3) I2C, but as I read the manual only 1 of them has OpenDrain outputs. The other 2 use GPIO outputs. What good is that? How would you use them? Chris.


I2C on LPC2103

Started by Jason in LPC20008 years ago 2 replies

Hello all im back. Need some advice. Im writing code for I2C for a MMA7660FC which is a: 3-Axis Accelerometer with Digital Output (I2C) Can...

Hello all im back. Need some advice. Im writing code for I2C for a MMA7660FC which is a: 3-Axis Accelerometer with Digital Output (I2C) Can someone just go over this and see if it looks ok... This is my untested code... http://pastebin.com/3GXKMrMg It took me some time to make this for some reason its more complex that i would have expected.... on a PIC micro this would be childs play.....


I2C Interrupt handler when using 8 and 16 bit slave devices

Started by renemcardenas in LPC200012 years ago

Has anyone ran into problems with the I2C interrupt handler using LPC2138/48?. I could use a hand reviewing my preliminary effort. I am...

Has anyone ran into problems with the I2C interrupt handler using LPC2138/48?. I could use a hand reviewing my preliminary effort. I am observing that the I2C block apears to clog while correctly processing a RD command during Master Receive mode. WR commands to any device are been generated correctly, but I am having a problem catchig the logic why the I2C block has problem completin...


Time outs in I2C routines

Started by ajellisuk in LPC200010 years ago 4 replies

Hi, I have a project using an LPC2148 where I'm communicating with several I2C peripherals. Sometimes a peripheral fails to respond for...

Hi, I have a project using an LPC2148 where I'm communicating with several I2C peripherals. Sometimes a peripheral fails to respond for whatever reason, and this causes my software to hang. I obviously need to implement a timeout in my I2C routines. What is the best way to implement this? Thanks in advance Andrew Ellis ------------------------------------


I2C interface for LPC2294

Started by aditiiitb in LPC200010 years ago 2 replies

Hi! I am making a digital camera using KAC 9619 CMOS image sensor and ARM LPC 2294. I need some help on the I2C protocol required...

Hi! I am making a digital camera using KAC 9619 CMOS image sensor and ARM LPC 2294. I need some help on the I2C protocol required for controlling the sensor. Could somebody give me a sample template for writing/reading 1 byte data into a peripheral using the LPC2294 via the I2C protocol ? I found one template for the PCF8570: // Simulation of I2C Memory (Slave): like Philips PCF8570 (256...


I2C protocol question

Started by Sutton Mehaffey in LPC200010 years ago 14 replies

I'm interested in people's opinion on this. I am using a I2C Graphical Display interfaced with a LPC2148. On occasion, the I2C command sent...

I'm interested in people's opinion on this. I am using a I2C Graphical Display interfaced with a LPC2148. On occasion, the I2C command sent out drops a byte which causes the command to be invalid. This could be due to noise, interference, and the like. I haven't determined exactly what causes this. However, I'm sure there are going to be instances of this on occasion and that it needs to...


I2C Stop Condition question

Started by kennytrussell in LPC200012 years ago 6 replies

Does anyone know how to test that a stop condition is complete prior to initiating a new I2C transfer? The situation: At the end of an I2C...

Does anyone know how to test that a stop condition is complete prior to initiating a new I2C transfer? The situation: At the end of an I2C transfer (where LPC is master), all the interrupt code I have seen sets the STO bit to initiate a stop condition and at the same time sets "lock=0;". This causes any routines which desire to use the I2C bus to think that the bus is free when it is...


code for I2C in lpc2106 using Keil.

Started by jha_santosh_kr2005 in LPC200014 years ago 6 replies

Hi, I am desperately trying to communicate with RTC pCF8583 using I2C of lpc2106 using Keil C compiler.But I am unable to...

Hi, I am desperately trying to communicate with RTC pCF8583 using I2C of lpc2106 using Keil C compiler.But I am unable to start the I2C. Pl. help if u have time. Regards, Santosh Jha


WinARM I2C example program

Started by nerdinrage in LPC20009 years ago 2 replies
I2C

I'm trying to work with I2C and WinARM. I was wondering if anyone could direct me to an example program for I2C that I can compile in WinARM? ...

I'm trying to work with I2C and WinARM. I was wondering if anyone could direct me to an example program for I2C that I can compile in WinARM? I'm trying to play with a DAQ chip and I'm not having any luck converting makefiles from other examples. Regards ------------------------------------


Need help setting up I2C on LPC2103

Started by Neil Jansen in LPC200011 years ago 10 replies

What's the easiest way to set up I2C on an LPC2103? NXP's app note uses interrupts, but I really don't want to use them if I don't have to. ...

What's the easiest way to set up I2C on an LPC2103? NXP's app note uses interrupts, but I really don't want to use them if I don't have to. I'm not trying to do any error handling or anything, I just want to send a few messages to an I2C chip. The LPC2000's seem to really complicate this. Can someone point me to some (simple) example code? I tried the I2C_lib.zip in the file section...


I2C on STR91FAW44

Started by Primoz Lemut in LPC200011 years ago 3 replies
I2C

Hi everyone, I spent few evenings trying to make STR91FAW44 I2C peripheral running, but so far no success. How I do it? I initialize...

Hi everyone, I spent few evenings trying to make STR91FAW44 I2C peripheral running, but so far no success. How I do it? I initialize hardware in this way (recommended in Hitex "Insiders Gude to...") // I2C interface on P2.0 and P2.1 SCU-> GPIOTYPE[2] = 0x03; // SDA and SCL are open collector type SCU-> GPIOOUT[2] &= 0xFFF0; // P2.0 and P2.1