[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] 16 bit Timer Issue.
From: |
Pink Boy |
Subject: |
Re: [avr-gcc-list] 16 bit Timer Issue. |
Date: |
Mon, 5 Jan 2009 12:16:26 -0800 (PST) |
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