As one option you could use the internal RC oscillator set to 4 MHz
and use OSCCAL to adjust the clock to 4 020 000 Hz.
Or any possible multiplier of 670KHz that can be divided by 2, to get a 50% duty cycle.
This way it is possible to generate 670 KHz either by software or timer.
(If the rest of the code can function correctly with the change, 8.04 MHz would be an other possibility.)
Others might have a different solution.
Hubert
↧