PaulS
Well-known member
While testing the FreqCount feature in another thread with high frequencies [50-75 MHz], I probably ran into a limitation/constraint of the analogWriteFrequency() function.
This code produces a 75MHz signal on pin 8:
But apparently I don't understand analogWriteFrequency very well: when I set the frequency to 60000000 or 62500000 or 65000000, it also outputs 75 MHz. Setting the frequency 55000000 outputs 50 MHz.
I read this page, but I'm probably missing something.
Perhaps someone on this forum can shine a light on this?
Thanks,
Paul
This code produces a 75MHz signal on pin 8:
Code:
void setup() {
analogWriteFrequency(8, 75000000);
analogWrite(8, 128);
}
void loop() {
}
But apparently I don't understand analogWriteFrequency very well: when I set the frequency to 60000000 or 62500000 or 65000000, it also outputs 75 MHz. Setting the frequency 55000000 outputs 50 MHz.
I read this page, but I'm probably missing something.
Perhaps someone on this forum can shine a light on this?
Thanks,
Paul