<?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>STR7 external interrupt</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/37024/str7-external-interrupt</link><description> 
Hello, 

 
I&amp;#39;m using a STR710FZ2 uC with an external adc. When conversion is
ready, the adc toggles a pin low which is connected to P1.11. 

 
I want an interrupt to be generated on the falling edge of P1.11
so the adc value can be read. 

 
As far</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: STR7 external interrupt</title><link>https://community.arm.com/thread/84542?ContentTypeID=1</link><pubDate>Fri, 06 Oct 2006 01:43:10 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ccedb12b-fb77-4e9d-89fb-197aa6cd977e</guid><dc:creator>Sasa Bunetic</dc:creator><description>&lt;p&gt;&lt;p&gt;
It&amp;#39;s possible that you use another interrupt with higher priority,
so the XTI interrupt is not handled.&lt;/p&gt;

&lt;p&gt;
The easiest way to solve this problem would be, that you sent me
the whole project, so that I can debug it.&lt;/p&gt;

&lt;p&gt;
Thanks,&lt;br /&gt;
Sasa&lt;br /&gt;
E-mail: sb@keil.com&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STR7 external interrupt</title><link>https://community.arm.com/thread/74412?ContentTypeID=1</link><pubDate>Thu, 05 Oct 2006 03:40:16 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ef99dba1-be8d-4b38-858c-6f2486d047bb</guid><dc:creator>Sander Wiggrs</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanks for your reaction but I have read the manual to and for
some weird reason it doesn&amp;#39;t work in practice.&lt;/p&gt;

&lt;p&gt;
When I use the debugger all the correct bits are set in the right
order. and I can see that the pending bit in the EIC is set, but I
don&amp;#39;t seem to get into the xti irq_handler.&lt;/p&gt;

&lt;p&gt;
any suggestions??&lt;/p&gt;

&lt;p&gt;
kind regards&lt;br /&gt;
Sander&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STR7 external interrupt</title><link>https://community.arm.com/thread/46939?ContentTypeID=1</link><pubDate>Thu, 05 Oct 2006 01:43:32 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e7a3cf9b-cd36-4f09-a0a8-036d222673a9</guid><dc:creator>Sasa Bunetic</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hello&lt;/p&gt;

&lt;p&gt;
Please follow next steps:&lt;/p&gt;

&lt;p&gt;
1. Configure the mask bits of the 16 wake-up lines (XTI_MRL,
XTI_MRH).&lt;br /&gt;
2. Configure the triggering edge registers of the wake-up lines
(XTI_PRL, XTI_TRH).&lt;br /&gt;
3. In the EIC registers, enable the IRQ5 interrupt channel so an
interrupt coming from one of the 16 wake-up lines can be correctly
acknowledged.&lt;br /&gt;
4. Clear the WKUP-INT bit in the XTI_CTRL register to disable Wake-up
Mode and enable interrupt mode. Set the ID1S bit in the XTI_CTRL
register to enable the 16 wake-up lines as external interrupt source
lines.&lt;br /&gt;
5. Configure port pin as input.&lt;/p&gt;

&lt;p&gt;
In your case:&lt;br /&gt;
1. XTI_MRL = 0x40&lt;br /&gt;
2. XTI_PRL = 0x00&lt;br /&gt;
3. EIC_IER = 0x00000020&lt;br /&gt;
4. XTI_CTRL = 0x02&lt;br /&gt;
5. GPIO1_PC0 = 0x0800&lt;/p&gt;

&lt;p&gt;
This procedure is tested in simulator and it works.&lt;/p&gt;

&lt;p&gt;
Regards,&lt;br /&gt;
Sasa&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>