Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

I2c programming between different microcontrollers

Status
Not open for further replies.

getthepolice

Newbie level 2
Joined
Dec 29, 2010
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,293
I had a doubt that can a pic and an atmega be interfaced together using i2c...i am new to this so dont no about it much in detail..:):)
 

I2C is a software engine which should be inbuilt inside any slave so that i2c can be implemented. There should some software running in one of the device. which should have
i2c compatible... without this engine the controllers do not know what is stop bit, start bit, acknowledgement....

if you need two controllers, then go for philips 8 bit controller. the Controller you select should have i2c registers inbuilt, then we say that i2c engine is present
 

So you mean to say that the slave device just needs to have the software engine it doesnt depend which devices you are connecting..i tried to connect a PIC18F4550 and ARDUINO..i.e i tried a simple program where a string is passed from the PIC to ARDUINO to display on the LCD CONNECTED TO THE ARDUINO...but nothing is being displayed..
 

i dont know much of ardunio..... check if both controllers have i2c registers inbuilt.... you can do i2c on 8 bit atmel as you can use port pins as SDA and SCL..... but cannot connect 2 atmel 8051 for i2c implementation.

see if in your controller, there are registers for data scl generation, sda pin, bit arbitration etc,,, if both has it then i think you should do it,
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top