We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello, I know this might not be the best place to ask, but we are kind of desperate ! I have a system with a LPC2148 ARM7 and a LPC915 (operating as a I2C slave to the '2148) and I need to get the LPC915 to work... I have other devices on my I2C bus, and the 2148 talks ok with them. The problem is to make the I2C slave code work on the LPC915 (I'm currently (trying to) using the skeleton from esacademy. So anyone have some working examples (or willing to do some contract work ?) PS: Sorry if this is "mis-placed" on the forum.... Regards, Carsten
i have LPB93x slaves working with no problem using ESacademy code as a base. "a base" does not refer to the esacademy code not working, just not 'as I want it to look'. Erik
addition to the above: I have, when using the CodeArchitect code the first time used it 'as is' then gradually, while ensuring functionality at regular intervals, changing it to what I actually needed (switches inside the ISR and such). "Carsten Groen", you Danish? Erik
Hi Erik, "ja jeg er :o)" OK, I have been "fooling" around with the I2C isr routine in the LPC915, and it seems like when I try to do a simple "write 1 byte" from the 2148, I get a status 0x00 in the ISR..... Erik, do you have a private email address ? Regards, Carsten
Hmm, it might also be the code on 2148 that is the cause of the error, I use the code to talk with a DS2745 (fuelgauge) and a PCA9535 though without problems.... Carsten
Erik, do you have a private email address ? I do, but find it wrong to exchange techical info outside the forum. However, If you want to discuss something else it is erikm@digrec.com Erik
download the datasheet for the Philips P89C668, except for oscillator setup the IIC is identical to the LPC (and the SILabs derivatives - NOT the deviates) and explained in excruciating detail. I would have spent much more time on LPC IIC had I not been aware of this. Erik
Perfect ! I read thru the I2C section on the '668 device which helped me a great deal understanding the I2C controller (which is described in much more detail in the '668 manual) I can now both read and write data using the LPC2148 as a master, and the LPC915 as a slave (running 350 KHz on the SCL line). Regards and thanks, Carsten