You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With pico-sdk v1.1.0, the actual values used for tLOW are lower than the minimum values specified in the specification (1):
Symbol
Parameter
Standard-mode
Fast-mode
Fast-mode Plus
Unit
tLOW
LOW period of the SCL clock
4.01
1.0081
0.41
μs
tHIGH
HIGH period of the SCL clock
6.0
1.496
0.6
μs
The corresponding values written to the IC_FS_SCL_LCNT and IC_FS_SCL_HCNT registers are:
Symbol
Register
Standard-mode
Fast-mode
Fast-mode Plus
lcnt
IC_FS_SCL_LCNT
500
126
50
hcnt
IC_FS_SCL_HCNT
750
187
75
This isn't resulting in any issues with the I2C devices that I'm using with pico-sdk but it would probably be worth changing. Perhaps the values written to lcnt should have been written to hcnt and vice versa? See here.