Skip to content

Question of SPI Clock settings #4

@mjs513

Description

@mjs513

Think you have an error in the clock setting for your SPI. In looking through the code you have the clock set at 4mhz with a setting of 21. The only way to get 21 for a 4mhz clock is if the F_CPU is at 84mhz. This is what the due is set at. If you use the SAM3s1a which is 64mhz the setting should be 16, I believe. For 5.33 it should be around 13.

Respectfully
Mike

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions