Skip to content

Using boards faster than 30MHz #1

Open
@lucien-laborderie

Description

@lucien-laborderie

Hello,
I'm currently working with a Teensy 4.0 and a 4051 to read height pushbuttons, and I came across a bug using this library :

When pressing a button, multiple channels read as pressed, however the bug disappears when the sketch is loaded with the 24MHz clock speed.
It seems like the board is too fast for the Mux, which doesn't have the time to switch between inputs. The bug disappeared when adding a 1 millisecond delay in Mux.cpp, in the setChannel function, which seems to confirm this.

I would like to share my sketch without other people having to modify the library, are there any ways to do that ?
Let me know your thoughts on this !

(I'm French so please excuse me for any weird phrasing or mistakes...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions