Not applicable
Oct 24, 2019
12:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 24, 2019
12:27 AM
Hello!
Background:
Cpu: TC234
One PWM signal in to TIM
One PWM signal out from TOM.
Problem:
I would like to compare the output with the input, as the input is a feedback signal.
Is it possible to use the GTM in some way to do this?
And maybe get an interrupt if they start to differ to much?
The only solution I can think of is using SW to compare the counters, but it will increase my CPU load quite much...
So it would be better if the HW could do it for me 🙂
Background:
Cpu: TC234
One PWM signal in to TIM
One PWM signal out from TOM.
Problem:
I would like to compare the output with the input, as the input is a feedback signal.
Is it possible to use the GTM in some way to do this?
And maybe get an interrupt if they start to differ to much?
The only solution I can think of is using SW to compare the counters, but it will increase my CPU load quite much...
So it would be better if the HW could do it for me 🙂
4 Replies
Oct 25, 2019
06:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 25, 2019
06:17 AM
Hi Mattias. The TC234's GTM doesn't have the Multi-Channel Sequencer (MCS) present on higher end devices that could easily do what you're after.
Check out the Input / Output Monitor peripheral. The idea is that you can compare a reference signal (e.g., a bridge driver output) to a monitor signal (e.g., feedback from the bridge driver), with a possible signal delay between the two.
The challenge with the IOM is that the supported pins are limited (see 28.10 SoC Integration in the User Manual). Adding IOM support to an existing PCB is usually not possible, but if you know you want to use it in advance, you can pick the right pins.
Check out the Input / Output Monitor peripheral. The idea is that you can compare a reference signal (e.g., a bridge driver output) to a monitor signal (e.g., feedback from the bridge driver), with a possible signal delay between the two.
The challenge with the IOM is that the supported pins are limited (see 28.10 SoC Integration in the User Manual). Adding IOM support to an existing PCB is usually not possible, but if you know you want to use it in advance, you can pick the right pins.
Not applicable
Oct 28, 2019
10:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 28, 2019
10:52 PM
UC_wrangler wrote:
Hi Mattias. The TC234's GTM doesn't have the Multi-Channel Sequencer (MCS) present on higher end devices that could easily do what you're after.
Check out the Input / Output Monitor peripheral. The idea is that you can compare a reference signal (e.g., a bridge driver output) to a monitor signal (e.g., feedback from the bridge driver), with a possible signal delay between the two.
The challenge with the IOM is that the supported pins are limited (see 28.10 SoC Integration in the User Manual). Adding IOM support to an existing PCB is usually not possible, but if you know you want to use it in advance, you can pick the right pins.
Thanks for the reply! I will look into the IOM, seems to be promising.
Does someone here have any example code on how to use it?
//Mattias
Nov 19, 2019
05:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 19, 2019
05:49 AM
Hello Mattias,
You can find code example projects for the GTM module here: AURIX™ training code examples.
all these example also comes with tutorials, which can be found here: AURIX™ tutorials.
If you want to start programming for AURIX™, you can get the new Integrated Development Environment (IDE) here: AURIX™ Development Studio.
If you are not familiar with Eclipse based IDE’s checkout the Getting Started guide!
Hope it helps,
teoBits
You can find code example projects for the GTM module here: AURIX™ training code examples.
all these example also comes with tutorials, which can be found here: AURIX™ tutorials.
If you want to start programming for AURIX™, you can get the new Integrated Development Environment (IDE) here: AURIX™ Development Studio.
If you are not familiar with Eclipse based IDE’s checkout the Getting Started guide!
Hope it helps,
teoBits
Not applicable
Nov 20, 2019
09:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 20, 2019
09:55 PM
Thanks alot!
I already have written som code, but it's always good to find some more inspiration
I already have written som code, but it's always good to find some more inspiration