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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…