Hello everybody
i have a question about GCC and CodeVision: How can i changing PORTX register in other place of program. as you know, normally we setting it at Main function inside DDRX rigester for example like this:
DDRB = 0x00; PORTB = 0x00;
but how do you change it at other place? and an another question:
is it wisely that we setting DDRX and PORTX rigester like this(also for example)?:
DDRB.0=0; PORTB.0=1;