PropBASIC I2C. What is the default speed?
Mickster
Posts: 2,693
in Propeller 1
All I see is multipliers but no base.
Comments
Basically, where g_lFreq is clkfreq and the g_I2CSpeed is the speed variable the algorithm seems to be:
Edit: The default speed seems to be 200kHz.
Edit: BTW, I don't intend to be writing to the EEPROM and my I2C devices are other microcontrollers that won't be communicating until well after boot-up.
Case in point: a customer in the escape room business wanted to add an I2C LCD and I2C 7-segment display to an HC-8+ controller that extends the EE I2C buss with a buffer. It all worked fine until I went to program the EEPROM, then I got a fail message. When I checked the device specs they were only capable of 100kHz I2C clock speed. My guess is that the fast clock was causing them to output errant 0s while the EEPROM was being written to and verified, causing the failure. The same thing happened on boot up.
These devices could run I2C, SPI, and serial, hence were not as fast as a native I2C device. You will have to test your other microcontrollers (my devices had Arm variants in them). I tested some LCDs with standard I2C chips (PCF8474x and MCP23008) and neither bothered the programming or boot sequence.
Lying in bed with my lil lady, she got curious and Googled you...I think she fancies you :swear: