Skip to content

something maybe wrong with freq  #2

Description

@Jostarsama

I think you can change it
uint32_t freq_reg = (float)freq * (float)((1 << 28) / FMCLK); // Tuning word
to
uint32_t freq_reg = ((((float)freq * (1 << 28)) / FMCLK) + 0.5); // Tuning word
It is more accurate.

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