I2C support - 'built-in' VS modules

Started by drasko in comp.arch.embedded11 years ago

Hi all, I have a question about incorporating existing I2C support in kernel. 1) In order to have working peripherel on I2C bus I have to...

Hi all, I have a question about incorporating existing I2C support in kernel. 1) In order to have working peripherel on I2C bus I have to insmod: a) i2c-core.o b) i2c-dev.o c) i2c-proc.o d) i2c- .o e) i2c- .o Am I right? Did I miss something? 2) More important question: I enabled I2C support in make menuconfig, for I2C code to b


Devantech USB-I2C R286-USB-I2C board

Started by mInfo in comp.arch.embedded11 years ago

Hello, I bought the Devantech USB-I2C R286-USB-I2C board. The Devantech USB- I2C module is a low cost USB to I2C module, with a simple command...

Hello, I bought the Devantech USB-I2C R286-USB-I2C board. The Devantech USB- I2C module is a low cost USB to I2C module, with a simple command set, and interfacing to any I2C device. I'm trying to set the I2C interface between my I2C board and R286-USB-I2C? Also I do need a help in User Interface development for Microsoft Windows. It should be similar to your USB_I2C_SRF08.exe software b...


I2C Questions -- Not In the FAQ

Started by Anthony Presley in comp.arch.embedded13 years ago 6 replies

Hi all, I have a few questions about the i2c bus which I can't seem to find anywhere else. Any answers would be greatly appreciated. We're...

Hi all, I have a few questions about the i2c bus which I can't seem to find anywhere else. Any answers would be greatly appreciated. We're building a device based on a previous design, from another firm, which uses the MSP430F149, which does SPI, but not I2c. The existing design uses i2c components on the board, and the software is bit banging out the i2c protocol. We want to extend t...


I2C simulator

Started by Wills in comp.arch.embedded8 years ago 4 replies

Hi all, I want to learn 'how to program an I2C device' . I am trying to find a simulator for an I2C device which I can use to test any...

Hi all, I want to learn 'how to program an I2C device' . I am trying to find a simulator for an I2C device which I can use to test any sample programs I get from the web. When I search the web for a simulator I get a lot of VLSI related results. Is there a free I2C device simulator software for learning I2C programming. Thank in advance.


I2c master routine

Started by Bram van de Kerkhof in comp.arch.embedded14 years ago 6 replies
I2C

Who has some standard working i2c routines for me. I want to use the ds1307 and other i2c products. Yours Bram

Who has some standard working i2c routines for me. I want to use the ds1307 and other i2c products. Yours Bram


LPC2138 I2C

Started by Frank van Eijkelenburg in comp.arch.embedded9 years ago 3 replies

Hi, I am still using the LPC2138 ;). Now I have a problem with I2C. When I try to send some bytes to an EEPROM device, the following...

Hi, I am still using the LPC2138 ;). Now I have a problem with I2C. When I try to send some bytes to an EEPROM device, the following happens: - I2C start condition is made - interrupt is generated - I2C address is sent - EEPROM device gives an ACK And now nothing happens. If I look at the I2C bus state, the microcontroller accepted the ACK. However, no new interrupt is given due to ...


I2C trick?

Started by Vladimir Vassilevsky in comp.arch.embedded10 years ago 10 replies

Suppose you have the two I2C slaves that have to be connected to the MCU. Both slaves have the same I2C address. The I2C master is simulated...

Suppose you have the two I2C slaves that have to be connected to the MCU. Both slaves have the same I2C address. The I2C master is simulated by bit banging. Would it be possible to swap SCL and SDA lines on one of the slaves so both slaves can be addressed independently? Can this cause any "side effects" ? Vladimir Vassilevsky DSP and Mixed Signal Design Consultant http://w...


I2C Interface for MSP430

Started by sundar_1984 in comp.arch.embedded11 years ago 7 replies

Hi all, I am using MSP430F1121A on my board and its is connected on the I2C bus. I need to validate the I2C on board on CCS platform without...

Hi all, I am using MSP430F1121A on my board and its is connected on the I2C bus. I need to validate the I2C on board on CCS platform without any drivers. I am able to test the I2C for a Video Decoder, aslo on board by sending the addresses of the device as well as the registers that i want to read. However i dont get anything like this for MSP430. all i know is the MSP430 is programmed its addr...


Bit-banging I2C

Started by Tim Wescott in comp.arch.embedded2 years ago 57 replies

Has anyone successfully bit-banged an I2C interface? Any comments on it's ease or difficulty? I've used I2C with processors that have...

Has anyone successfully bit-banged an I2C interface? Any comments on it's ease or difficulty? I've used I2C with processors that have built-in hardware, I've sat next to a guy who's bit-banged it, but I've never bit-banged it myself. I ask as a circuit designer who's going to design in an I2C chip to be presented to a software engineer with a smile and a "here, this ought to be easy...


I2C port IO chips

Started by Ralph Malph in comp.arch.embedded14 years ago 17 replies

I looked around the web and could not find any sources of I2C port IO chips other than Philips. Seems to get most of their I2C parts, you have...

I looked around the web and could not find any sources of I2C port IO chips other than Philips. Seems to get most of their I2C parts, you have to buy a couple thousand minimum. I am looking for a way to add 8 or 16 IOs. Some chips are port expanders, some are LED drivers; either will work if they come in small packages. So who else makes I2C chips? A google search turned up lots of st...


I2C troubleshooting

Started by Patrick in comp.arch.embedded13 years ago 11 replies

Hi, I'm developing an I2C slave device based on a MSP430F169. Another 'F169 is the master (for testing) and every now and then,...

Hi, I'm developing an I2C slave device based on a MSP430F169. Another 'F169 is the master (for testing) and every now and then, the communication breaks down. The master's application is derived from TI app note slaa208 "Interfacing an EEPROM to the MSP430 I2C Module". I'm implementing a I2C bootloader for the slave device, and the control flow goes like this: 1a) Master does "ack-...


I2C - Chip not responding

Started by Gavin Jacobs in comp.arch.embedded12 years ago 4 replies

I have an I2C bus with a PIC6621 master and a 24LC512 EEPROM slave. It is working. I am trying to add a DS1307 and a DS2482 to the I2C bus, but I...

I have an I2C bus with a PIC6621 master and a 24LC512 EEPROM slave. It is working. I am trying to add a DS1307 and a DS2482 to the I2C bus, but I can't get any response from either of the latter. I can see the SCL and SDA lines on my Optascope (and admittedly, the Optascope just barely has the power to see a 100 kHz signal). When I send the I2C address, I can verify the 8 bit pattern of SDA, ...


PIC MSSP module in I2C mode

Started by Ralf Hildebrandt in comp.arch.embedded13 years ago 2 replies

Hi all! The Microchip PIC16F87XA has got a MSSP module. Bits SSPM(3 downto 0) in SSPCON register configure the mode of the module. For I2C...

Hi all! The Microchip PIC16F87XA has got a MSSP module. Bits SSPM(3 downto 0) in SSPCON register configure the mode of the module. For I2C operation the following options are available: 1111 = I2C slave, 10bit addressing, with START/STOP interrupts 1110 = I2C slave, 7bit addressing, with START/STOP interrupts 1011 = I2C firmware controlled master mode (Slave idle) 1000 = I2C master ...


How to Un-Hang a DS RTC Chip Stuck in I2C La-La-Land ???

Started by B1ackwater in comp.arch.embedded9 years ago 8 replies

I've been working with a Real-Time-Clock chip, the DS-1337+, and noticed that if the final I2C read operation isn't accompanied by a 'no-ack'...

I've been working with a Real-Time-Clock chip, the DS-1337+, and noticed that if the final I2C read operation isn't accompanied by a 'no-ack' then I2C communications hang-up shortly thereafter. The PIC language I'm using (MikroPascal) does not have a proper "time-out" for I2C operations, so everything hangs until the watchdog finally kicks in, which is rather inelegant. The docs say the '...


I2C without resistors

Started by mmihai in comp.arch.embedded10 years ago 22 replies
I2C

Here you'll find a writing about a resistor-less I2C implementation: ...

Here you'll find a writing about a resistor-less I2C implementation: http://www.delajii.net/~mmihai/Articles/I2C_precharged.html As the name of the link is saying, it's a 'precharged' I2C bus. Enjoy! -- mmihai


UART I2C and SPI Tests

Started by IJALAB in comp.arch.embedded10 years ago 1 reply

Hello All, I have drafted test plan for verifying peripheral behavior but Does anyone have system level tests for testing i2c, uart and...

Hello All, I have drafted test plan for verifying peripheral behavior but Does anyone have system level tests for testing i2c, uart and spi peripherals from a software perspective? pls share the tests that one should carry out for thoroughly verifying a driver from: 1. i2c multimaster 2. i2c slave mode TX and Rx functions. regards bala


I2C off board distances

Started by Colin MacDougall in comp.arch.embedded13 years ago 15 replies

Has anyone any experience of running an I2C bus from a PCB to a remote I2C device ? I am thinking of connecting a remote Dallas Semiconductor...

Has anyone any experience of running an I2C bus from a PCB to a remote I2C device ? I am thinking of connecting a remote Dallas Semiconductor I2C temperature sensor IC to a micro over a length of 4 or 5 metres of wire. The temp sensor would be fixed to the ceiling to measure room temperature and the micro would be in a monitoring / control box on the wall. Could I run this at the typical ...


Accessing global var of another file

Started by galapogos in comp.arch.embedded11 years ago 9 replies

Hi, I have a multi-file project and in main.c I have a global array to store a string of characters. In my main function I call...

Hi, I have a multi-file project and in main.c I have a global array to store a string of characters. In my main function I call function i2c_send from another file(i2c.c) that sends this string over i2c. Naturally, my i2c isr is in i2c.c, and naturally it needs to write the string into the i2c buffer for the transmission to begin. Since I can't pass the string into the isr as a parameter, ...


I2C communication

Started by rc_rcf in comp.arch.embedded7 years ago 11 replies

Hi, I am new to I2C bus. I need your help in letting me know how i can monitor data through a I2C Data bus? I found a few products online like...

Hi, I am new to I2C bus. I need your help in letting me know how i can monitor data through a I2C Data bus? I found a few products online like AArdvark, Beagle I2C protocol analyzer. I need product tht is Linux compatible. Moreover, i also need it to monitor as well as allow me to inject some data(sniffing). If you know of any such products please let me know. Could i use aardvark and wir...


I2C Terminology

Started by drasko in comp.arch.embedded11 years ago

Hi all. After reaging the docs, I am still a bit confused about terminology used by lm-sensors team. I have to implement i2c driver for my...

Hi all. After reaging the docs, I am still a bit confused about terminology used by lm-sensors team. I have to implement i2c driver for my specific hardware, that is based on ARM926EJ and AMBA bus. As I can see, there is not support for I2C interface that sits on AMBA bus (APB part of AMBA) adn is on the othae side connected to peripherals via I2C bus. So, that interface, called ApI2c, is b...