Hi all,
I thought I was getting the hang of this Atmel programming, but after
dusting things off a bit, I'm stumped again. I have a demo program
from Matthew MacClary at Oregon State that toggles all output pins
every three seconds. Pin 15 is hooked up to an LED on my breadboard,
and when I install his prebuilt .hex file, the LED lights right up and
does its thing.
But when I build the same source and then install my hex file, the LED
never lights up.
To try to isolate the problem, I reduced the main program to just
this:
DDRB = 0xff;
DDRC = 0x7f; /* PORTC has only 7 pins */
DDRD = 0xff;
PORTB = 0xff;
PORTC = 0x7f;
PORTD = 0xff;
return 0; /* PATCH for testing! */
I believe this should set all output pins high. But again, when I
build and install this, nothing; the LED doesn't light up. Then I
tried setting all ports to 0x00, but that didn't work either.