<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/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/"><channel><title>Trying to set external interrupts to zero</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/30603/trying-to-set-external-interrupts-to-zero</link><description> 
Hi, 
can anyone help me understand how to set external interrupts to
zero. 
I am using a dc motor with an optoswitch and displaying the output in
rpm on a LCD display. The calculation for rpm uses capture mode
register of module zero to capture the</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Trying to set external interrupts to zero</title><link>https://community.arm.com/thread/80294?ContentTypeID=1</link><pubDate>Tue, 05 Jun 2012 00:03:09 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:28df1986-f122-4269-abac-c22ecc00a33b</guid><dc:creator>Edwin Massold</dc:creator><description>&lt;p&gt;&lt;p&gt;
I think I did something very similar to what you have suggested. I
just assigned a variable to increment to 10 as soon as the motor
stopped spinning, then reset the timer to zero. Which seems to work
for the moment, I now have to add a PID system, so hopefully it still
works after this addition.&lt;br /&gt;
Thank you for your help though, much appreciated.&lt;br /&gt;
Edwin&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to set external interrupts to zero</title><link>https://community.arm.com/thread/67504?ContentTypeID=1</link><pubDate>Mon, 04 Jun 2012 23:49:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d5da4f76-e67e-4e6e-9880-66de140817b2</guid><dc:creator>Dejan Durdenic</dc:creator><description>&lt;p&gt;&lt;p&gt;
Use a timer that will be reset by rpm input (it does not have to
be hardware-reset, you can reset the timer in the rpm interrupt
routine). If the rpm input is not toggling (motor stopped), your
timer will time-out and then you know that your rpm is zero. Set the
timer period to be longer than the lowest speed of interest.&lt;/p&gt;

&lt;p&gt;
- Dejan&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to set external interrupts to zero</title><link>https://community.arm.com/thread/60779?ContentTypeID=1</link><pubDate>Mon, 04 Jun 2012 05:32:52 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:39d2644e-792f-4b19-8a32-3643f99f4ce1</guid><dc:creator>&amp;#178;erik malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
yes, present your problem in such a way that those that can not
read your brain can understand it.&lt;/p&gt;

&lt;p&gt;
as Andy likes to say &amp;quot;explain it to the teddy bear&amp;quot;&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>