how to generate a delay of 1 msec using GPTA/GPTB?
Posted: Tue Jan 27, 2009 3:24 am
hi,
i have one issue regarding the GPTA/GPTB(i am using as a timer).
i want to generate a delay of 1 msec using any one channel of the general purpose timers,lets say GPTA/CH0. for this i have configured all the registers and also written ISR for this to do the my stuff.
SetIntC(0,&MY_ISR,44,1,1) // THIS IS FUNCTION (any thing wrong in this??)
now, i have load the count in the register sim.gpt[0].c0=0x0fff; than even if i change this count to any value, i got the same time delay.i.e there is no change in delay w.r.t channel counter.
can i use the channel 0 of GPTA as a timer? if yes how can i?
I got my TIme delay using the PIT, but i want to use the GPTAin my application. can any body help me out, if possible some sort of code will help me much.
thanks to all of you.
i have one issue regarding the GPTA/GPTB(i am using as a timer).
i want to generate a delay of 1 msec using any one channel of the general purpose timers,lets say GPTA/CH0. for this i have configured all the registers and also written ISR for this to do the my stuff.
SetIntC(0,&MY_ISR,44,1,1) // THIS IS FUNCTION (any thing wrong in this??)
now, i have load the count in the register sim.gpt[0].c0=0x0fff; than even if i change this count to any value, i got the same time delay.i.e there is no change in delay w.r.t channel counter.
can i use the channel 0 of GPTA as a timer? if yes how can i?
I got my TIme delay using the PIT, but i want to use the GPTAin my application. can any body help me out, if possible some sort of code will help me much.
thanks to all of you.