Skip to content

I2C frequency and waveform on Portenta H7 #89

Closed
@rchard-84

Description

@rchard-84

Frequency:
Wire.begin() should default to 100kHz clock for the I2C bus. In the default appears to give 116kHz. Wire.setClock(400kHz) gives 333kHz.

Waveform:
The waveform for the SCL line is not normal. It stays low for <2 mu seconds and then goes high. If frequency was the only problem you'd expect 4.3 mus (half of the period). This may be evidence it's a code issue and not a bungled circuit.

Attached are 2 pics showing scope traces of the SCL (yellow trace) and SDA( red trace). The same code running on UNO (first pic) and another of it running on the Portenta (second pic). UNO is right on frequency and has that nice clock signal shape.

On The UNO
I2C_UNO

On The Portenta
I2C_PortentaH7

Some I2C devices did successfully receive data from the Portenta on the I2C Bus however I couldn't get several sensors to send data back. The same sensors have no issue on the UNO. My sensor connectivity challenge could be related to the waveform issue, I don't know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PortentabugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions