Can anyone help me on how to to set the I/O configuration in C programming. This is my code, I am using keil uvision4 as my ide to generate the hex file and isis proteus to model the circuit.
When i try to use DDRA=0xFF
and PORTA=0
. I get the error that DDRA and PORTA is not defined. is there any particular header i must include that am not
Here is the code
#include <AT89X51.H>
#define PORT2 P2
void main (void)
{
DDRA=0xff;
PORTA=0xff;
}