Re: [avr-gcc-list] different behavior on port A and port C

2013-12-07 Thread cfo
On Sat, 07 Dec 2013 11:32:09 +0100, dfx wrote: > that on Port A works perfectly and generates a square wave on all pins. > > The same program, on port C generates the square wave only on pins 0, 1, > 6, 7 while the others remain fixed. > > The processor is not dead (I've changed 3 processors), a

Re: [avr-gcc-list] different behavior on port A and port C

2013-12-07 Thread Joerg Wunsch
dfx wrote: > The same program, on port C generates the square wave only on pins 0, 1, > 6, 7 while the others remain fixed. The other pins are assigned to JTAG by default. Either turn off the JTAG fuse (but then, you could not use JTAG for programming anymore either), or dynamically disable it

[avr-gcc-list] different behavior on port A and port C

2013-12-07 Thread dfx
I have a simple program for ATmega324PA: #include #define F_CPU 2000UL #include int main (void) { DDRA = 0xFF; while (1) { _delay_ms (1); PORTA = 0X00; _delay_ms (1); PORTA = 0XFF; } that on Port A works perfectly and generates a square wave on all pins. The sam