Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Timer 1 PWM Esoterica

2006-03-14 by Dave VanHorn

Is there any easy way to stop timer 1 in PWM mode, with the output pin 
high?

I'm using OC1B to generate an output with 100% - 0% duty cycle.

I realize that I could turn off PWM mode entirely, returning the pin to 
a straight I/O.

I could make the turn-off conditional on getting a 0 on the pin 
register, but I'm a little creeped out by that, as it might not always 
dependably read a 1 or 0


What I'm trying to avoid is adding two more states, as "starting up" 
and "shutting down" to my existing "running" and "not running".

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.