Skip to main content
RatheeshT
Associate III
February 17, 2021
Solved

Application note or sample programs for NMI interrupt?

  • February 17, 2021
  • 11 replies
  • 2801 views

Hi Technical Team,

Where can i find application note or sample program for working with NMI interrupt in SPC560P Disp board.

    This topic has been closed for replies.
    Best answer by Erwan YVIN

    Hello ,

    Could you create an application SPC560P Disp board based on

    SPC560Dxx_RLA WKPU API Test Application for Discovery ?

    Best Regards

    Erwan

    11 replies

    RatheeshT
    RatheeshTAuthor
    Associate III
    February 18, 2021

    Hi Team,

    Gentle Reminder!!

    Pls give me some guidelines to include NMI interrupt on my application program.

    RatheeshT
    RatheeshTAuthor
    Associate III
    February 19, 2021

    Hi Team,

    I have connected one sensor in NMI pin for working with NMI interrupt for my application.

    I have done below settings,

     WKUP.NCR.B.NDSS = 0;     

     WKUP.NCR.B.NREE = 1;      

     WKUP.NCR.B.NFEE = 1;           

     WKUP.NCR.B.NFE = 1;

    My question is ;

    When NMI pin is triggered based on sensor output, which ISR or API will be executed?

    Erwan YVIN
    Erwan YVINBest answer
    ST Employee
    February 19, 2021

    Hello ,

    Could you create an application SPC560P Disp board based on

    SPC560Dxx_RLA WKPU API Test Application for Discovery ?

    Best Regards

    Erwan

    RatheeshT
    RatheeshTAuthor
    Associate III
    February 19, 2021

    Hello Erwan,

    Thanks for quick response,

    I will try "SPC560Dxx_RLA WKPU API Test Application for Discovery " in SPC560P Disp.

    But the SPC560P dISP is not having below registers as per reference manual (Attached the screenshot)

    1. Wakeup/Interrupt status flag (Base+0x0014)
    2. Interrupt Request Enable (Base+0x0018)
    3. Wakeup Request Enable
    4. Wakeup/Interrupt Rising-Edge
    5. Wakeup/Interrupt Pullup Enable .. etc

    0693W000008GgLoQAK.png 

    My quention is that , wakeup will support in SPC560P Disp?

    RatheeshT
    RatheeshTAuthor
    Associate III
    February 22, 2021

    Hello Erwan,

    0693W000007Z5qFQAS.png0693W000007Z5pRQAS.pngFor SPC560Dxx MCU, IRQ number for API is 39, i got this information from reference manual ( For the suggested example code "SPC560Dxx_RLA WKPU API Test Application for Discovery " ). Please see the yellow highlighted portion of the attached screenshot for reference.

    Similarly, What is the number to be configured for NMI in SPC560P50L5? . This information is not available in Reference manual.

    Kindly suggest your input for this.

    zambrano.luigi
    ST Employee
    February 25, 2021

    Hi,

    the RTC/API is not present in SPC560Pxx.

    Regards,

    Luigi

    RatheeshT
    RatheeshTAuthor
    Associate III
    February 22, 2021

    Hello Erwan,

    0693W000007Z89OQAS.png 

    I got above information from datasheet.

    Could you please let me know, which external source can cause Non-Maskable interrupt?

    zambrano.luigi
    ST Employee
    February 25, 2021

    Hi,

    on SPC560P you can configure an exception (NMI, critical interrupt or machine check interrupt) in the register NCR of the WKPU and then you can raise the configured exception driven the NMI pin present on the device. Please, note that the exception is not managed by the INTC. So, the related IVOR must be configured to manage the exception.

    Regards,

    Luigi

    RatheeshT
    RatheeshTAuthor
    Associate III
    February 25, 2021

    Hello Luigi,

    Thanks for your reply,

    The exception for critical interrupt is configured in "IVOR0 Critical Input Interrupt Handler". i.e ivor0_callback

    Similarly , where is the exception for NMI? or which IVOR  can be used for NMI?

    zambrano.luigi
    ST Employee
    February 25, 2021

    Hi,

    the exception for NMI is on IVOR1.

    Regards,

    Luigi

    RatheeshT
    RatheeshTAuthor
    Associate III
    February 25, 2021

    Hello Luigi,

     As per ivor_cfg.h file, IVOR1 is for Machine Check Interrupt Handler. Please see the screenshot of the same.

     0693W000007ZRKpQAO.pngSo, as per my understanding, this ivor_cfg.h file is not having exception handler for NMI.

    Please correct me if i am wrong.

    Thanks for immediate response