prabu sez, > Tool:ICCAVR
Aiiiggggghhhh! Back foul spawn of Satan! (heh) > I am using timer1 for the delay of 1 second. > > So the value for the timer TCNT1 (0x1E84).( Clk/1024 > prescale). > > My intention is I have to generate 1 sec periodic delay. > > AT every one sec the portc PC6 will be toggled ......(LED > connected to this pin).The LED was not toggling .. Potential Ans: > void port_init(void) > { > DDRC = 0x00; <--- look here > PORTD = 0x00; > DDRD = 0x00; > PORTE = 0x00; > DDRE = 0x00; > PORTF = 0x00; > DDRF = 0x00; > PORTG = 0x00; > DDRG = 0x00; > } Mr Foo --- Keeping it crusty since 1984 _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list