[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] stumped by my ATmega48 (again)
From: |
joe |
Subject: |
Re: [avr-gcc-list] stumped by my ATmega48 (again) |
Date: |
Fri, 5 Oct 2007 08:23:41 -0600 |
On Oct 05, 2007, at 12:14 UTC, David Kelly wrote:
> When you return the CPU goes thru a crash reset, or something like
> that, I haven't traced the code.
>
> Do something like this ...
OK, I tried this:
int main() {
DDRB = 0xff;
DDRC = 0x7f;
DDRD = 0xff;
PORTB = 0xFF;
PORTC = 0x7F;
PORTD = 0xFF;
int x;
while (1) {
x++;
}
return 0;
}
..hoping that the busywork of incrementing x would keep the compiler
from stripping away the empty loop. But the output still doesn't go
high.
Thanks,
- Joe
--
Joe Strout -- address@hidden
Strout Custom Solutions, LLC