Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 23, 2024, 04:53:31 16:53


Login with username, password and session length


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

Posts: 315

Thank You
-Given: 1601
-Receive: 52


« on: December 03, 2010, 05:35:58 05: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
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 75
-Receive: 4


« Reply #1 on: December 04, 2010, 04:03:07 04: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
Senior Member
****
Offline Offline

Posts: 296

Thank You
-Given: 309
-Receive: 598


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

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

Posts: 833

Thank You
-Given: 312
-Receive: 392



WWW
« Reply #3 on: December 04, 2010, 10:44:53 10: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: 326

Thank You
-Given: 103
-Receive: 180



« Reply #4 on: January 01, 2011, 03:50:28 15: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