I am a little confuse where to post my questions. The categories are not very explanatory.
I am using an UNO rev3.
It looks to me as though the millis() function uses timer 0.
I need to use all six of the UNO's PWM outputs but if the millis() function uses timer 0 then only 4 PWM outputs are available for projects?
Can I use timer 0 PWM if millis() is not used or does millis() use timer 0 in any case, whether I use it or not.
I need to reconfigure the timers to suite my PWM requirements.
Timer0 runs millis() off its overflow interrupt, while PWM works using the Output Compare hardware of the timer. That means you get millis() and analogWrite() functionality at the same time.
However, if you're using custom PWM (by manipulating the timer control registers to change PWM frequency or resolution) (instead of just using analogWrite()), then you WILL break millis()
It called Timer/Counter X (x = 0, 1, 2) Module (TC X) in ATmega328P MCU. It can be operated either as Timer or Counter with th ehelp of the TCCR1B Register.
1. TC1 is said to be working as "Timer 1" when the driving pulse of TCNT1 Register (clkTC1) ia taken from internal oscillator (Fig-1) with TC1Clock Prescaler.