Yahoo Groups archive

AVR-Chat

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

Message

Re: Help with Attiny project

2006-09-12 by Richard Cooke

Hi Mark,

So basically I would start the timer when the first pulse comes in
stop it when it goes low.  That will give me a rough idea how many
timer "ticks" elasped for the first 2000us pulse.  I then use that
value for the rest of the pulses.  

I'm not familar with RC5 but I'm happy to hear it can be done with an
Tiny11.  I like the cost of that chip but my assembly is pretty rusty
and I can use C on the Tiny13 for not too much more money.

Thanks,

Richard
--- In AVR-Chat@yahoogroups.com, "Mark Jordan" <enki@...> wrote:
>
> 
> 	I have used that approach to decode RC5 frames from an IR receiver 
> on a Tiny11 running with the 1.2MHz internal oscillator.
> 	Worked 100%.
> 
> 	Mark Jordan
> 
> 
> On 12 Sep 2006 at 15:59, Larry Barello wrote:
> 
> > Look for ceramic resonators with built in capacitors (three terminal
> > devices) at digikey.  They work pretty well.
> > 
> > It seems with a little thought that the pulses could be
discriminated using
> > the internal oscillator.  Use the first pulse to "calibrate" the
clock with
> > upper and lower bounds for "valid" and then use the calibrated
values to
> > measure the remaining pulse on/off periods.  The internal
oscillator will be
> > extremely stable over a couple second period.  
> > 
> >

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.