![]() |
Forum Index : Microcontroller and PC projects : I2C Slave Example
Author | Message | ||||
crackerjack![]() Senior Member ![]() Joined: 11/07/2011 Location: AustraliaPosts: 164 |
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: AustraliaPosts: 164 |
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. |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |