Sonsivri

Electronics => Projects => Topic started by: king on June 21, 2009, 06:49:18 18:49



Title: Software PWM using Proton
Post by: king on June 21, 2009, 06:49:18 18:49
Hi!
  I want to generate Software PWM and the software which I am using is "Proton" and I need PWM  frequency = 20KHZ, please tell me how can i do this.
Device=16f876A ; Xtal=20

I have read Software PWM command detail from proton help and acc. to this;
If a 20MHz crystal is used, then cycle takes approx 1 ms

so,
1 cycle=1ms (Minimum Time)
then,
1cycle frequency = 1KHz (Maximum Frequency)
So, how can I Produce 20khz PWM Frequency as produced through HPWM command.
Please do help me because i need 3 PWM's for 3-phase Induction motor Control
The method of producing Software PWM is also provided by microchip but I don't understand that how to produce.

Regards

King


Title: Re: Software PWM using Proton
Post by: bbarney on June 22, 2009, 01:51:34 01:51
heres a handy site
http://www.micro-examples.com/public/microex-navig/doc/097-pwm-calculator

Posted on: June 21, 2009, 10:46:36 22:46 - Automerged

download the book and read chapter 15
http://www.4shared.com/file/81303734/9946ce6b/Teach_Yourself_PIC_Microcontroller_Programming.html