Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 27, 2024, 07:44:55 07:44


Login with username, password and session length


Pages: [1]
Print
Author Topic: Software PWM using Proton  (Read 5649 times)
0 Members and 1 Guest are viewing this topic.
king
Junior Member
**
Offline Offline

Posts: 84

Thank You
-Given: 2
-Receive: 21


Jack of All But Master of One


« 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
Logged
bbarney
Moderator
Hero Member
*****
Offline Offline

Posts: 2429

Thank You
-Given: 405
-Receive: 545


Uhm? where did pickit put my mute button


« Reply #1 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
Logged

Ever wonder why Kamikaze pilot's wore helmet's ?
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC