<?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>uC sleeping BUT Not Waking off RDYN issue?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2068/uc-sleeping-but-not-waking-off-rdyn-issue</link><description>I&amp;#39;m right now getting uC to sleep WHEN THERE ARE NO ACI EVENTS I think I&amp;#39;m doing right, the uC sleeps but I&amp;#39;m not able to wake up despite the fact that RDYN is connceted to pin 2 and as I use ATmega328 its the lowest level hardware interrupt that should</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Apr 2014 07:28:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2068/uc-sleeping-but-not-waking-off-rdyn-issue" /><item><title>RE: uC sleeping BUT Not Waking off RDYN issue?</title><link>https://devzone.nordicsemi.com/thread/8852?ContentTypeID=1</link><pubDate>Thu, 03 Apr 2014 07:28:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5466c07-c78b-4551-a12f-8d732f3b0311</guid><dc:creator>David Edwin</dc:creator><description>&lt;ol&gt;
&lt;li&gt;Can you upgrade to the latest release in the github, the last release had some cleanup done in the hal_aci_tl.cpp&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The ACI library supports both polling and interrupts so (once you upgrade to the latest release) you not not need to change anything that happens in the interrupt code path when you are using polling.
If you are using polling you only need to set up the pin attached to the RDYN line as a wakeup source for the mcu, having an interrupt to the RDYN line is optional as you will only use it as wakeup and not run the ACI in interrupt mode.&lt;/p&gt;
&lt;p&gt;You can post your results after you do the upgrade. There is an interface change in lib_aci_init() and in do_aci_setup() in the latest release.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uC sleeping BUT Not Waking off RDYN issue?</title><link>https://devzone.nordicsemi.com/thread/8851?ContentTypeID=1</link><pubDate>Wed, 02 Apr 2014 17:17:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4340365f-15d9-471b-a431-d347e7aa3949</guid><dc:creator>Nishant Sood</dc:creator><description>&lt;p&gt;In the hal_aci_tl.cpp file ,I encountered one ISR function named: m_rdy_line_handle() and which was handling the external interrupt on pin 3! ,I changed that interrupt addressal to pin2 but then things jammed further.&lt;/p&gt;
&lt;p&gt;There&amp;#39;s another bool function I encountered nameed: toggle_eimsk(true) which I think is swtiching the interrupt on pin2 :&lt;/p&gt;
&lt;p&gt;if (m_aci_q_is_full(&amp;amp;aci_rx_q))
{
/* Disable RDY line interrupt.
Will latch any pending RDY lines, so when enabled it again this
routine should be taken again */
toggle_eimsk(false);
}&lt;/p&gt;
&lt;p&gt;What you think?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uC sleeping BUT Not Waking off RDYN issue?</title><link>https://devzone.nordicsemi.com/thread/8850?ContentTypeID=1</link><pubDate>Wed, 02 Apr 2014 15:34:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adbd13b3-7337-487f-9e54-ab6cbe144956</guid><dc:creator>Nishant Sood</dc:creator><description>&lt;p&gt;You want me to check that whether pin2 is going low or not? or what?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uC sleeping BUT Not Waking off RDYN issue?</title><link>https://devzone.nordicsemi.com/thread/8849?ContentTypeID=1</link><pubDate>Wed, 02 Apr 2014 15:23:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:741e4f42-acf0-458b-8f0f-54b5b58e58b1</guid><dc:creator>Nishant Sood</dc:creator><description>&lt;p&gt;I didn&amp;#39;t change it so it means that its default function of polling&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uC sleeping BUT Not Waking off RDYN issue?</title><link>https://devzone.nordicsemi.com/thread/8848?ContentTypeID=1</link><pubDate>Wed, 02 Apr 2014 14:24:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a3dd6f7-7dd0-40d2-998d-db591a81e622</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;What method are you using in the nRF8001 library , polling or interrupt ?
Can you check with polling, you would want to have the RDYN line LOW as a wakeup source so the mcu will not be able to go to sleep when RDYN is low.
This will be easier to verify and then we can address the interrupt.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>