different behavior on port A and port C

dfx <[email protected]>
Newsgroups gmane.comp.hardware.avr.gcc
Organization dfx s.r.l.
Message-ID <[email protected]>
I have a simple program for ATmega324PA:

#include <avr/io.h>
#define F_CPU 20000000UL
#include <util/delay.h>

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 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), and the port's 
pins are free (unconnected).

What could be the cause of this different behavior of the two Ports?

(The delay function could interfere with the Port C?)

thank you very much

-- 
Domenico



---
Questa e-mail è priva di virus e malware perché è attiva la protezione avast! Antivirus.
http://www.avast.com

_______________________________________________
AVR-GCC-list mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list
dfx.vcf (text/x-vcard, 246 B)
begin:vcard
fn:Domenico Formenton
n:Formenton;Domenico
org:dfx
adr;dom:;;Via delle due Case, 12;APRILIA;LT;04011
email;internet:[email protected]
tel;work:06 92500019
tel;cell:333 7075929
x-mozilla-html:TRUE
url:www.dfx.it
version:2.1
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.