GPT Timer ISR Issue TC399

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User20162
Level 3
Level 3
10 replies posted 10 questions asked 5 replies posted
hi,

i have tried TC399 sample program for GPT timer interrupt, i have configured Timer2 as a timer mode and timer3 as timer mode at a same time. but it is only running timer3 service routine. can i configured both timer as a timer mode at a same time,

can both get run parallelly and give us interrupt?

Thanks
mohamed rahmathulla
0 Likes
4 Replies
NeMa_4793301
Level 6
Level 6
10 likes received 10 solutions authored 5 solutions authored
Yes, per Figure 200 - but why not just use the GTM?
0 Likes
User20162
Level 3
Level 3
10 replies posted 10 questions asked 5 replies posted
Hi UC_wrangler,
Now the timer interrupt working fine, i am using GTM asPWM generation for morethan 15channel, so that i planned to use GPT as normal timer and counter. do you have any suggestion to use GTM, kindly let me know... any advantages?

moreover, i need to configure the GPT for 1uS interrupt, so demo code is like using auxillary timer to reload the core timer for adjusting GPT as 1uS. is there any possiblity to do by the same timer without using supportive timer?

reload API???

Thanks and regards
Mohamed Rahmathulla
0 Likes
cwunder
Employee
Employee
5 likes given 50 likes received 50 solutions authored
mohamed rahmathulla wrote:
is there any possiblity to do by the same timer without using supportive timer?


Yes, however now you would be responsible to reload the timer compare value (i.e. in an interrupt)
0 Likes
User20162
Level 3
Level 3
10 replies posted 10 questions asked 5 replies posted
Hi cwunder,
Thank you, your input helps me to find the solution, it is okay to update the reload time inside ISR..
0 Likes