![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| 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 | |
| |
| | (permalink) |
| 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 | |
| |