Hai friends,
i m fresher in embedded field.
I have some doubts in PWM pulse generation in PIC16f877a microcontroller.
i need the details about duty cycle and period.
How to configure the values.
i don't think there should be any problems with PWM of pic
you should better study its data sheet and data sheet of mid range family of pic microcontrollers.
they can be easily obtained from microchip site
pwm is concerned with Timer 2
by changing value of PR2 register you can change the duty cycle
duty cycle is nothing but... in a given pulse cycle.... duty cyle is ration of time when pulse is high to the total time of pulse cycle...,
period is nothing put one complete cycle after which signal repeates.
If i am using an AT mega 64 controller do i need to have any extra hardware to generate PWM..?? (PWM would be D to A ?? )
I am asking this cause I don't have much about this concept but got to know that PWM can be used to generate melody sounds( i.e. sounds like ringtones etc..) from a speaker or siren connected with the controller..
Other way is to On/Off the the speaker to generate some sound but these won't provide melodious sound..
On the software part what are things that we need to do.. i got to know that we can use 2 timers to control.. Can anyone provide me with any refrence like a weblink or a document that can give me an idea abt how to implement it..??
Thanks forur reply.
Actually, by changing the value of PR2 register, we can change the period.
But what value will be loaded in CCPR1L register.
Thats my doubt.
Thanks in advance.