50 HZ PWM from PIC 16f873

Thread Starter

babuchittilappilly

Joined Nov 10, 2006
1
I am working on PIC 16f873

Pl help me to to generate code for 50Hz PWM. I used the formula in the dta sheets.BUt i Found that it canbe used upto 600HZ

Pl help Me
 

andig

Joined Oct 1, 2006
1
Hi,

You cannot use the Hardware PWM modules to generate a 50Hz PWM signal. Use your timer instead to interrupt at every 10ms for every half cycle. In the ISR decide which channel to fire. Use another variable (0-to-10ms) timebase to shut the firing output. You thus get the PWM @ 50Hz. What is choice of development ? ASM, C, Basic ???? I may find some time to post some sample codes.

Regards

Sougata Das
Kolkata - India
 
Top