<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Smartsleep with 20ms polling Timer1 ISR]]></title><description><![CDATA[<p dir="auto">I'm developming a node that polls a sensor every 20ms through a Timer1 interrupt.  The main loop of the program has a 1000ms wait/sleep cycle that decides whether or not to send MySensors messages depending on the sensor value.<br />
In orde to preserve energy, I'd like to use smart sleep.</p>
<p dir="auto">My question is, will smartSleep work in together with the faster interrupt cycle ?  I assume the interrupt will wake the node from smart sleep, but what happens at the end of the interrupt service routine ?<br />
Does smartSleep resume automatically ?<br />
Or should I call smartSleep at the end of the ISR ?  Does that make sense ?  Will smartSleep work properly when it is called every 20 ms ?</p>
]]></description><link>https://forum.mysensors.org/topic/7156/smartsleep-with-20ms-polling-timer1-isr</link><generator>RSS for Node</generator><lastBuildDate>Wed, 07 Oct 2026 15:36:01 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/7156.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 Jul 2017 16:46:49 GMT</pubDate><ttl>60</ttl></channel></rss>