Hello ,
I'm a beginner to Microcontrollers .
I've chosen Atmel AVR and i've been playing with them for a few days now.
Currently using the atmega48
Question #1 :
Why are there special 'modes' for PWM ? Why do I have to activate some 'fast pwm' registers or 'waveform generation mode' or those things ?
Is it not practical to just assign whatever output (PORTB for example) and use PWM using _delay_ms() ?
Edit: Or does "PWM Mode" make things simpler in a way ?
Also , what is meant by a 10 bit PWM ? I'm assuming that it means a duty cycle resolution of about 0.1% hmm?
Thanks in advance for the answers
I'm a beginner to Microcontrollers .
I've chosen Atmel AVR and i've been playing with them for a few days now.
Currently using the atmega48
Question #1 :
Why are there special 'modes' for PWM ? Why do I have to activate some 'fast pwm' registers or 'waveform generation mode' or those things ?
Is it not practical to just assign whatever output (PORTB for example) and use PWM using _delay_ms() ?
Edit: Or does "PWM Mode" make things simpler in a way ?
Also , what is meant by a 10 bit PWM ? I'm assuming that it means a duty cycle resolution of about 0.1% hmm?
Thanks in advance for the answers