+ Reply to Thread
Results 1 to 3 of 3

Thread: XMC1302 ADC Example Problem

  1. #1
    Beginner Beginner xmc123123 is on a distinguished road
    Join Date
    Feb 2019
    Posts
    4
    Points
    55

    XMC1302 ADC Example Problem

    Hello,
    I want to use the ADC for pin P2.9 on the XMC1302. It's attached to VADC0.G1CH4.
    I followed this thread https://www.infineonforums.com/threa...on-not-working and used the attached project from the Infineon employee.
    Only change made from the project zip is in VADC.c where I uncommented lines that had VADC_G1,4 in them. Now the breakpoint I set in VADC_G1_Result_ISR() is never called. Why does this make the program stop working?

    XMC13_VADC_Queue_v1_Enigma.zip


    Thanks
    Last edited by xmc123123; Jul 30th, 2019 at 10:03 AM.

  2. #2
    Beginner Beginner xmc123123 is on a distinguished road
    Join Date
    Feb 2019
    Posts
    4
    Points
    55
    Added this XMC_GPIO_Init as the first line in main() but the VADC_G1_Result_ISR is still not called.

    Code:
     XMC_GPIO_Init(XMC_GPIO_PORT2, 9, &(XMC_GPIO_CONFIG_t){.mode = XMC_GPIO_MODE_INPUT_TRISTATE, .output_level = XMC_GPIO_OUTPUT_LEVEL_HIGH});

  3. #3
    Beginner Beginner xmc123123 is on a distinguished road
    Join Date
    Feb 2019
    Posts
    4
    Points
    55
    The problem seems to be with XMC_VADC_GROUP_ChannelInit.
    Code:
    XMC_VADC_GROUP_ChannelInit(VADC_G1,4, &g_channel_handle[4]);
    If this line is commented, then VADC_G1_Result_ISR is called. Any ideas?

+ 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.