Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Re: low-level interrupt and photodiode

2004-05-07 by Mark Jordan

On 7 May 2004 at 0:32, Graham Davies wrote:

> --- In AVR-Chat@yahoogroups.com, "Phil" <phil1960us@y...> wrote:
> 
> > with a photo transistor, you simply
> > pull it low and take the output 
> > from the emitter.
> 
> I would think you'd need a comparator so that the input to the MCU 
> was a proper logic level and not some analog signal that could spend 
> a lot of time floating around between the thresholds.  Especially if 
> you're expecting it to generate an interrupt.
> 
> Graham.
> 

	So use the AVR internal analog comparator. It can even 
generate a direct interrupt or a timer capture interrupt.

	Mark Jordan

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.