Hi folks,
i am working with an ATMEGA12816AI. I have some problems using the pins of PORT G as normal I/O. It seems that the Mega128 doesn't want to turn the ALE,WR,RD,TOSC1 and TOSC2 pins as normal I/O. I am sure that the processor isn't i M103 compatibility mode because the code perform a MUL instruction (and i test the result with a JTAG debugger). On the datasheet Atmel writes that the processor will use the pins of PORT G for special function ONLY if activated, alias the AS0 bit in ASSR for PG4/PG3 and the SRE bit in MCUCR for PG0/PG1/PG2. After a reset those peripherals are disabled.
Any suggestion ?