how to connect a NMI interrupt in creator

A catchall for PSoC5 discussions not captured by the other forums.

Moderator: ericb

how to connect a NMI interrupt in creator

Postby jokemilk » Mon Mar 24, 2014 5:13 am

i want to use a gpio to produce a nmi interrput. As the datasheet said, nmi interrupt can be routing to any pin via dsi, but it didn't make it clear how to do that in creator.
Did anyone know
jokemilk
Newbie
Newbie
 
Posts: 2
Joined: Mon Mar 24, 2014 5:07 am

Re: how to connect a NMI interrupt in creator

Postby bobmarlowe » Tue Mar 25, 2014 1:19 am

Have a look into the ARM datasheet.
Additional information are to be found in the "System Reference Guide" accessable from the Help - menu in creator.
Keep in mind, that the NMI Interrupt number might be negative.


Bob
User avatar
bobmarlowe
The Big Cheese
The Big Cheese
 
Posts: 1490
Joined: Thu Oct 06, 2011 2:03 am
Location: Germany

Re: how to connect a NMI interrupt in creator

Postby danadak » Tue Mar 25, 2014 4:25 am

Additional info here -

http://www.cypress.com/?docID=42883 AN72382

Regards, Dana.
Field Application Engineer
KB1RHB Mostly listen :)
Semi Retired
User avatar
danadak
The Big Cheese
The Big Cheese
 
Posts: 2008
Joined: Thu Dec 27, 2007 8:42 am
Location: New Hampshire

Re: how to connect a NMI interrupt in creator

Postby jokemilk » Tue Mar 25, 2014 10:42 pm

bobmarlowe wrote:Have a look into the ARM datasheet.
Additional information are to be found in the "System Reference Guide" accessable from the Help - menu in creator.
Keep in mind, that the NMI Interrupt number might be negative.


Bob


NMI interrupt is a exception not included in the interrupt number which is generated by the creator. The 32 interrupts actually is the NO.16~47 exception in the NVIC.
Also negative is the priority number not exception number.
jokemilk
Newbie
Newbie
 
Posts: 2
Joined: Mon Mar 24, 2014 5:07 am

Re: how to connect a NMI interrupt in creator

Postby bobmarlowe » Wed Mar 26, 2014 12:55 am

Not only the priority might be negative but the IRQ-Number is.
M3.jpg

Look for the "Cortex Microcontroller Software Interface Standard" CMSIS-library which contains routines and #defines to access these interrupts.


Bob
User avatar
bobmarlowe
The Big Cheese
The Big Cheese
 
Posts: 1490
Joined: Thu Oct 06, 2011 2:03 am
Location: Germany


Return to “%s” PSoC5 General

Who is online

Users browsing this forum: No registered users and 1 guest