<?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>some trouble whith the use of isr_send_signal()</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/16556/some-trouble-whith-the-use-of-isr_send_signal</link><description> HI, 
I think I have some trouble whith the use of isr_send_signal(), if the task is already in &amp;quot;active state&amp;quot;. 
Please can you tell me what happend in this case : 
 
* Interrupt 0 each 100 ms 
* some times, the fonction mesure()take more time than 100</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: some trouble whith the use of isr_send_signal()</title><link>https://community.arm.com/thread/40820?ContentTypeID=1</link><pubDate>Thu, 28 Aug 2003 03:40:08 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5ffcdaa3-5fe6-4715-ace0-acf43c8101f4</guid><dc:creator>Christian FAURE</dc:creator><description>&lt;p&gt;HI,&lt;br /&gt;
I think I have some trouble whith the use of isr_send_signal(): A task is already in a &amp;quot;active state&amp;quot; at the same time when isr_send_signal() to start this task is effective.&lt;br /&gt;
Please can you tell me what happend in this case :&lt;br /&gt;
&lt;br /&gt;
* Interrupt 0 each 100 ms. This programm use &amp;#39;isr_send_signal&amp;#39; to start task_1, so the mesure() fonction is called each 100 ms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* But some times, the fonction mesure() takes a little more time than 100 ms : So what happends !&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;
/* my example*/ :
void task_1 (void)  _task_ MESURE_priority_ 1
{
char i;
while (1)
	{
	i=os_wait(K_SIG,0,0);
	if(i==3)
	        {
		os_clear_signal(EVT_1);
		Mesure();
		}
	}
}

void itext0(void) interrupt 0 using 1
{
...
isr_send_signal(EVT_1);
...
}

&lt;/pre&gt;
&lt;br /&gt;
Thankyou for somebody HELP !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>