Luis Martinez

Init ports 5282

Discussion created by Luis Martinez on Apr 24, 2007
Latest reply on Apr 24, 2007 by Luis Martinez
I need some help to init the ports in the coldfire 5282. I have the next simple program but the problem is that I can not do the PORTE an IN PUT port.

int main()
MCF5282_GPIO_PEPAR = 0x00;
MCF5282_GPIO_DDRE = 0X00;      //For In put
MCF5282_GPIO_PFPAR = 0x00;
MCF5282_GPIO_DDRF = 0XFF;      //For Out put
   return 0;

I do not know if i miss something for complete the declaration IN PUT port so if some body can send me a exemple of program that recive something I will be thankful :smileyhappy:.