Jim McPherson

ColdFire 5212 Question using MetroWerks CodeWarrior

Discussion created by Jim McPherson on Feb 23, 2006
Latest reply on Apr 12, 2007 by Nouchi
I want to raise and lower the GPT3,GPT2,GPT1,GPT0 pins (individually) on the ColdFire 5212 Micro. Using their core header file for General Purpose I/O.

I set these pins as General Purpose I/O as Outputs. This is Port TA on the Micro.

// Set as outputs
MCF_GPIO_DDRTA = MCF_GPIO_DDRTA_DDRTA3 |
MCF_GPIO_DDRTA_DDRTA2 |
MCF_GPIO_DDRTA_DDRTA1 |
MCF_GPIO_DDRTA_DDRTA0;

MCF_GPIO_PTAPAR = 0;

How to set it and to clear these pins

MCF_GPIO_PORTTA = ?

I want to be able to control these pins. I am a newbie to this micro. Can anybody help me on this.

Thanks,

Outcomes