[McHUG] Arduino Timer help
John Yost
k3yjp at yahoo.com
Mon Sep 20 20:22:41 EDT 2010
I am trying to adjust a 16 bit timer to count to a value less than the max
xFFFF.
I see examples in sketches for sound generation but can't get them to work
properly.
In one case I want to load TCNT5 (timer5 on a Mega) with 12500, with a prescale
of 64 to get a 50ms overflow interrupt.(hummm, probably can't cause an overflow
but should cause something else to happen)
One method I tried used one of the compare modes but it screwed up a bunch of
pins.
Also tried this on the BBB with no luck there as well.
Any thoughts
thanks
John
K3YJP
More information about the McHUG
mailing list