xmos / fwk_io

I/O Framework
Other
2 stars 11 forks source link

HIL I2C SCL Doesn't seem to run at 400kHz #6

Closed chrisc-xmos closed 2 years ago

chrisc-xmos commented 2 years ago

System information

Describe the current behavior Observing SCL on a scope, the SCL cycle time seems to be around 2.8us (~350kHz) not 2.5us.

Describe the expected behavior The I2C interface operates correctly but at slightly lower than maximum speed.

Standalone code to reproduce the issue This is observed whilst running the example code in lib_ssds1306: https://github.com/xmos/lib_ssd1306/tree/develop/example/xcore SCL can be observed on the Pi header

ed-xmos commented 2 years ago

I wonder if this is related to https://github.com/xmos/xcore_sdk/issues/491?