Re: [AVR-Chat] Speed of execution
2009-02-24 by John Samperi
At 07:43 AM 25/02/2009, you wrote: >GICR |= (0<<INT0)|(1<<INT1); // Disable INT0, Enable INT1 Remember that 0<<xx does NOTHING. :-) You need to disable INT0 with GICR &= ~(1<<INT0); Then enable INT1 or set up a mask in a uint8_t with the bits you want and then GICR = mask; Oh what a tangled web we weave when we first plan to use C.... Regards John Samperi ******************************************************** Ampertronics Pty. Ltd. 11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA Tel. (02) 9674-6495 Fax (02) 9674-8745 Website http://www.ampertronics.com.au *Electronic Design * Custom Products * Contract Assembly ********************************************************