<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Setting Timer Interrupt Options (Registers?) - Arduino				            </title>
            <link>https://forum.dronebotworkshop.com/arduino/setting-timer-interrupt-options-registers/</link>
            <description>Discussion board for Robotics, Arduino, Raspberry Pi and other DIY electronics and modules. Join us today!</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 12 Aug 2026 18:36:37 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Setting Timer Interrupt Options (Registers?)</title>
                        <link>https://forum.dronebotworkshop.com/arduino/setting-timer-interrupt-options-registers/paged/2/#post-41767</link>
                        <pubDate>Tue, 01 Aug 2023 02:29:24 +0000</pubDate>
                        <description><![CDATA[@zander hi Ron,
I do all of the initialization of the timer once in setup.
What I have observed is the setting of the compare match register. I do it once in setup and never again. Some ex...]]></description>
                        <content:encoded><![CDATA[<p>@zander hi Ron,</p>
<p>I do all of the initialization of the timer once in setup.</p>
<p>What I have observed is the setting of the compare match register. I do it once in setup and never again. Some examples I have seen reset compare match register in the ISR. I am wondering how that actually works.</p>
<p>The biggest problem I have had (once the interrupt worked) was reading the GPS data when there was an interrupt. Seems to work now though.</p>
<p>Thanks again for your help.</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/arduino/">Arduino</category>                        <dc:creator>SilverStar</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/arduino/setting-timer-interrupt-options-registers/paged/2/#post-41767</guid>
                    </item>
				                    <item>
                        <title>RE: Setting Timer Interrupt Options (Registers?)</title>
                        <link>https://forum.dronebotworkshop.com/arduino/setting-timer-interrupt-options-registers/paged/2/#post-41764</link>
                        <pubDate>Mon, 31 Jul 2023 22:36:44 +0000</pubDate>
                        <description><![CDATA[@silverstar Fred, Excellent, I just did a google and sent the link, my knowledge is not that deep on timers. BTW, my name is Ron but my &#039;handle&#039; here is @zander.]]></description>
                        <content:encoded><![CDATA[@silverstar Fred, Excellent, I just did a google and sent the link, my knowledge is not that deep on timers. BTW, my name is Ron but my 'handle' here is @zander.]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/arduino/">Arduino</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/arduino/setting-timer-interrupt-options-registers/paged/2/#post-41764</guid>
                    </item>
				                    <item>
                        <title>RE: Setting Timer Interrupt Options (Registers?)</title>
                        <link>https://forum.dronebotworkshop.com/arduino/setting-timer-interrupt-options-registers/paged/2/#post-41763</link>
                        <pubDate>Mon, 31 Jul 2023 22:22:02 +0000</pubDate>
                        <description><![CDATA[@zander, @Ron, @Davee
@Ron suggested that I read /timer interrupts//by Amanda Ghassaei//June 2012/
Amanda was very helpful and with that guidance, I was able to get my project off first bas...]]></description>
                        <content:encoded><![CDATA[<p>@zander, @Ron, @Davee</p>
<p>@Ron suggested that I read /timer interrupts<br />//by Amanda Ghassaei<br />//June 2012<br />//https://www.instructables.com/id/Arduino-Timer-Interrupts/</p>
<p>Amanda was very helpful and with that guidance, I was able to get my project off first base. The timer aspect is working as desired.</p>
<p>Thank you all for your input.</p>
<p>Fred Stout aka SilverStar</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/arduino/">Arduino</category>                        <dc:creator>SilverStar</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/arduino/setting-timer-interrupt-options-registers/paged/2/#post-41763</guid>
                    </item>
				                    <item>
                        <title>RE: Setting Timer Interrupt Options (Registers?)</title>
                        <link>https://forum.dronebotworkshop.com/arduino/setting-timer-interrupt-options-registers/paged/2/#post-41759</link>
                        <pubDate>Mon, 31 Jul 2023 02:16:57 +0000</pubDate>
                        <description><![CDATA[@silverstar Have a look at this link, look for the Arduino examples.]]></description>
                        <content:encoded><![CDATA[@silverstar Have a look at this link, look for the Arduino examples. <a href="https://www.instructables.com/Arduino-Timer-Interrupts/" target="_blank" rel="noopener">https://www.instructables.com/Arduino-Timer-Interrupts/</a>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/arduino/">Arduino</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/arduino/setting-timer-interrupt-options-registers/paged/2/#post-41759</guid>
                    </item>
				                    <item>
                        <title>RE: Setting Timer Interrupt Options (Registers?)</title>
                        <link>https://forum.dronebotworkshop.com/arduino/setting-timer-interrupt-options-registers/paged/2/#post-41758</link>
                        <pubDate>Mon, 31 Jul 2023 01:55:39 +0000</pubDate>
                        <description><![CDATA[@silverstar Ok, I will check if my recommendations are for the Arduino or the ESP32 when I have time. The general approach will not be much, if any, different, I just need to double-check th...]]></description>
                        <content:encoded><![CDATA[<p>@silverstar Ok, I will check if my recommendations are for the Arduino or the ESP32 when I have time. The general approach will not be much, if any, different, I just need to double-check the API. </p>
<p>The bit setting is the same. That's just C code, it's the critical sectioning I need to check.</p>
<p>FYI, 99.9% of my electronics stuff is stuck halfway across the country, so I am limited in testing ability, but I did just get a new UNO R4 and a NANO ESP2 so I think I can do a meaningful test. I have a truck safety check tomorrow morning for the new license but after that, I will try a few things.</p>
<p>Can you tell me if the setting of the scalar bits is being done once in setup or is it changing in the loop? If it's a one-time thing, make it the very first thing, especially before setting up your Serial connection. Of course, wrapping even that in a critical section is safer but if it's one time and first the chances of a fubar are very tiny.</p>
<p>Good luck.</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/arduino/">Arduino</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/arduino/setting-timer-interrupt-options-registers/paged/2/#post-41758</guid>
                    </item>
				                    <item>
                        <title>RE: Setting Timer Interrupt Options (Registers?)</title>
                        <link>https://forum.dronebotworkshop.com/arduino/setting-timer-interrupt-options-registers/paged/2/#post-41757</link>
                        <pubDate>Mon, 31 Jul 2023 01:20:02 +0000</pubDate>
                        <description><![CDATA[@zander Arduino Uno]]></description>
                        <content:encoded><![CDATA[@zander Arduino Uno]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/arduino/">Arduino</category>                        <dc:creator>SilverStar</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/arduino/setting-timer-interrupt-options-registers/paged/2/#post-41757</guid>
                    </item>
				                    <item>
                        <title>RE: Setting Timer Interrupt Options (Registers?)</title>
                        <link>https://forum.dronebotworkshop.com/arduino/setting-timer-interrupt-options-registers/paged/2/#post-41756</link>
                        <pubDate>Mon, 31 Jul 2023 00:53:24 +0000</pubDate>
                        <description><![CDATA[Hi @silverstar,
  As Ron (@zander) is showing, Arduino has some &#039;cleverer stuff&#039; than I knew about. As I said, I was just using the old basic tricks from long forgotten microprocessors runn...]]></description>
                        <content:encoded><![CDATA[<p>Hi @silverstar,</p>
<p>  As Ron (@zander) is showing, Arduino has some 'cleverer stuff' than I knew about. As I said, I was just using the old basic tricks from long forgotten microprocessors running a simpler programme structure!</p>
<p>Personally, I would just start with the AND + OR statements I suggested previously, and 'temporarily forget' about the chance of something sneaking in between the two lines of code, and see how you get on.</p>
<p>Unless the programme repeatedly executes those two lines, which I think is unlikely, then I think there is a pretty low (to zero) chance of anything sneaking in.</p>
<p>When you have got it working and feel comfortable, then would be a good time to follow up Ron's leads, and hopefully the details will be easier to follow then as well.</p>
<p>Good luck, Dave</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/arduino/">Arduino</category>                        <dc:creator>DaveE</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/arduino/setting-timer-interrupt-options-registers/paged/2/#post-41756</guid>
                    </item>
				                    <item>
                        <title>RE: Setting Timer Interrupt Options (Registers?)</title>
                        <link>https://forum.dronebotworkshop.com/arduino/setting-timer-interrupt-options-registers/#post-41753</link>
                        <pubDate>Sun, 30 Jul 2023 23:04:14 +0000</pubDate>
                        <description><![CDATA[@silverstar I should have asked first, what board are you using?]]></description>
                        <content:encoded><![CDATA[@silverstar I should have asked first, what board are you using?]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/arduino/">Arduino</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/arduino/setting-timer-interrupt-options-registers/#post-41753</guid>
                    </item>
				                    <item>
                        <title>RE: Setting Timer Interrupt Options (Registers?)</title>
                        <link>https://forum.dronebotworkshop.com/arduino/setting-timer-interrupt-options-registers/#post-41752</link>
                        <pubDate>Sun, 30 Jul 2023 22:56:51 +0000</pubDate>
                        <description><![CDATA[@silverstar I used to be an IBM Software field service rep and at one time was very familiar with hardware (also trained in hardware) and software interrupts.
Perhaps you did not see the fo...]]></description>
                        <content:encoded><![CDATA[<p>@silverstar I used to be an IBM Software field service rep and at one time was very familiar with hardware (also trained in hardware) and software interrupts.</p>
<p>Perhaps you did not see the following clip form the Arduino manual. Turning off interrupts is for ALL, not just your code so background tasks will also be affected. Maybe use CRITICAL_SECTION macros instead?</p>
7469
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/arduino/">Arduino</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/arduino/setting-timer-interrupt-options-registers/#post-41752</guid>
                    </item>
				                    <item>
                        <title>RE: Setting Timer Interrupt Options (Registers?)</title>
                        <link>https://forum.dronebotworkshop.com/arduino/setting-timer-interrupt-options-registers/#post-41751</link>
                        <pubDate>Sun, 30 Jul 2023 22:38:25 +0000</pubDate>
                        <description><![CDATA[@davee This application is a learning project to become more familiar with interrupts and how they work. I have mainframe interrupt experience so I understand the concept. I agree that with ...]]></description>
                        <content:encoded><![CDATA[@davee This application is a learning project to become more familiar with interrupts and how they work. I have mainframe interrupt experience so I understand the concept. I agree that with the suggestion to change gow I set the various bits. I issue a Nointerrupts ()when I set up the registers and issue an Interrupts(); when I think I am ready &gt; i have no idea what goes on during the period that I stop interrupts. I am thinking that really nothing happens: counters are not adjusted or tested. When interrupts resume,I assume it picks up where it left off. A guess. Give me a little time to test it a little.]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/arduino/">Arduino</category>                        <dc:creator>SilverStar</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/arduino/setting-timer-interrupt-options-registers/#post-41751</guid>
                    </item>
							        </channel>
        </rss>
		