|
From: | Joerg Wolf |
Subject: | Re: [avr-gcc-list] external interrupt sample code |
Date: | Thu, 15 Apr 2004 11:18:22 +0100 |
User-agent: | Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) |
The line DDRD &= BV(PD0); should be DDRD &= ~BV(PD0); correct ? Brian Dean wrote:
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 _______________________________________________ avr-gcc-list mailing list address@hidden http://www.avr1.org/mailman/listinfo/avr-gcc-list
[Prev in Thread] | Current Thread | [Next in Thread] |