Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4819

MicroPython • rp2350 i2c target frequency

$
0
0
I just got my RP2350 Pico 2 board today and tried an I2C bus scan for devices.

Code:

import machinei2c=machine.I2C(1,sda=machine.Pin(6), scl=machine.Pin(7), freq=1000000)devices = i2c.scan()
I am using a 1k Ohm external pull-up on SDA and no external pull-up on SCL. I measure 516kHz when I request 1MHz. If I request 800kHz, I get 432kHz (about half of the frequency that I request). Is this a MicroPython issue or a known errata with RP2350?
Thanks.
Screenshot from 2024-09-10 17-01-17.png

Statistics: Posted by chipace — Wed Sep 11, 2024 12:20 am



Viewing all articles
Browse latest Browse all 4819

Trending Articles