kichapi
Junior Member level 2
hai,
I used pic 16f877a for generate 50hz square wave pwm output. I used crystel 20mhz.but i have some doubt in PR2 -calculation please help me
1)Pwm period = [(PR2+1)] x 4 x 20Mhz x Time prescale value
1/50 =[(PR2+1)] x 4 x 20mhz x Time prescale value
2) Pwm duty cycle=(CCPR1L:CCP1CON<5:4>) x Tosc x (Time prescale value)
please help this calculation
Please help these two calculation
I used pic 16f877a for generate 50hz square wave pwm output. I used crystel 20mhz.but i have some doubt in PR2 -calculation please help me
1)Pwm period = [(PR2+1)] x 4 x 20Mhz x Time prescale value
1/50 =[(PR2+1)] x 4 x 20mhz x Time prescale value
2) Pwm duty cycle=(CCPR1L:CCP1CON<5:4>) x Tosc x (Time prescale value)
please help this calculation
Please help these two calculation