-
Sep 22nd, 2020 01:21 AM
#1
Beginner
GPT Timer ISR Issue TC399
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
-
Sep 22nd, 2020 10:14 AM
#2
Advanced
Yes, per Figure 200 - but why not just use the GTM?
-
Sep 23rd, 2020 07:11 AM
#3
Beginner
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
-
Sep 23rd, 2020 09:30 AM
#4
Advanced

Originally Posted by
mohamed rahmathulla
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)
-
Sep 24th, 2020 12:29 AM
#5
Beginner
Hi cwunder,
Thank you, your input helps me to find the solution, it is okay to update the reload time inside ISR..
Disclaimer
All content and materials on this site are provided “as is“. Infineon makes no warranties or
representations with regard to this content and these materials of any kind, whether express or
implied, including without limitation, warranties or representations of merchantability, fitness for
a particular purpose, title and non-infringement of any third party intellectual property right. No
license, whether express or implied, is granted by Infineon. Use of the information on this site may
require a license from a third party, or a license from Infineon.
Infineon accepts no liability for the content and materials on this site being accurate, complete or up-
to-date or for the contents of external links. Infineon distances itself expressly from the contents of
the linked pages, over the structure of which Infineon has no control.
Content on this site may contain or be subject to specific guidelines or limitations on use. All postings
and use of the content on this site are subject to the Usage Terms of the site; third parties using
this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of
this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements,
improvements and other changes to the content and materials, its products, programs and services
at any time or to move or discontinue any content, products, programs, or services without notice.
Bookmarks