I’m a bit confused, although I never use the bit level access provided in the Code Vision AVR I have seen others do, but why use PINA instead of PORTA?
The Code Vision AVR user manual suggests using: “PINA.1” for reading bit 1 of port A.
DDRA.1=0; /* test bit 1 input of port A */ If(PINA.1)
Why not use
What is the difference between the two codes?