Author |
Message |
Topic: 16f877 pwm code problem |
Neo
Replies: 10
Views: 18607
|
Forum: General CCS C Discussion Posted: Mon May 10, 2010 1:40 pm Subject: 16f877 pwm code problem |
I'm trying to make boost converter with Mosfet, and this control circuit dirves mosfet at 100kHz.
I asked that inverted pulse for my friend, he tries static compensation and need to drive 2 mosfets ... |
Topic: 16f877 pwm code problem |
Neo
Replies: 10
Views: 18607
|
Forum: General CCS C Discussion Posted: Mon May 10, 2010 12:28 pm Subject: 16f877 pwm code problem |
Thank you PCM programmer, but i tried my code today and it worked fine ;)
But i have new question, i want to get complemented pulse on other pwm out port. How can i turn first pulse to inverse? |
Topic: 16f877 pwm code problem |
Neo
Replies: 10
Views: 18607
|
Forum: General CCS C Discussion Posted: Sun May 09, 2010 1:26 pm Subject: 16f877 pwm code problem |
Thank you sshahryiar but your code gived same result...
I'll try my code tomorrow in laboratory. |
Topic: 16f877 pwm code problem |
Neo
Replies: 10
Views: 18607
|
Forum: General CCS C Discussion Posted: Fri May 07, 2010 4:44 am Subject: 16f877 pwm code problem |
In Proteus, if I change processors clock time to 20 MHz it works fine (Proteus gives 1mhz), but in reality where I can change processors clock time ?
I think I should tell this processor in progra ... |
Topic: 16f877 pwm code problem |
Neo
Replies: 10
Views: 18607
|
Forum: General CCS C Discussion Posted: Thu May 06, 2010 4:08 pm Subject: 16f877 pwm code problem |
Hi, I am trying to make 100khz pwm signal with 20 MHz oscillator, and I'll change duty with buttons...
I use this calculation : Tpwm=Tosc*4*(PR2+1)*1 => PR2=49
#include <16f877.h> ... |
|