avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] I need some help I am trying to use interrupts but...


From: David Kelly
Subject: Re: [avr-gcc-list] I need some help I am trying to use interrupts but...sigh!!
Date: Wed, 19 Mar 2008 12:31:40 -0500
User-agent: Mutt/1.4.2.3i

On Mon, Mar 17, 2008 at 09:28:47PM -0700, atifplus wrote:
> 
> so as long as my move variable is 1 2 3 or 4 the interrupt should keep
> sending pulse accordingly but i am not getting anything on portB

>         PORTB |= (0 << PB3)|(0 << PB4);

Do you really believe you can OR a 0 into bit locations PB3 and PB4?

This is what I think you intended:

        PORTB &= ~( (1<<PB3) | (1<PB4) );

-- 
David Kelly N4HHE, address@hidden
========================================================================
Whom computers would destroy, they must first drive mad.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]