using AVR studio for Atmega8515. According to the datasheet, pinX is read only; however, when I write
out pina, r16, I noticed that r16 is copied into pina.
I for instance, set DDRA to 0x50, and r16 to 0xFF, yet the simulator shows that pina=0xff despite that not all pins were to set to one. Any explanation?
How this code behaves in real hardware?