Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PWM for MCU without using Timer Interrupt

Status
Not open for further replies.

masteryodo

New Member
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
 
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
 
Status
Not open for further replies.
Back
Top