[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] external interrupt sample code
From: |
Brian Dean |
Subject: |
Re: [avr-gcc-list] external interrupt sample code |
Date: |
Thu, 15 Apr 2004 00:38:26 -0400 |
User-agent: |
Mutt/1.5.4i |
On Wed, Apr 14, 2004 at 10:02:42PM -0600, E. Weddington wrote:
> EICRA = BV(ISC01);
> EIMSK = BV(INT0);
Also, make sure the pin listening for the interrupt is configured as
an input pin:
DDRD &= BV(PD0);
If you want the pull-up enabled, write a '1' to the PORT bit:
PORTD |= BV(PD0);
-Brian