EmbeddedRelated.com
Forums

Multi Processor and/or Multi Master

Started by dmarte October 22, 2009
I need some sample code on how to implement a multi master o multi processor communication either on synchronous serial communication or I2C bus.

I have tried with I2C and I can read and write to eeprom devices successfully. I don't know or haven't been able to communicate 2 o more AVR controllers.

The MCPM mode in the other hand is not clear enough in the datasheet. Besides I haven't found any sample code about communication using this protocol.

I appreciate if you could give me any working piece of code or links to i for this.

Best Regards,
Edwin

See Atmel web site and saerch for smbus communication.
that's all you need.
--- In a..., dmarte wrote:
>
> I need some sample code on how to implement a multi master o multi processor communication either on synchronous serial communication or I2C bus.
>
> I have tried with I2C and I can read and write to eeprom devices successfully. I don't know or haven't been able to communicate 2 o more AVR controllers.
>
> The MCPM mode in the other hand is not clear enough in the datasheet. Besides I haven't found any sample code about communication using this protocol.
>
> I appreciate if you could give me any working piece of code or links to i for this.
>
> Best Regards,
> Edwin
>

Thanks for the pointers.

After finding some I2c Port Expanding ICs I decided to keep with the I2C but no using master/slave multi processor communicaction .

I did many tests with 2 avr trying to figure it out how to transfer data between them. I have no quit yet doing this but I will try it later.

Regards,
Edwin

--- In a..., "interruptcom" wrote:
> See Atmel web site and saerch for smbus communication.
> that's all you need.
> --- In a..., dmarte wrote:
> >
> > I need some sample code on how to implement a multi master o multi processor communication either on synchronous serial communication or I2C bus.
> >
> > I have tried with I2C and I can read and write to eeprom devices successfully. I don't know or haven't been able to communicate 2 o more AVR controllers.
> >
> > The MCPM mode in the other hand is not clear enough in the datasheet. Besides I haven't found any sample code about communication using this protocol.
> >
> > I appreciate if you could give me any working piece of code or links to i for this.
> >
> > Best Regards,
> > Edwin
>