general i2c ? - LPC2148

Started by Sutton Mehaffey in LPC200011 years ago

I know this is a general question, but didn't know where to post. I know quite a few members have used I2C, as have I. And, I've gotten my LPC...

I know this is a general question, but didn't know where to post. I know quite a few members have used I2C, as have I. And, I've gotten my LPC stuff to work pretty well with several I2C chips. But, I have a question that seems never to be included in data sheets that I wanted to see if other I2C users can confirm. When reading any data from any chip, using the standard I2C protocol for ...


I2C write within IRQ

Started by franciscocantero1 in LPC20007 years ago
I2C

Hello all, I have a little problem. I want to do some I2C writes to an EEPROM from an interrupt service routine, but the I2C fails to...

Hello all, I have a little problem. I want to do some I2C writes to an EEPROM from an interrupt service routine, but the I2C fails to initialize the process. Up to now i overcome this by setting a flag in the interrupt and in the main loop check if the flag is set and do the I2C writes. I have looked at the I2C registers from inside the interrupt and they seem to be the same as from the...


Re: Problems with LPC2888 and I2C

Started by Pras...@gmail.com in LPC20008 years ago
I2C

Hi, I am working on a new design based on LPC2888. The problem that i am facing is that i am not able to initialize the I2C....

Hi, I am working on a new design based on LPC2888. The problem that i am facing is that i am not able to initialize the I2C. Even after i write I2CCLKHI and I2CCLKLO registers, i am not getting anywhere near the I2C baud rate of 400 KHz. I am only getting the clock frequency of 12 MHz. Can you please help with I2C initialization. With regards, Prashant We have ...


Trying I2C on LPC2148

Started by lucky_suhas in LPC20006 years ago

Hi, i'm trying to transmit and receive using the I2C. using a NGX blueboard LPC2148. Using the I2C in master mode. What i wanted to try was read...

Hi, i'm trying to transmit and receive using the I2C. using a NGX blueboard LPC2148. Using the I2C in master mode. What i wanted to try was read the data from the pot for ADC. store it in the EPROM using I2C. after 10 values are stored. i want to read the stored values using I2C and output it on the UART. so that i can see it on my Hyper Terminal. i have written the code. i loaded it on to th...


LPC210x I2C Examples?

Started by Johan Forrer in LPC200013 years ago 5 replies

Hi All, Since Philips is strong in I2C, does anyone know whether there are some I2C example code for the LPC210x, like that...

Hi All, Since Philips is strong in I2C, does anyone know whether there are some I2C example code for the LPC210x, like that published in the 8XC552 data sheets? I'd like to experiment with the LPC210x I2C interface and wonder whether anyone has experience wi


LPC2378-I2C driver

Started by suresh_aec2004 in LPC200010 years ago 1 reply
I2C

HI All I am using LPC2378 controller and want to interface AT24C512 EEPROM with I2C . i have gone through the I2C application notes provided...

HI All I am using LPC2378 controller and want to interface AT24C512 EEPROM with I2C . i have gone through the I2C application notes provided on the nxp site but i didnt understand , so can any one help me out to write the I2C interface code . Regards Suresh


i2c works at 60mhz but not 48mhz

Started by tojomico in LPC200011 years ago 5 replies

Hi Group, I have an LPC2214 chip for which I'm attempting to use the i2c bus. If I run my board at 60 mhz (12 mhz oscillator * 5), i2c...

Hi Group, I have an LPC2214 chip for which I'm attempting to use the i2c bus. If I run my board at 60 mhz (12 mhz oscillator * 5), i2c works fine. When I reduce the speed to 48 mhz (12 mhz * 4), i2c no longer works. All I do in order to break i2c is change the value of PLLCFG to 0x23 instead of 0x24 during startup. I've tried changing the values for I2SCLH and I2SCLL to match the s...


interrupting an I2C transaction with a UART interrupt using LPC2148

Started by Sutton Mehaffey in LPC20004 years ago 6 replies

If during an I2C transaction (writing to a I2C display), I get a UART interrupt that has a possible I2C transaction itself (writing 2 bytes to...

If during an I2C transaction (writing to a I2C display), I get a UART interrupt that has a possible I2C transaction itself (writing 2 bytes to I2C RAM), how do I handle that? Is the display transaction lost? Does the UART I2C transaction get locked because the display has control of the I2C bus just before the interrupt? Does the display's I2C transaction time out, drop the bus, and t...


Can I2C and SMBus get along on LPC2468?

Started by "Gerthoffer, John" in LPC20006 years ago

I am running v2.89 uCOS-II on an LPC2468 based device that shares an I2C bus with I2C devices (RTC, I/O expanders) and an SMBus smart battery. I...

I am running v2.89 uCOS-II on an LPC2468 based device that shares an I2C bus with I2C devices (RTC, I/O expanders) and an SMBus smart battery. I am having communications problems with the battery. The I2C source in the port had some issues that needed addressed. Fixing the I2C ISR cleared up the bulk of the problem. However, there is still an occasional problem with reading the battery. I a...


I2C slave on an LPC2101

Started by rfkd07 in LPC20009 years ago 3 replies

Currently I am implementing an I2C slave interface on an LPC2101. The controller is connected to the I2C bus with two temperature sensors and an...

Currently I am implementing an I2C slave interface on an LPC2101. The controller is connected to the I2C bus with two temperature sensors and an LPC2148 which is the I2C master. The LPC2148 can read both temperature sensors without problems but I cannot get the I2C slave on the LPC2101 to run properly though I based the code on the LPC2000 I2C slave code example (TN06005) from NXP. Here's ...


i2c

Started by djflaechenbrand in LPC200012 years ago

Hi I use an olimex evaboard (LPC2106) and the gcc (Winarm). I would like to use the I2C interface but it won't work. ARM should be the...

Hi I use an olimex evaboard (LPC2106) and the gcc (Winarm). I would like to use the I2C interface but it won't work. ARM should be the master. I have 10K pullups. first i tried to code it on my own with the datasheet. then i found the "I2C.ZIP" and the other i2c related files. same problem: init pinsel, init speed,


I2C EEPROM code, not using interrupts

Started by Mike Harrison in LPC20009 years ago 2 replies

(LPC2103 and 2136, but I think I2C is the same on most parts) I only want to use I2C to access an EEPROM, and to keep it simple I'm using the...

(LPC2103 and 2136, but I think I2C is the same on most parts) I only want to use I2C to access an EEPROM, and to keep it simple I'm using the I2C hardware in polled mode instead of under interrupts - I always know what the EEPROM will do next so this should simplify things a lot. However there's an issue I can't quite get my head round - I've read the UM several times & still can't figur...


i2c and lpc2368

Started by biso192001 in LPC200010 years ago

hello im trying to interface an Lpc2368 with ov7260 camera using i2c bus..the camera use SCCB protocol which is the same as I2C...

hello im trying to interface an Lpc2368 with ov7260 camera using i2c bus..the camera use SCCB protocol which is the same as I2C protocol..and the lpc also supports I2C protocol..the problem now is i have no experince on I2C bus and i dont know were to start...and i have 2 start coding soon..so if u can plis give a me a few guide line thanks


Re: I2C, unacked address

Started by "J.C. Wren" in LPC20009 years ago

If you're looking for some working I2C code, take a look at the I2C support in the demo package at http://jcwren.com/arm --jc On Thu, Mar...

If you're looking for some working I2C code, take a look at the I2C support in the demo package at http://jcwren.com/arm --jc On Thu, Mar 27, 2008 at 2:41 PM, Paul Claessen wrote: > Greetings, > > I'm trying to hook up an FM radio (SiLabs 7403) to a Keil MCB300 board over > I2C0 (external pull-ups). > > Does anyone with I2C experience have an idea what could be


Regarding I2C Interrupts back in track.

Started by samjith_wasim in LPC20008 years ago 2 replies
I2C

Hello Guys, I was able to accomplish the I2C Interrupts ; When I created a separate project for I2C Interrupts I was able to read all the data...

Hello Guys, I was able to accomplish the I2C Interrupts ; When I created a separate project for I2C Interrupts I was able to read all the data on req addresses but later when I integrated the I2C Interrupt Routine with my current development application , I was able to read only the first ten address locations , the code remains the same. Where should be the problem ??? Thanks for all your ...


I2C problem

Started by Boris Kralik in LPC200012 years ago

Hi guys. I have problem with I2C on LPC2294; I set SDA and SCL wires as I2C: PCB_PINSEL0 |= 0x50; //Set SCL and SDA PCB_PINSEL0 &=...

Hi guys. I have problem with I2C on LPC2294; I set SDA and SCL wires as I2C: PCB_PINSEL0 |= 0x50; //Set SCL and SDA PCB_PINSEL0 &= (uint32_t)0xFFFFFF5F; and next configure I2C I2C_I2SCLL = 60; I2C_I2SCLH = 70; I2C_I2CONSET = 0x40;// (1 << I2C_FLAG_I2EN);Enable I2C state after reset SDA is H, SCL is H <- OK proble


I2C interrupt

Started by Ken in LPC200013 years ago 3 replies

I am having problems getting the I2C interrupt to work. I have setup the VIC to enable the I2C interrupt (channel 9) in exactly the...

I am having problems getting the I2C interrupt to work. I have setup the VIC to enable the I2C interrupt (channel 9) in exactly the same way I have setup all the other interrupts (which work). I can see that the SI bit is getting set correctly - and I can use the I2C interf


need i2c help please

Started by b clapper in LPC200012 years ago 4 replies

Hi Everyone, I'm having a problem with an i2c interface between LPC2138 and an image sensor. I'm using i2c to set parameters in the...

Hi Everyone, I'm having a problem with an i2c interface between LPC2138 and an image sensor. I'm using i2c to set parameters in the image sensor, like exposure, rgb gain, clocking etc. After capturing a frame, I'm trying to use i2c to get information back from the sensor about the relative brightness of the frame. I hope to use this to adjust my expo


Interfacing 5v I2C circuit to Olimex-h2148

Started by Mohamad Tayssir Alkowatly in LPC20008 years ago 7 replies

Hi all I have ATMEGA08-16 based circuit that I want to command from my Olimex-h2148 board using I2C protocol. The Atmel based circuit...

Hi all I have ATMEGA08-16 based circuit that I want to command from my Olimex-h2148 board using I2C protocol. The Atmel based circuit operates on 5v. LPC2148 I2C pins are 5v tolerant so they all can operate on a 5v I2C bus. But I've noticed that all I2C pins on Olimex-h2148 are pulled high at 3.3v using 4.7k resistors. As I'm not from an electronic background I cannot tell whether this ar...


LPC2102, with i2c and watchdog

Started by chiu...@yahoo.com.hk in LPC200011 years ago 1 reply

hello, i\'m a newbie (and also an outsider of electronics) so my question sounds a bit stupid... now i\'m using LPC2102, and the watchdog...

hello, i\'m a newbie (and also an outsider of electronics) so my question sounds a bit stupid... now i\'m using LPC2102, and the watchdog works perfectly (device reboots when watchdog not fed within the preset time) when i2c is not in use. however, when i2c is in use the device will keep rebooting again and again. it seems that the watchdog crashes with the i2c interrupt. please kindly ad...