I²C (Inter-Integrated Circuit) is a multi-drop serial bus invented by Philips (now NXP) for communication between ICs on the same PCB, i.e. short distance.

learn more… | top users | synonyms

7
votes
2answers
135 views

Why do datasheets document protocols from the ground up?

I'm reading a datasheets for a component with I2C interfaces. I can recall the same for datasheets of other components in the past. In these datasheets they include a full description of the I2C ...
0
votes
1answer
62 views

STM32F4 HAL I2C only sends address

I am working on a project where I need to set a simple LCD. This LCD use the 'ST7032i' chip to control the LCD. I want to control the LCD over an I²C interface. As controller I use a STM32F4 ...
2
votes
1answer
87 views

I2C ideal pull-up resistor calculation

As part of a test i was given the following question: My attempt gave an incorrect answer. The "correct" answer is 1000 ohm but i am having trouble figuring out why. My interpretation; min value ...
3
votes
5answers
223 views

Why don't on board communications like I2C, SPI, etc. have error checking in general?

Some error checking methods like parity check, checksum, CRC, etc. are used for wired/wireless communications. However, most of the ICs with interfaces like I2C, SPI, etc. don't use an error checking ...
2
votes
1answer
54 views

How do I2C modules select between more than 2 slave addresses?

I am using the TMP112 I2C temperature sensor and noticed that you can choose between 4 slave addresses by connecting the A0 pin to V+, GND, SCL, or SDA. How does the sensor tell between SCL, SDA, and ...
2
votes
0answers
51 views

PIC32MX350F256 Errata , IO open Drain Issue

In one of our Product we used Microchip micro controller “ PIC32MX350F256L”. Attached image is small part of circuit showing uC interfacing with a SPI device. We are using bit banging communication ...
1
vote
0answers
41 views

Two-wire communication (I2C) between Arduino Micros [migrated]

I am attempting to communicate data via I2C between two Arduino Micros, but can't seem to get the "slave" device to detect a Wire.onRecieve() event. Per the specification on this site [http://www....
0
votes
1answer
54 views

Write to reserved registers in I2C

I'm trying to get a MPU-9150 motion sensor running with my FPGA-Board. The problem is that my I2C-master library doesn't support writing single bits. According to the Register Map there a for example ...
0
votes
0answers
21 views

Accessing configuration registers of OV7670 cam on i2c [migrated]

I am a new user of Aurdino and want to interface OV7670 camera with aurdino uno which uses i2c mode of communication.I want to check the configuration of the device control registers and set them as ...
0
votes
0answers
46 views

No clock signal on SCL pin of PIC16F1618

I have been trying to configure I2C on PIC16F1618 microcontroller. I am using MPLAB X IDE, along with xc8 compiler. The MSSP code is being generated through MPLAB code configurator. I have set the ...
3
votes
3answers
92 views

GPIO esd protection

I came across NXP app note highlighting esd protection for GPIO pins. I found two different schemes for digital IO and I2C as given below: As far as I know, I2C pins are same as Uni-directional ...
0
votes
1answer
46 views

Differences & Similarities between I2C & SPI Analyzers [closed]

I am learning about I2C and SPI analyzers and want to know about the differences between the two. What is the difference between their functionality and what are the similarities in these analyzers, ...
0
votes
1answer
54 views

Common ground between a current source and a power supply

I want to design a simple circuitry for testing a bench top current source through a load resistor. I want to use MAX9611, and read data through I2C by a micro-controller. The rough circuit schematic ...
0
votes
2answers
121 views

How to calibrate the MLX90616 IR temperature sensor?

I have purchased some Melexis mlx90616 IR temperature sensors. The data sheet states that a calibration “by the customer” is required. By contacting my purchaser I got the answer: "The supplier has ...
-5
votes
1answer
67 views

why dumy write in I2C Read operation [closed]

I am not getting why there is dummy write in read operation. please help me with explanation. thank you,
0
votes
1answer
58 views

I2C to IrDA - any pitfalls?

I need to operate a peripheral chip via bidirectional I2C across a significant air gap (30mm) and powered wirelessly. Has anyone done the I2C to IrDA? Any problems? Any better solutions? I want to ...
0
votes
0answers
25 views

Nexys4DDR temperature sensor reading code error

I am trying to read the temperature sensor on my Nexys4DDR board using i2c protocol. My code is outputting all of the leds as 1, thus giving me the default value. Where am I going wrong? ...
1
vote
4answers
82 views

Can I2C be used with momentary sensors?

[edit: clarifying the question] Is it possible to see events on I2C slaves, or a functional equivalent? I'm brainstorming a new project. I'm using an ESP-12F as a main logic board to control and ...
1
vote
1answer
63 views

MPU6050 won't ACK

I'm trying to get my MSP430 to talk to a MPU-6050 sensor via I2C. If anyone can spot-check this hardware and see if there's a problem there, I'd be grateful. The resistors are connected to the red ...
-6
votes
1answer
87 views

How does I2C work? [closed]

WARNING: I HAVE NEVER DONE I2C BEFORE. Hi. I need to connect 2 I2C devices to a PIC microcontroller with a single I2C port. I saw this answer where two I2C devices were connected to an Arduino. ...
0
votes
0answers
56 views

Can't get I2C to work with DS3231 and MSP430 due to hanging issues

I am currently using an MSP430G2 processor. I am trying to get I2C communication between it and a DS3231 timer chip to work properly. ...
0
votes
1answer
43 views

How do you implement an Energia interrupt handler?

So, I have an application that needs to be very conservative with the power. I use the suspend() command to go into LPM4 and wait for an interrupt to occur. During the interrupt, I attempt to ...
4
votes
3answers
190 views

I2C communication won't start unless SDA pullup resistor is reinserted

I'm working on a project where a PIC12LF1552 microprocessor is using I2C to talk to a TMP75 temperature sensor. Like the title says, a very strange issue keeps happening. Overview Every time I ...
0
votes
2answers
29 views

I2C ADC IC for many components located separately?

my first question in this page :) The sensors I use give analog signals, so I want to translate them all to I2C, but I can't find IC's that allow me to give them any desired address, I find only with ...
1
vote
3answers
83 views

Using CAN bus tranceivers with custom data link layer

We needed a noise immune, low cost, multidrop, multi master (realtime and distributed) protocol and there is only CAN bus seems to meet with these requirements. Since there are no can controllers (...
0
votes
1answer
78 views

Can a slave i2c IC prevent the master from pulling the the signal low?

I have an MSP430F6659 connected to a ISO1541 via I2C with 1.5K pull-ups. The I2C bus is through wire instead of PCB trace so I'm able to swap out identical PCBs with the ISO1541 ICs. One of these ...
1
vote
1answer
180 views

I2C protocol between PIC32mx and Arduino Uno

I am implementing a way to transfer data using I2C protocol between PIC32mx and Arduino Uno. I've decided to establish PIC as master and Arduino as slave. I passed by all the definitions and configs ...
0
votes
2answers
82 views

Using two pressure sensors with same address over I2C

I'm a novice programmer and I have recently purchased the SparkFun Pressure Sensor Breakout - MS5803-14BA and used it to take pressure readings quiet easily with the sample code provided and an ...
0
votes
0answers
58 views

Why does MSP430G2553 get stuck on Transmit()?

I've been banging my head against the wall for days trying to get my LaunchPad to work with Code Composer Studio doing some very simple I2C. I have tried several examples found on the internet and ...
0
votes
1answer
91 views

Design for Multiple I2C slave devices

I'm doing a PCB in which I'm using the Beagle Bone Black to interact with multiple I2C devices. I have attached a schematic. Out of the many I2C devices, I'm connecting some using TI's I2C switch ...
2
votes
1answer
98 views

i2c undefined symbols on compile MPLab XC8

I am trying to compile a simple I2C program for a PIC18F45K22 using MPLab XC8 compiler. I am getting the error: :0: error: (500) undefined symbols: apparently relating to _WriteI2C1, _ReadI2C1 ...
-1
votes
1answer
145 views

How can I connect dozens of sensors of the same address to one i2c bus?

I want to connect dozens of i2c sensors of the same type to one arduino. Reprogramming the address is unfortunately not possible for all the sensors. I will illustrate what I mean with the following ...
1
vote
2answers
63 views

I2C level shifting to multiple voltages inside a BMS

We're building a BMS that has a micro on each cell in the pack. I know this isn't standard and the issues that come with it, however the pack isn't a standard layout, and the benefits out weigh the ...
2
votes
1answer
92 views

Assign I²C address to multiple devices on the same bus

I've got a couple of ADCs on the same I²C bus, which all default to the same address. My first instinct tells me to use an I²C multiplexer like the TCA9544A but that would require sending a byte to ...
1
vote
1answer
52 views

Can I requst data too quickly from an I²C ADC?

I'm getting some pretty noisy data from a 12-bit I²C ADC (MAX11617 to be precise). Though it's most likely some very sub-optimal board layout that's introducing a lot of noise to the analog signal, I'...
-2
votes
1answer
53 views

how do you typically tie the address pins and WP pin of I2C device? Do these lines need a pull-up/down resistor or just tied directly [closed]

how do you typically tie the address pins and WP pin of I2C device? Do these lines need a pull-up/down resistor or just tied directly.
3
votes
1answer
76 views

Unwrapping measurements from Adxl345 accelerometer

I am trying to read acceleration values from a ADXL345 via I2C. I've successfully configured the accelerometer with a resolution of 16G. Test 1: 180° rotation along the y axis in 16G resolution. The ...
0
votes
3answers
97 views

I2C data line not having correct voltage levels

I've been working on a project with a EFM8UB1 development board and ATECC508 I2C peripheral. Everything works fine but I'm having problems with I2C when moving to a PCB. Here is a trace of the clock ...
0
votes
0answers
59 views

AR1020 correct I2C communication protocol

i have a problem in the right sequence of I2C communication protocol to communicate with the attached device AR1020 Microchip touch controller so does any one have the idea of the correct sequence ?...
1
vote
2answers
51 views

I2C bus multiplexing issue

I am seeing an unexpected side effect, and could use some pointers. I am working on a project which uses five TCS34725 color sensors. These sensors are being interfaced via I2C on a TI F28069M DSP ...
3
votes
3answers
76 views

Groovy i2C/SPI peripherals for education?

I'm helping someone teach an embedded programming course at my university, and he's starting to cover i2C in class. SPI is next. We're trying to come up with a groovy, easy-to-interface, low-cost i2C/...
0
votes
1answer
43 views

I2C Master communication with a Ten bit slave

I have a doubt related to 10-bit mode of I2C protocol for multiple transactions with repeated start: I would like to know how an i2c master / slave has to be designed to support 10 bit addressing for ...
0
votes
1answer
72 views

STM32F303VC I2C works in Debug mode only [closed]

I am interfacing HDC1000 with STM32F303VC. My I2C code works in Debugging mode only. Other Blinky and UART code works properly. Write works perfectly but, Read function code stuck here: ...
0
votes
1answer
86 views

How to make SirfStar IV chip operate as I2C slave only?

I bought a GPS that has SirfStar GSD4e chipset inside. I see with the logic analyser that when in I2C mode it is writing to the bus. I understand by that that it is in master mode. How can I make it ...
1
vote
1answer
77 views

TCA9548A I2C switch register functionality

I'm developing a little program to control the TI DRV2605LEVM-MD evaluation module, similar to the TI Haptics Control Console, but specific for this board. It consists of a MSP430 microcontroller, a ...
1
vote
1answer
99 views

Programming MSP430G2553 with Raspberry Pi 2

So, i want to program a msp430g2553 microcontroller with raspberry pi 2. Since i don't want to use any IDE i would like to do it with clean C and terminal, without any external libraries like ...
5
votes
1answer
98 views

I2C slave not acknowledging consistently

I'm trying to communicate with a Cypress CapSense module, model CY8CMBR3106S. During initial testing, I used Cypress's CY3240-I2USB USB-I2C bridge, which works perfectly. I then moved to an Arduino ...
-3
votes
1answer
226 views

Software i2C communication protocol “MikroC for Pic” halting problem

I work with Pic16f688 , and i do a soft i2C MikroC for pic compiler does not supply its libraries functions code this is the whole code i use for MCU ...