[McHUG] Arduino Timer help

Peter Morton mortonph at comcast.net
Tue Sep 21 19:21:07 EDT 2010


John-

I was just wondering if you got any responses.  Didn't see any on McHug.

I haven't played with the Arduino or ATMEGA for several years and my timer 
expertise was limited then.  Hope you find some help.

-Pete, W3GVX.


----- Original Message ----- 
From: "John Yost" <k3yjp at yahoo.com>
To: "MicroController Ham User Group - Physical Computing for Ham Radio" 
<mchug at mailman.qth.net>
Sent: Monday, September 20, 2010 8:22 PM
Subject: [McHUG] Arduino Timer help


>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
>
>
>
>
> ______________________________________________________________
> McHUG mailing list
> Home: http://mailman.qth.net/mailman/listinfo/mchug
> Help: http://mailman.qth.net/mmfaq.htm
> Post: mailto:McHUG at mailman.qth.net
>
> This list hosted by: http://www.qsl.net
> Please help support this email list: http://www.qsl.net/donate.html 



More information about the McHUG mailing list