Skip to content

Documentation for speed_in_khz needs updating with its restrictions  #1

@xross

Description

@xross

Not all values of unsigned speed_in_khz can be achieved using the xcore divider. E.g. using 20000 will result in a 12.5MHz clock due to:

unsigned d = (XS1_TIMER_KHZ + 4_speed_in_khz - 1)/(4_speed_in_khz);
configure_clock_ref(cb0, d);

The speed is essentially a "maximum". This needs to be documented as causing confusion with users/support tickets where the data-rate is not as expected.

Suggest even a build warning should be emitted at build time,

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