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.
how to generate a delay of 1 msec using GPTA/GPTB?
-
- Posts: 19
- Joined: Fri Dec 12, 2008 2:54 am
-
- Posts: 82
- Joined: Sun May 11, 2008 2:17 pm
- Location: Los Angeles, CA
- Contact:
Re: how to generate a delay of 1 msec using GPTA/GPTB?
You didn't list the platform you're using, but if I recall correctly, the first general purpose timer(GPTA/CH0) is used for the OS timer
-
- Posts: 19
- Joined: Fri Dec 12, 2008 2:54 am
Re: how to generate a delay of 1 msec using GPTA/GPTB?
ohh sorry for that.
I am using the MOD5282,ColdfFIre platform.
And I am using the GPTA/CH0, which is you mentioned used by the OS. So, i will try on ch1. But one thing i want the list of the registers required to configure for the delay of 1mSec.
I Think by changing the Channel register count will provide me the variable delay.
Thank you.
I am using the MOD5282,ColdfFIre platform.
And I am using the GPTA/CH0, which is you mentioned used by the OS. So, i will try on ch1. But one thing i want the list of the registers required to configure for the delay of 1mSec.
I Think by changing the Channel register count will provide me the variable delay.
Thank you.