<?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>run pwm during interrupt</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/32943/run-pwm-during-interrupt</link><description> 
Hi every body 
i am using an LPC-1768 MC to run a pwm. 
every thing works good. but when a non-pwm long-time (500ms)
interrupt occurs, the pwm doesn&amp;#39;t work. 
is there any trick or setup to continue running pwm in interrupt
handler? 

 
thanks 
Amir</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: run pwm during interrupt</title><link>https://community.arm.com/thread/107647?ContentTypeID=1</link><pubDate>Sat, 26 Apr 2014 12:33:44 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9cbbf69b-48d1-4203-8696-996d63e9966e</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Fix your 500ms interrupt instead.&lt;/p&gt;

&lt;p&gt;
Interrupt handlers should do their task in a minimum amount of
time and then instantly return again.&lt;/p&gt;

&lt;p&gt;
How well do you think your PC would work, if the processor now and
then locked up in a 500ms interrupt? You think it would be acceptable
if your mouse cursor froze for 500ms, and no key presses were
accepted?&lt;/p&gt;

&lt;p&gt;
If something takes 500ms to happen, then you need to solve that by
multiple interrupts - maybe one interrupt at the start, and one at
the end. Or maybe an interrupt that reacts to a pin change.&lt;/p&gt;

&lt;p&gt;
But you should not do any busy-waiting in an interrupt
handler.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: run pwm during interrupt</title><link>https://community.arm.com/thread/92451?ContentTypeID=1</link><pubDate>Sat, 26 Apr 2014 11:32:54 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:398b7686-43c8-403b-82c0-956bacbeefc0</guid><dc:creator>Amir Hejazi</dc:creator><description>&lt;p&gt;&lt;p&gt;
&amp;gt;&amp;gt;That&amp;#39;s a profoundly bad idea. So don&amp;#39;t do that.&lt;br /&gt;
thanks, how can i run the pwm in interrupt handler?&lt;br /&gt;
tiny tear down during calling interrupt is negligible!&lt;/p&gt;

&lt;p&gt;
Amir&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: run pwm during interrupt</title><link>https://community.arm.com/thread/62766?ContentTypeID=1</link><pubDate>Sat, 26 Apr 2014 11:22:18 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3e50a6e1-d155-4198-8770-ea433a5a2f18</guid><dc:creator>HansBernhard Broeker</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;long-time (500ms) interrupt occurs&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
That&amp;#39;s a profoundly &lt;b&gt;bad idea&lt;/b&gt;. So don&amp;#39;t do that.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>