All Questions
2 questions
7
votes
4
answers
2k
views
Adjust time calculation after Timer0 frequency change
I have an Arduino Nano with an 328P and need all 6 PWM pins.
Thus, I had to adjust the prescaler and WGM Mode of Timer0.
It is now in phase correct PWM mode with a prescaler of 1.
TCCR0A = _BV(...
9
votes
2
answers
4k
views
Does millis() conflict with the PWM pins associated with timer 0?
I've read that the millis() function uses the same timer as a couple of PWM pins.
If you're using those PWM pins, will millis() still return the correct value?