<?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>arm7 - AD simulating</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/37303/arm7---ad-simulating</link><description> 
Does Keil software simulate the AD converter? I had been trying to
use an AD interrupt (finish of the convertion), but it didn&amp;#39;t occur
(after starting the AD of course). 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: arm7 - AD simulating</title><link>https://community.arm.com/thread/112942?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2007 08:42:17 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cf42cae1-3496-47fb-94ee-ddbb01b80510</guid><dc:creator>Piotr Wolny</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thank You.&lt;/p&gt;

&lt;p&gt;
P.S. No, I don&amp;#39;t. I won&amp;#39;t do this mistake again.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: arm7 - AD simulating</title><link>https://community.arm.com/thread/99307?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2007 08:25:49 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:475d9c4d-5c85-4ce7-b97f-744074a325b2</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
I wasn&amp;#39;t talking about support for ADC in the chip, but if the ADC
was supported in the Keil simulation.&lt;/p&gt;

&lt;p&gt;
This page doesn&amp;#39;t mention that the ADC is simulated for the
2144:&lt;br /&gt;
&lt;a href="http://www.keil.com/dd/chip/3933.htm"&gt;http://www.keil.com/dd/chip/3933.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
By the way: Do did read the instructions about how to post source
code, did you?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: arm7 - AD simulating</title><link>https://community.arm.com/thread/75174?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2007 07:59:31 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5634da8e-5347-439f-88b9-b605c79b28b6</guid><dc:creator>Piotr Wolny</dc:creator><description>&lt;p&gt;&lt;p&gt;
I use lpc2144, which support this interrupt. An interrupt doesn&amp;#39;t
occur. Why?&lt;br /&gt;
That&amp;#39;s my code:&lt;/p&gt;

&lt;p&gt;
int meas;&lt;/p&gt;

&lt;p&gt;
void AD_Isr(void) __irq&lt;br /&gt;
{ meas = AD0DR1 ;&lt;br /&gt;
VICVectAddr = 0; // reset VIC&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;
int main (void) {&lt;/p&gt;

&lt;p&gt;
VICVectAddr2 = (unsigned long)AD_Isr;&lt;br /&gt;
VICVectCntl2 = 0x00000032;// Channel1 AD as interrupt&lt;br /&gt;
VICIntEnable |= 0x00040000;//Enable the AD interrupt&lt;br /&gt;
AD0INTEN = 0x00000002; // Enable channel_1 interrupt&lt;br /&gt;
AD0CR = 0x00000A02; // select channel_1 (P0.28)&lt;br /&gt;
AD0CR |= 0x1000000; // start AD conversion !!!&lt;/p&gt;

&lt;p&gt;
while(1){}&lt;br /&gt;
}&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: arm7 - AD simulating</title><link>https://community.arm.com/thread/50825?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2007 06:15:14 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ce6c823d-6212-40e0-bb1f-408a33afc459</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Depends on if the ADC is supported for the specific chip.&lt;/p&gt;

&lt;p&gt;
If supported, then the ADC conversion interrupt will work in the
simulator.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>