amol.gulhane07
Member
Hey ,I am using Atmega controllers and i want to change status of individual PIN of PORT that is defined As OUTPUT PORT.
I am using following code for that but it is not working as we expected.....
DDRA=0xFF;//PORTA is defined as output port
//function call for assignning PORTA.4=1
change(&PORTA,4,1);
//function definition
void change(char *a, char b, char c)
{
a=c;
}
I am using following code for that but it is not working as we expected.....
DDRA=0xFF;//PORTA is defined as output port
//function call for assignning PORTA.4=1
change(&PORTA,4,1);
//function definition
void change(char *a, char b, char c)
{
a=c;
}