Skip to content

Output frequency 0.25% off on AVRs #201

@tomcombriat

Description

@tomcombriat

Hi,
Just reporting here something that has been said on the forum: when playing a simple oscillator at a given frequency on an AVR board, the output is slightly off, to be precise it is too low by 0.25% from my tests.

This is not a lot, but it is hearable when playing when other very in-tune digital instruments.

Looking at the timer for AVR source code:

Timer1.initializeCPUCycles( F_CPU / AUDIO_RATE,

should only be off by (16e6/32768 - int(16e6/32768))/32768 = 0.0576%, five times less!

So if anyone has an idea!

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