Banner_AURIX_Security-Solution Banner_AURIX_Safety_Products ShieldBuddy TC275 Banner_AURIX_OnzerOS Banner_AURIX_DevelopmentStudio


infineon4engi@twitter twitter

infineon4engineers Facebook

infineon@linkedin linkedin

infineon@youtube youtube


+ Reply to Thread
Results 1 to 5 of 5
  1. #1

    TIM and TOM PWM compare

    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

  2. #2
    Advanced Advanced UC_wrangler is on a distinguished road
    Join Date
    Jun 2019
    Posts
    52
    Points
    1090
    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.

  3. #3
    Quote Originally Posted by UC_wrangler View Post
    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

  4. #4
    Intermediate Intermediate
    Infineon Employee
    Infineon Employee
    teoBits is on a distinguished road
    Join Date
    Nov 2019
    Posts
    21
    Points
    480
    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
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  5. #5
    Thanks alot!
    I already have written som code, but it's always good to find some more inspiration

Tags for this Thread

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.