Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2016, 08:47:48 20:47


Login with username, password and session length


Pages: [1]
Print
Author Topic: pwm complimentary output  (Read 1258 times)
0 Members and 1 Guest are viewing this topic.
max
Active Member
***
Offline Offline

Posts: 223

Thank You
-Given: 602
-Receive: 32


« on: December 03, 2010, 06:35:58 06:35 »

hi friends,

how to convert a pic16f870 single ended pwm output to complimentary
output (push-pull type) using discrete logic?

regards
 
Logged

Fate arrived and made the conscious unconscious It silenced the activity of life.
medik
Newbie
*
Offline Offline

Posts: 34

Thank You
-Given: 64
-Receive: 2


« Reply #1 on: December 04, 2010, 05:03:07 05:03 »

Hi, to get complimentary output, use two op amp, connect in a way that the pwm output will be connected to the + and - of the 2 op amp while 2.5v goes to the other ends of the op amp. I will upload a picture when i get home.
Logged
borberk
V.I.P
Senior Member
*****
Offline Offline

Posts: 298

Thank You
-Given: 309
-Receive: 598


« Reply #2 on: December 04, 2010, 09:22:10 09:22 »

Change code to have output on two pins in oposite phase or use inverter.
Logged
Ichan
Hero Member
*****
Offline Offline

Posts: 840

Thank You
-Given: 312
-Receive: 387



WWW
« Reply #3 on: December 04, 2010, 11:44:53 11:44 »

You need to consider adding dead band control to prevent cross conduction. If you are going to drive mosfets then a mosfet driver like IR2104/84 is a good choice, or change the PIC which have Enhanced PWM feature.

-ichan
Logged

There is Gray, not only Black or White.
tAhm1D
Senior Member
****
Offline Offline

Posts: 336

Thank You
-Given: 103
-Receive: 180



« Reply #4 on: January 01, 2011, 04:50:28 16:50 »

Hi max,
You can't have push-pull output with discrete logic from PWM output of PIC16F870. You have to use the compare module in CCP and use interrupt to obtain push-pull output. Or you could implement the whole thing on software using only the timer.
Logged
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