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.

connecting 3 atmega 32 ???

Status
Not open for further replies.

gameelgamal

Member level 5
Joined
Dec 14, 2006
Messages
85
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Egypt
Activity points
1,888
hi
I want to connect 3 avr (atmega 32) one master and the other is slave to exchange data ,what protocol i should use ,i want to use i2c so if any one could help me because i try searching but every post deal with linking avr with eprom.
and what is the different between i2c and i2c(2 wire)
because at codevision they are two different things
ps: i use codevision
 

gameelgamal said:
hi
I want to connect 3 avr (atmega 32) one master and the other is slave to exchange data ,what protocol i should use ,i want to use i2c so if any one could help me because i try searching but every post deal with linking avr with eprom.
and what is the different between i2c and i2c(2 wire)
because at codevision they are two different things
ps: i use codevision

Presumably you've read Atmel's app note 311? If not, that might give you a bit of a nudge in the right direction.

As far as Codevision goes, the I2C tab in CodeWizard is used to configure a bit-banged I2C interface for those AVRs which don't have hardware I2C interfaces, whereas the 2 Wire (I2C) tab is used to configure the hardware interface present on some AVRs. So yes they're different in terms of how the I2C interface is implemented on the AVR, but they're the same thing in terms of what signals get sent/received over the I2C wires.
 
can any one support me with c example for sending and recieving data via i2c
 

Check out the tutorial at avrfreaks.net

Nandhu
 

in AVR, the i2c protocol is named TWI and for more information read the M32 datasheet.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top