From: Cliff L. Biffle <cliff@bi...> - 2006-06-30 04:42:51
So, I've got a servo library driving all six PCM channels on the
Well, attempting to drive. PCM channel 1A seems to do nothing.
Here's some background.
I've taken Dave's Simple-Servo example and modified it to run timer 1
instead of 3. (Well, actually, I had it running both timers, but I
backed that code out to try to isolate my problem.) Channels 1C and
1B seem to work fine, but 1A is held at logic one and fails to perk
my frequency counter or servo.
(Specifically, 1A is being held at 3.72V above ground, which is the
same state as the timer outputs I'm not driving.)
I've verified the connection between my header and the pin on the AVR
according to the schematic; everything seems fine.
Every channel works but this one, which seems phenomenally weird to
me. I can post source if needed, but before I pollute the mailing
list, I was wondering if anyone has any top-of-head suggestions.
Might there be a fuse I need to blow or some such?
-Cliff L. Biffle
From: Dave Hylands <dhylands@gm...> - 2006-06-30 05:01:23
> Every channel works but this one, which seems phenomenally weird to
> me. I can post source if needed, but before I pollute the mailing
> list, I was wondering if anyone has any top-of-head suggestions.
> Might there be a fuse I need to blow or some such?
I think I found the problem. You sent me the changes to apply to
Timer.h, and I saw this:
#define TIMER_1A_PIN 5
#define TIMER_1A_MASK ( 1 << 4 )
The 4 should be a 5. I checked in an update...
Vancouver, BC, Canada