May 20, 2020
05:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 20, 2020
05:16 AM
Hi friends,
My project need a function like this: an interrupt would be triggered every T seconds. And I need to apply it in all of three cores with different T in each core.
I found a core Timer together with an auxiliary Timer(Reload mode) in GPT12 module can implemet it.
However, there are only two core Timers in GPT12, that means only two cores can have this function. Does someone know any other way to realize it??? my board is TC27x.
Thanks,
Valeire
My project need a function like this: an interrupt would be triggered every T seconds. And I need to apply it in all of three cores with different T in each core.
I found a core Timer together with an auxiliary Timer(Reload mode) in GPT12 module can implemet it.
However, there are only two core Timers in GPT12, that means only two cores can have this function. Does someone know any other way to realize it??? my board is TC27x.
Thanks,
Valeire
2 Replies
May 20, 2020
05:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 20, 2020
05:30 AM
Hi Valerie. There's a System Timer (STM) for each CPU core. That is typically used to drive an operating system timer (something like 1 ms), but you could use that.
You can also use the TOM outputs of the GTM to generate a periodic interrupt. The AURIX Development Studio has an example project (GTM_TOM_Interrupt_1_KIT_TC297_TFT) that generates an interrupt every 500 ms.
If you use three outputs on the same TOM unit (e.g., TOM0_1, TOM0_2, TOM0_3), you could start them simultaneously, so all the cores could get the interrupt at the same time (well, very close, since the Interrupt Router will only issue one interrupt at a time).
You can also use the TOM outputs of the GTM to generate a periodic interrupt. The AURIX Development Studio has an example project (GTM_TOM_Interrupt_1_KIT_TC297_TFT) that generates an interrupt every 500 ms.
If you use three outputs on the same TOM unit (e.g., TOM0_1, TOM0_2, TOM0_3), you could start them simultaneously, so all the cores could get the interrupt at the same time (well, very close, since the Interrupt Router will only issue one interrupt at a time).
May 22, 2020
09:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 22, 2020
09:17 AM
Hey Wrangler,
Thanks so much for your pointers! That helps me a lot!!!
I use the STM in each CPU, and it can generate Interrupts regularly with configured time 😆
Now I am also testing another method based on TOM.
Best Regards,
Valerie
Thanks so much for your pointers! That helps me a lot!!!
I use the STM in each CPU, and it can generate Interrupts regularly with configured time 😆
Now I am also testing another method based on TOM.
Best Regards,
Valerie
This widget could not be displayed.