<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Interrupt Handling</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46745/interrupt-handling</link><description>Hello Experts, 
 I am new to Nordic devices. I am trying to understand the interrupt. I have some questions - 
 1. How to enable interrupt? 
 2. Do we need to write 1 in ISER (Interrupt Set Enable Register)? to enable interrupt. 
 3. Do we need to initialize</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 May 2023 16:15:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46745/interrupt-handling" /><item><title>RE: Interrupt Handling</title><link>https://devzone.nordicsemi.com/thread/428002?ContentTypeID=1</link><pubDate>Mon, 29 May 2023 16:15:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3da1210-0b65-49fa-befa-9176c6fcf111</guid><dc:creator>joshualamantia</dc:creator><description>[deleted]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupt Handling</title><link>https://devzone.nordicsemi.com/thread/184811?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 09:18:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66d34466-417b-4a54-832a-f8c5c48dea0c</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sorry for the delay because of the labor&amp;#39;s day which is the holiday in Norway.&lt;/p&gt;
[quote user=""]&lt;p&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1. How to enable interrupt?&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2. Do we need to write 1 in ISER (Interrupt Set Enable Register)? to enable interrupt.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;For 1. and 2., Set&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/egu.html#register.INTEN"&gt;INTEN&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/a&gt;to enable or disable interrupt in our chip.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]3. Do we need to initialize the service routine of that interrupt?[/quote]
&lt;p&gt;&lt;span&gt;If you develop&amp;nbsp;the ISR, you need to initial and assing interrupt. In our SDK,&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sds_s112/SDS/s1xx/mbr_bootloader/mbr.html?cp=3_4_0_0_11_0"&gt;&lt;span&gt;Master boot record&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;will do that.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]4. How to define/see interrupt priority?[/quote]
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/processor_avail_interrupt_latency/exception_mgmt_sd.html?resultof=%22%69%6e%74%65%72%72%75%70%74%22%20%22%70%72%69%6f%72%69%74%79%22%20%22%70%72%69%6f%72%69%74%69%22%20%22%6e%72%66%35%32%22%20"&gt;&lt;span&gt;Interrupt priority levels&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;shows the info.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]5. How to define interrupt handler?[/quote]
&lt;p&gt;&amp;nbsp;&lt;span&gt;Please refer to&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__nrf__sdh__soc__config.html?cp=5_0_6_11_65_3_0"&gt;&lt;span&gt;SoftDevice SoC event handler configuration&lt;/span&gt;&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]6. To disable interrupt do we need to set 1 in ICER&amp;nbsp;&lt;span&gt;(Interrupt Clear Enable&amp;nbsp;Register)&lt;/span&gt; register?[/quote]
&lt;p&gt;&lt;span&gt;Clear an interrupt by writing&lt;/span&gt;&lt;span&gt;&amp;nbsp;0&amp;nbsp;&lt;/span&gt;&lt;span&gt;to an event register, or disabling an interrupt by the INTENCLR register in our chip. More details are in&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/peripheral_interface.html?cp=3_0_0_5_0_7#interrupts"&gt;&lt;span&gt;Interrupts&lt;/span&gt;&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]7. Can you provide me the Interrupt vector table?[/quote]
&lt;p&gt;See the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/v1.7.1/mdk/arm_startup_nrf52.s"&gt;example&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;for the Interrupt vector table. It&amp;#39;s located at the start of flash memory&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]8. What is soft device based and normal interrupts?[/quote]
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/struct_nrf52/struct/nrf52_softdevices.html?cp=3_4"&gt;&lt;span&gt;SoftDevices&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;is a precompiled and linked binary software implementing a wireless protocol developed by Nordic Semiconductor.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I do not know what&amp;nbsp;&lt;/span&gt;&lt;span&gt;normal interrupts means. Where do you find it in our documents?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]9. It would be great if you provide me the simplest code to get a better understanding of interrupts.[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/pin_change_int_example.html?resultof=%22%50%69%6e%22%20%22%70%69%6e%22%20%22%43%68%61%6e%67%65%22%20%22%63%68%61%6e%67%22%20%22%49%6e%74%65%72%72%75%70%74%22%20%22%69%6e%74%65%72%72%75%70%74%22%20%22%45%78%61%6d%70%6c%65%22%20%22%65%78%61%6d%70%6c%22%20"&gt;nRF5 SDK v15.3.0: Pin Change Interrupt Example&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;which demonstrates interrupts on PIN_IN change. PIN_OUT is configured as output and toggled in the PIN_IN change interrupt handler.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupt Handling</title><link>https://devzone.nordicsemi.com/thread/184662?ContentTypeID=1</link><pubDate>Wed, 01 May 2019 05:55:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c532900b-9873-432a-ba09-8281446de51b</guid><dc:creator>parman</dc:creator><description>&lt;p&gt;waiting for your response&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>