cancel
Showing results for 
Search instead for 
Did you mean: 

Application note or sample programs for NMI interrupt?

RatheeshT
Associate II

Hi Technical Team,

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

1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee

Hello ,

Could you create an application SPC560P Disp board based on

SPC560Dxx_RLA WKPU API Test Application for Discovery ?

Best Regards

Erwan

View solution in original post

12 REPLIES 12
RatheeshT
Associate II

Hi Team,

Gentle Reminder!!

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

RatheeshT
Associate II

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
ST Employee

Hello ,

Could you create an application SPC560P Disp board based on

SPC560Dxx_RLA WKPU API Test Application for Discovery ?

Best Regards

Erwan

RatheeshT
Associate II

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
Associate II

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.

RatheeshT
Associate II

Hello Erwan,

0693W000007Z89OQAS.png 

I got above information from datasheet.

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

Hi,

the RTC/API is not present in SPC560Pxx.

Regards,

Luigi

zambrano.luigi
Senior III

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
Associate II

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?