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.

Question about I2C interface

Status
Not open for further replies.

NTFS

Member level 3
Joined
Apr 6, 2004
Messages
66
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
565
Dear friends

I want to do a project that has two atmega32, one of them should connect to PC via rs232, and the two AVR micro have to transfer data to each other, so there for one micro rs232 pins has used, I connect them via I2C (SDA & SCL), and design its PCB.

But now I doubt that does it work? because the micros are not in same board and there is 1 meter distance between them.

is my design correct? I2C interface can transfer data in this case or it will be noisy?


Thanks in advance
 

assign one of them controller as a master, and the other as a slave
 

I mean because they are not in same board and there is one meter distance between them (by cable), will it works? (because of noise, drop voltage,...)
 

In addition to SDA/SCL, don't forget the ground.
Pull-up resistors on one side only.
 

are you using the TWI?
You can also use SPI since the avr has a hardware SPI interface.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top