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
67
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
576
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
 

drbizzarow

Advanced Member level 1
Joined
May 24, 2006
Messages
416
Helped
25
Reputation
50
Reaction score
15
Trophy points
1,298
Activity points
3,653
assign one of them controller as a master, and the other as a slave
 

NTFS

Member level 3
Joined
Apr 6, 2004
Messages
67
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
576
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,...)
 

waterman

Member level 5
Joined
Mar 27, 2002
Messages
80
Helped
2
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
562
In addition to SDA/SCL, don't forget the ground.
Pull-up resistors on one side only.
 

ctownsend

Advanced Member level 2
Joined
Nov 27, 2004
Messages
575
Helped
93
Reputation
188
Reaction score
63
Trophy points
1,308
Location
Canada
Activity points
3,671
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

Top