[McHUG] Arduino Timer help

John Yost k3yjp at yahoo.com
Tue Sep 21 19:38:19 EDT 2010


Hi Pete,

Nothing yet.  If I let the timers just run to the max and overflow they work ok, 
but I want to set the TOP to a lower value than MAX to get the interrupt at the 
interval I want.

Thanks for a reply
John
K3YJP



----- Original Message ----
From: Peter Morton <mortonph at comcast.net>
To: MicroController Ham User Group - Physical Computing for Ham Radio 
<mchug at mailman.qth.net>
Sent: Tue, September 21, 2010 7:21:07 PM
Subject: Re: [McHUG] Arduino Timer help

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 

______________________________________________________________
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