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 26th February 2004, 09:55 PM   (permalink)
Default PWM for MCU without using Timer Interrupt

Does anyone know how to produce dynamic PWM (according to realtime values being read) using MC68HC05 series micro controllers without using Timer Interrupts ?

- I am already using timer interrupts for other purpose (and tht is high priority task) and I dont have any timing constrain (still got lots of cycles free to use)

task is like..

-read value from sensor
-count % of OnDuty cycle and Off Duty cycle
-generate output on TCMP PIN (PIN 35) (DIPackage)

Thanks
masteryodo is offline  
Old 27th February 2004, 12:54 AM   (permalink)
Default

Check if your controller has a hardware PWM. If it doesn't you should look into getting one that does. With a hardware PWM you just load the timer values for the PWM and the hardware generates the signal without any software intervention.

Brent
bmcculla is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 06:22 AM.


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

eXTReMe Tracker