<?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>The most simple A51 program</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/18665/the-most-simple-a51-program</link><description> Hi 
I just bought the MCB900 ver.4 with LPC935. 
I have programmed the first demo program into the flash - CheckLed - and it works fine on the eval board. 
 
I have many experiences with the old non Keil DOS assembler but I don&amp;#39;t know yet to manage Keil</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: The most simple A51 program</title><link>https://community.arm.com/thread/149160?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2006 14:00:38 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:eccf0337-c2e3-4591-b8d4-15a7a0ab2fb3</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;They seem functionally the same to me.&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Not at all.&lt;br /&gt;
&lt;br /&gt;
MOV is a single processor instruction.&lt;br /&gt;
&lt;br /&gt;
putchar is a &lt;i&gt;function&lt;/i&gt;; ie, a sequence of instructions that you &lt;b&gt;call&lt;/b&gt; to perform some required operation.&lt;br /&gt;
&lt;br /&gt;
The putchar function in the ASAMPLE expample first waits for the TI flag to be set, then clears it, then uses a MOV instruction to copy the byte from the Accumulator into SBUF, then returns.&lt;br /&gt;
&lt;br /&gt;
The putchar function provided in the C51 library also expands &amp;#39;\n&amp;#39; into CR LF and handles XON/XOFF software flow control.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The most simple A51 program</title><link>https://community.arm.com/thread/130015?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2006 13:19:08 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:76535217-fa95-4c66-ac97-00951da4d61b</guid><dc:creator>John  Ilse</dc:creator><description>&lt;p&gt;Hi Folks,  Could someone explain the difference between using putchar and mov to send data to a serial port?  They seem functionally the same to me.&lt;br /&gt;
thanks,&lt;br /&gt;
&lt;br /&gt;
John&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The most simple A51 program</title><link>https://community.arm.com/thread/123107?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2006 13:32:39 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:06b59c07-2835-4825-8565-cdf2ebbeef79</guid><dc:creator>mike hill</dc:creator><description>&lt;p&gt;A.W. Neil,&lt;br /&gt;
many thanks for your help.&lt;br /&gt;
I only added the following 3 lines to the ASAMPLE1 and on board LEDs light in according with the third line. From now it will go more easy.&lt;br /&gt;
&lt;br /&gt;
sfr P2M1   = 0xA4;&lt;br /&gt;
MOV	  P2M1,#0&lt;br /&gt;
MOV	  P2,#01010101B&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The most simple A51 program</title><link>https://community.arm.com/thread/111872?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2006 11:47:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:dac94392-da60-4587-a54d-d5bba951c17b</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;But I need a real working assembler project not only *.A51 file.&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
My CD has a complete set of project files: &lt;pre&gt;D:\KEIL\c51\Examples\A51&amp;gt;dir
 Volume in drive D is LPC_2_2003
 Volume Serial Number is EA7C-B5D9

 Directory of D:\KEIL\c51\Examples\A51

01/01/1601  12:34    &amp;lt;DIR&amp;gt;          .
01/01/1601  12:34    &amp;lt;DIR&amp;gt;          ..
13/09/1996  06:10                84 ABSTRACT.TXT
08/09/1999  10:49               251 ASAMPLE.BAT
17/09/1999  14:35             1,004 ASAMPLE.OPT
17/09/1999  14:35             1,865 ASAMPLE.UV2
17/06/1989  12:30             1,083 ASAMPLE1.A51
08/09/1999  10:46               804 ASAMPLE2.A51
17/06/1989  12:30               344 ASAMPLE3.A51
13/09/1996  06:10             9,341 TEMPLATE.A51
               8 File(s)         14,776 bytes
               2 Dir(s)               0 bytes free&lt;/pre&gt;
&lt;b&gt;ASAMPLE.UV2&lt;/b&gt; is the uVision Project file - double-click it, and the Project should open in uVision.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ASAMPLE1.A51&lt;/b&gt; is the &amp;quot;main&amp;quot; module;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ASAMPLE2.A51&lt;/b&gt; contains the string output routines PUTSTRING and PUT_CRLF;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ASAMPLE3.A51&lt;/b&gt; contains the character output routine PUTCHAR.&lt;br /&gt;
&lt;br /&gt;
So there you have a complete real working assembler project!&lt;br /&gt;
&lt;br /&gt;
The operation of the uVision interface is not language specific - so the process of creating a project, adding files to the project, building the project, debugging, etc, etc are all as described in the &lt;i&gt;Getting Started&lt;/i&gt; guide.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The most simple A51 program</title><link>https://community.arm.com/thread/97770?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2006 10:38:55 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:73dc67f0-7510-44c6-93ee-3dd02c1a944d</guid><dc:creator>mike hill</dc:creator><description>&lt;p&gt;Thank you, Neil, for your reply.&lt;br /&gt;
Of course I have that files in the mentioned directory.&lt;br /&gt;
&lt;br /&gt;
But I need a real working assembler project not only *.A51 file. I still don&amp;#39;t know to write a &amp;#39;&amp;#39;project&amp;#39;&amp;#39; with a few lines assembler code, which will - for example - force F0h to the P2 (this will ligh on four P2 LEDs).&lt;br /&gt;
Can somebody post that few lines, please ?&lt;br /&gt;
Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The most simple A51 program</title><link>https://community.arm.com/thread/87529?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2006 09:00:14 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:da4d6597-d2c6-4a7d-ae1b-b6de95f800c9</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;I have just find the subject 7012&amp;quot;&lt;/i&gt;&lt;br /&gt;
Eh?&lt;br /&gt;
&lt;br /&gt;
Do you mean this:&lt;br /&gt;
&lt;a href="http://www.keil.com/forum/docs/thread7012.asp"&gt;http://www.keil.com/forum/docs/thread7012.asp&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The most simple A51 program</title><link>https://community.arm.com/thread/45329?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2006 05:07:21 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:fe5a552f-fbfd-4d98-97ef-c073fc591c8b</guid><dc:creator>mike hill</dc:creator><description>&lt;p&gt;Excuse me, please, I have just find the subject 7012, where this question was done.&lt;br /&gt;
So please you don&amp;#39;t need to reply on my question again. Sorry.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>