<?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 usage for reading limit switch data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41038/interrupt-usage-for-reading-limit-switch-data</link><description>Dear Team, 
 i hope you are doing good, 
 
 I am working on nrf51822 controller, using SDK is 12.3.0 on windows environment. Soft-device is s130 
 i am planning interface limit switches with interrupt based , so please help how can i implement interrupt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Nov 2018 15:20:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41038/interrupt-usage-for-reading-limit-switch-data" /><item><title>RE: interrupt usage for reading limit switch data</title><link>https://devzone.nordicsemi.com/thread/159602?ContentTypeID=1</link><pubDate>Thu, 29 Nov 2018 15:20:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28e49e69-df76-4250-b994-15dffbb03e9c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Do you mean that you want to have an interrupt on a pin, and then send an UART message, or do you want interrupts on UART messages?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Either way, look at how the peripheral\pin_change_int example (note, not ble_peripheral) for a simple interrupt setup. If you need button debounce, you can also look into the app_button library (app_button.c/h).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note that there is also an example called bsp, located in peripheral\bsp, but this library is quite heavily stripped, so you can&amp;#39;t see when a button is released. You can do this if you use the app_button.c library.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So can you describe a bit more in detail what you need for your application?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>