+ Reply to Thread
Results 1 to 3 of 3

Thread: XMC4700: How to achieve a nested interrupt with Dave Apps?

  1. #1
    Beginner Beginner xmc_Nes is on a distinguished road
    Join Date
    Sep 2016
    Posts
    7
    Points
    76.25

    XMC4700: How to achieve a nested interrupt with Dave Apps?

    The question is actually in the title.

    I'm using a Timer app to send Values to a shift register per SPI.
    I would like to receive commands through serial to control the process.
    Starting the timer is not the problem. Stopping it is. I guess I have to enable interrupts inside the timer interrupt callback function. But how do I do it in dave 4.3.2?

    Thank you!

  2. #2
    Advanced Advanced aurixuser is on a distinguished road
    Join Date
    Jan 2017
    Location
    China
    Posts
    167
    Points
    870
    Is this possible?
    Set a global flag in the ISR.
    Then stop the timer in the main loop.

  3. #3
    Beginner Beginner xmc_Nes is on a distinguished road
    Join Date
    Sep 2016
    Posts
    7
    Points
    76.25
    That's what I'm wondering.

    I'm stoppinng the timer in the main loop and not in the interrupt. When I receive the corresponding command I stop the timer in the main loop. But every time I get a status failure for the stop command. The timer keeps going through the value pattern I set to send till it is finished. I can only stop it inside the interrupt
    when it gets a certain conditioon


    You mean I could create a global variable and when I receive the stop command I change the flag and every time the interrupt is triggered I check the flag status and stop if the flag is active?

    thanks

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