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

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

RE: [avr-gcc-list] Glitch on GPIO


From: Jahagirdar Gopal-AGJ005
Subject: RE: [avr-gcc-list] Glitch on GPIO
Date: Mon, 27 Feb 2006 19:48:42 +0800

Thanks Galen.
That it self was the problem. Now the code is working fine after that
fix.
-Gopal

-----Original Message-----
From: Galen Seitz [mailto:address@hidden 
Sent: Friday, February 24, 2006 9:45 PM
To: Jahagirdar Gopal-AGJ005
Cc: address@hidden
Subject: Re: [avr-gcc-list] Glitch on GPIO 

I think that is the problem.  The data register has an initial value of
0x00 after reset.  When you configure a GPIO as an output first, the
initial value of 0 gets driven on the pin.  The pin will continue to
drive
a zero until the corresponding data register bit is written with a 1.
Switching the order should solve your problem.

galen




reply via email to

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