Hello and thanks always.
Some time ago, I finished and you helped me finishing a project dealing with PWM.
Now I would like to ask something related to this.
We all know the theory of PWM, that through changing the duty cycle we can provide something akin a analog value through only digital outputs. For example I changed the brightness of a LED by connecting it to a digital pin outputing PWM and controlling its duty cycle. So far so good
But what happens if I change the other parameter: the period of the PWM signal??? What effect will it have on the load??
----------------------------------
(I ask this because I was using the internal oscillator with Fosc = 1MHz . But now I am going to use a crystal and through several postscalers the Fosc=48MHz.
Now, PWM Period= [(PR2+1)].4.Tosc.(Tmr2prescale) so PWM is gonna change too...
Some time ago, I finished and you helped me finishing a project dealing with PWM.
Now I would like to ask something related to this.
We all know the theory of PWM, that through changing the duty cycle we can provide something akin a analog value through only digital outputs. For example I changed the brightness of a LED by connecting it to a digital pin outputing PWM and controlling its duty cycle. So far so good
But what happens if I change the other parameter: the period of the PWM signal??? What effect will it have on the load??
----------------------------------
(I ask this because I was using the internal oscillator with Fosc = 1MHz . But now I am going to use a crystal and through several postscalers the Fosc=48MHz.
Now, PWM Period= [(PR2+1)].4.Tosc.(Tmr2prescale) so PWM is gonna change too...