<?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>ADC for MCBSTR9</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/23596/adc-for-mcbstr9</link><description> 
Hello Keil users, 

 
I&amp;#39;m trying to display a ADC value on eval board. 
( I already post a similar thread but this time is not the same). 

 
The problem is that ADC displayed on board varies between 0 and
10. And I want it to vary between 0 and 1024</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: ADC for MCBSTR9</title><link>https://community.arm.com/thread/114070?ContentTypeID=1</link><pubDate>Thu, 26 Jun 2008 15:07:52 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:09624f05-7ab9-4f80-941b-edb223a2e344</guid><dc:creator>adel tekari</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi Per,&lt;br /&gt;
Thanks for answering.&lt;br /&gt;
I want to display this value of ADC into the board.&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;Have you verified that the text buffer and the display has room
for the two last digits of the number?&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
this a good question.&lt;br /&gt;
in my text1 variable I defined this&lt;/p&gt;

&lt;pre&gt;
char text1[30];
&lt;/pre&gt;

&lt;p&gt;
Maybe it is not the best choice?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC for MCBSTR9</title><link>https://community.arm.com/thread/100821?ContentTypeID=1</link><pubDate>Thu, 26 Jun 2008 14:54:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f8f3f0c2-4b72-4e46-a947-773b415fde9b</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Splendid.&lt;/p&gt;

&lt;p&gt;
So if you have verified that you really manage to set all 10 bits
in the ADC, why then do you bring the ADC into the discussion?&lt;/p&gt;

&lt;p&gt;
Have you verified that the text buffer and the display has room
for the two last digits of the number?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC for MCBSTR9</title><link>https://community.arm.com/thread/76430?ContentTypeID=1</link><pubDate>Thu, 26 Jun 2008 13:56:44 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9ee28531-2645-4ab9-9ee7-efd53c910dda</guid><dc:creator>adel tekari</dc:creator><description>&lt;p&gt;&lt;p&gt;
Your solution is very professional.&lt;br /&gt;
I have to comment it. As comment what can I say for multiplying by
102.4 ?&lt;br /&gt;
You are tip is very helpfull and very professional&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC for MCBSTR9</title><link>https://community.arm.com/thread/100835?ContentTypeID=1</link><pubDate>Thu, 26 Jun 2008 13:54:38 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9d669350-d68c-43f9-98ef-fe1121665095</guid><dc:creator>adel tekari</dc:creator><description>&lt;p&gt;&lt;p&gt;
I have already verified the volage with UART.&lt;br /&gt;
In hexadecimal as maximal value I become 0b0000001111111111&lt;/p&gt;

&lt;p&gt;
That means no hardware problem.&lt;br /&gt;
Any suggestions?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC for MCBSTR9</title><link>https://community.arm.com/thread/89148?ContentTypeID=1</link><pubDate>Thu, 26 Jun 2008 13:14:05 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6bd68a33-a917-4b9c-9ce1-f3800cfe6f17</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Have you verified the hardware?&lt;/p&gt;

&lt;p&gt;
What voltage range does the circuit show that the ADC input should
have?&lt;/p&gt;

&lt;p&gt;
What voltage range have you measured on the ADC input?&lt;/p&gt;

&lt;p&gt;
What reading does the data sheet say that your ADC should return
for such input voltages and with the voltage reference that your
board is using?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC for MCBSTR9</title><link>https://community.arm.com/thread/51906?ContentTypeID=1</link><pubDate>Thu, 26 Jun 2008 13:03:32 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:74672ad9-b0c1-4687-8d6c-8737eb8d9829</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;The problem is that ADC displayed on board varies between 0
and 10. And I want it to vary between 0 and 1024.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;Any idea ?&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Just multiply it by 102.4?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>