Hi
In Gated Time mode, the pulse accumulator will increment once for each clock while the pulse accumulator input pin is being driven to the programmed level.
However, the input pin is shared with other modules (e.g. the PWM). One possibility is that the input signal is not reaching the GPT because you don't have the pin assignment information set up correctly.
Have you checked that you are programming the correct value into the Port TA pin assignment register, e.g.
/* Pin assignments for port TA
Pin TA3 : General purpose timer GPT3
Pin TA2 : General purpose timer GPT2
Pin TA1 : General purpose timer GPT1
Pin TA0 : General purpose timer GPT0
*/
MCF_GPIO_DDRTA = 0;
MCF_GPIO_PTAPAR = MCF_GPIO_PTAPAR_PTAPAR3(0x1) |
MCF_GPIO_PTAPAR_PTAPAR2(0x1) |
MCF_GPIO_PTAPAR_PTAPAR1(0x1) |
MCF_GPIO_PTAPAR_PTAPAR0(0x1);
Just a thought. Hope it helps.
Simon