Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 12th March 2007, 04:19 AM   (permalink)
Default PWM delay

Does anyone know if the two channels of pwm on an 877A can be delayed from each other, or otherwise run at the same frequency , but not fire at the same time.?
i'm working on a boost converter with two fets , that i would like to fire at different times, but run at the same frequency.
williB is offline  
Old 12th March 2007, 05:48 AM   (permalink)
Default

Due to the fact that there is only one timer2 and one PR2 register, I don't see how you could get to trigger at different times unless you invert one of the outputs (or P channel fet) so one fires at the beginning of the period and the other toward the end. If you switch to the 887 then having an inverted output is available as standard.

Mike.
Pommie is online now  
Old 12th March 2007, 06:56 AM   (permalink)
Default

Thanks for your input .
i suppose a simple AND gate may provide the needed delay clocked by the osc clock anded with the pwm output might work
i just want to give the system time to recover and maybe catch the upswing of the oscillation from the coils.
williB is offline  
Old 12th March 2007, 07:32 AM   (permalink)
Default

A really crazy idea would be to have one of the PWM modules trigger an interrupt that changes a different output pin. The IRQ latency providing the necessary delay. Whether this would work really depends on the PWM frequency.

Mike.
Pommie is online now  
Old 13th March 2007, 04:10 AM   (permalink)
Default

I used several inverters and it seems to work
i havnt scoped the delay yet
williB is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Stepper motor control with PIC16F84A netbug Micro Controllers 71 30th August 2008 01:07 PM
Log Data using pic16F877A williB Micro Controllers 32 31st October 2006 10:28 AM
Random Numbers for PIC PDubya Micro Controllers 12 8th July 2006 11:01 PM
Delay routine not working gregmcc Micro Controllers 6 18th September 2005 06:23 PM
Effects stephenpic Micro Controllers 6 19th January 2004 12:57 PM



All times are GMT. The time now is 07:24 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker