Im trying to set up the parallel port E on the rcm4010, but i cant make it work. This is my code.
#class auto
#use RCM40xx.LIB
main() {
int lectura;
WrPortI(PEDDR, &PEDDRShadow, 0x00);
WrPortI(PEDCR, &PEDCRShadow, 0x00);
while(1){
costate{
lectura = BitRdPortI(PEDR, 2);
waitfor(DelayMs(500));
}
costate{
printf("Lectura datos= %d
",lectura);
}
}
}