Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:17 24 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : I2C Slave Example

Author Message
crackerjack

Senior Member

Joined: 11/07/2011
Location: Australia
Posts: 164
Posted: 04:38am 24 Sep 2011
Copy link to clipboard 
Print this post

I am experimenting with the I2C functionality recently introduced to MMBasic and have had some success with the Maximite operating as the I2C master. I am trying to get the MM to now act as a slave and have not had much success. Does anybody have any code examples or tips on this, particularly relating to addressing and address masking in Slave mode.

I have a Bus Pirate (a very handy bit of kit, by the way) which I am using as the master/I2c sniffer for my experiments...

Thanks in advance,

Lance.
 
crackerjack

Senior Member

Joined: 11/07/2011
Location: Australia
Posts: 164
Posted: 01:20am 25 Sep 2011
Copy link to clipboard 
Print this post

It would seem that the SDA and SCL lines were being held low because I was not actually executing an I2CSSEND in the appropriate SEND interrupt. After sending a single byte of data in the SEND intterupt routine, the lines return to high and things are now making a bit more sense.
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024