I2C Communications between two 18M2's

Grogster

Senior Member
Have you read the I2C tutorial? I had to read it a few times until it made sense... ;)

MORE INFORMATION ON APPLICATION PLEASE - it's impossible to advise, if we don't know what you are trying to do with your I2C connections and configuration.

When it comes to talking to different PICAXE chips in the same system, I tend to just use good 'ole serial at about 2400 buad is normally quick enough, unless you are moving heaps of data...

I2C tutorial PDF is here:
http://www.picaxe.com/docs/axe110_i2c.pdf
 

Technical

Technical Support
Staff member
How do you suggest I set up two 18M2's to communicate with each other via I2C.
You can't, as for i2c communication you need one master and one slave. M2 parts can only be masters, X2 parts (e.g. 20X2) can be both masters and slaves.

So
20X2 to 20X2 is ok
18M2 to 20X2 is ok
18M2 to 18M2 is not ok

As stated above, serin and serout may be a better choice.
 

westaust55

Moderator
Considering that you are a longer term forum member, then if you have an X1 PicAxe part that may also be used as a Slave i2c part in lieu of an X2 part.
 
Top