infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 4 of 4

Thread: XMC1300 CCU8 starts ADC

  1. #1
    New Member New Member ReneH is on a distinguished road
    Join Date
    Sep 2018
    Posts
    2
    Points
    37.5

    XMC1300 CCU8 starts ADC

    Hi

    I'm new to Infineon controller and I try to setup a small program.

    I like to sample 2 currents at the same time. That should be triggered by a rising or falling trigger of from a CCU8 unit and a compare value.
    After conversion of the two currents I need an interrupt for further processing but the adc should also sample 2 input voltages in the mean time when the interrupt is processing.
    This 2 values will be read later in the main loop and I don´t want to wait until the whole converstion is done.

    And here I need some help to set this configuration up.

    Kind regards
    René

  2. #2
    New Member New Member
    Infineon Employee
    Infineon Employee
    Eric is on a distinguished road
    Join Date
    Mar 2013
    Posts
    65
    Points
    149.04296875
    Hello René,

    I suggest you to use 2 instances of ADC_Measurement_ADV APP and one CCU APP for this purpose.
    you can configure it in the first tab as QUEUE instead of SCAN and 2 channels

    In the Channel configuration tab you can activate in one instance for Channel_A an interrupt.
    In the Sequence plan you can set at position 0 Channel A and position 1 Channel B.
    Activate also the wait for Trigger at Channel A.

    After connecting the interrupt APP to the Result event of Channel A you have following setup:

    A Trigger starting the conversion of 2 Channel_A parallel.
    After the conversion is finished an interrupt is called and 2 Channel B conversions are started.

    In the interrupt the values vor Channel A are ready, the values for Channel B most probably not.

    Nothing else happens until the next Trigger arrives.
    With the next Trigger Channel_A and Channel_B are overwritten.

    In this configuration Channel_A and Channel_B have the same update rate.
    There are other options if this is not required. But I assume is the best option.

    Regards
    Eric
    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.

  3. #3
    New Member New Member ReneH is on a distinguished road
    Join Date
    Sep 2018
    Posts
    2
    Points
    37.5
    Hi Eric

    Thanks for the answer.
    But thats not what I need. For motor control I need to sample 2 current values at the same time and not one after another.

    Or is it not possible to sample two values with the XMC 1300 oder 1400?

    Kind regards
    René

  4. #4
    New Member New Member
    Infineon Employee
    Infineon Employee
    Eric is on a distinguished road
    Join Date
    Mar 2013
    Posts
    65
    Points
    149.04296875
    Hi Rene,

    If you are using 2 instances of ADC_Measurement_ADV you can measure 2 inputs at the same time.
    Just connect both ADC Apps to the same trigger.

    To avoid the Errata ADC_CM01 you can set in "Sync. conversion" Tab the "Synchronised groups" to 1 Slave (@XMC1300/1400).
    It is not required to enable any sync master (Channel) and the appearing Table.

    Best Regards
    Eric
    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.

+ Reply to Thread

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.