<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2281610852867162191</id><updated>2024-09-06T11:37:16.479-07:00</updated><title type='text'>microcontroler</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://rinkiarora.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2281610852867162191/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://rinkiarora.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>rinki arora</name><uri>http://www.blogger.com/profile/05943406441392597530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2281610852867162191.post-240320599273004702</id><published>2011-11-17T23:18:00.000-08:00</published><updated>2011-11-17T23:22:33.673-08:00</updated><title type='text'>keil starter</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;mso-cellspacing: 0in; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 100.0%;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;   &lt;td style=&quot;padding: 0in 0in 0in 0in;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: #000066; font-family: &#39;Times New Roman&#39;, serif; font-size: 18pt;&quot;&gt;Using the KEIL   environment&lt;br /&gt;
&lt;img alt=&quot;http://www.ikalogic.com/img/line2.gif&quot; height=&quot;5&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image002.gif&quot; v:shapes=&quot;Picture_x0020_1&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 13.5pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;KEIL uVision is the name of a software dedicated to the development and testing of a family of microcontrollers based on 8051 technology, like the 89S52 which we are going to use along this tutorial. You can can download an evaluation version of KEIL at their website:&lt;a href=&quot;http://www.keil.com/c51/&quot;&gt;&lt;span style=&quot;color: #004a95; text-decoration: none;&quot;&gt;http://www.keil.com/c51/&lt;/span&gt;&lt;/a&gt;. Most versions share merely the same interface, this tutorial uses KEIL C51 uVision 3 with the C51 compiler v8.05a.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;To create a project, write and test the previous example source code, follow the following steps:&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;img alt=&quot;http://www.ikalogic.com/img/a3.gif&quot; border=&quot;0&quot; height=&quot;9&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image003.gif&quot; v:shapes=&quot;Picture_x0020_2&quot; width=&quot;8&quot; /&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Open Keil and start a new project:&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;mso-cellspacing: 0in; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 100.0%;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;   &lt;td style=&quot;padding: 0in 0in 0in 0in;&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;img alt=&quot;http://www.ikalogic.com/art_pics/8051_tut/keil1.jpg&quot; height=&quot;602&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image001.jpg&quot; style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 13px; line-height: 14px;&quot; v:shapes=&quot;Picture_x0020_3&quot; width=&quot;621&quot; /&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 10pt;&quot;&gt;&lt;img alt=&quot;http://www.ikalogic.com/art_pics/8051_tut/keil1.jpg&quot; border=&quot;0&quot; height=&quot;387&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image004.jpg&quot; v:shapes=&quot;Picture_x0020_3&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &#39;Times New Roman&#39;, serif; font-size: 7.5pt;&quot;&gt;Figure: 2.8.a&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 13.5pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;b&gt;&lt;img alt=&quot;http://www.ikalogic.com/img/a3.gif&quot; border=&quot;0&quot; height=&quot;9&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image003.gif&quot; v:shapes=&quot;Picture_x0020_4&quot; width=&quot;8&quot; /&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;You will prompted to chose a name for your new project, Create a separate folder where all the files of your project will be stored, chose a name and click save. The following window will appear, where you will be asked to select a device for Target &#39;Target 1&#39;:&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;mso-cellspacing: 0in; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 100.0%;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;   &lt;td style=&quot;padding: 0in 0in 0in 0in;&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 10pt;&quot;&gt;&lt;img alt=&quot;http://www.ikalogic.com/art_pics/8051_tut/keil2.jpg&quot; border=&quot;0&quot; height=&quot;602&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image005.jpg&quot; v:shapes=&quot;Picture_x0020_5&quot; width=&quot;621&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &#39;Times New Roman&#39;, serif; font-size: 7.5pt;&quot;&gt;Figure: 2.8.b&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 13.5pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;b&gt;&lt;img alt=&quot;http://www.ikalogic.com/img/a3.gif&quot; border=&quot;0&quot; height=&quot;9&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image003.gif&quot; v:shapes=&quot;Picture_x0020_6&quot; width=&quot;8&quot; /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;From the list at the left, seek for the brand name&amp;nbsp;&lt;b&gt;&lt;i&gt;ATMEL&lt;/i&gt;&lt;/b&gt;, then under ATMEL, select&amp;nbsp;&lt;b&gt;&lt;i&gt;AT89S52&lt;/i&gt;&lt;/b&gt;. You will notice that a brief description of the device appears on the right. Leave the two upper check boxes unchecked and click OK. The AT89S52 will be called your &#39;&lt;i&gt;Target device&lt;/i&gt;&#39;, which is the final destination of your source code. You will be asked whether to &#39;&lt;b&gt;&lt;i&gt;copy standard 8051 startup code&lt;/i&gt;&lt;/b&gt;&#39;&amp;nbsp;&lt;b&gt;click No&lt;/b&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;img alt=&quot;http://www.ikalogic.com/img/a3.gif&quot; border=&quot;0&quot; height=&quot;9&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image003.gif&quot; v:shapes=&quot;Picture_x0020_7&quot; width=&quot;8&quot; /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;click&amp;nbsp;&lt;b&gt;File&lt;/b&gt;,&amp;nbsp;&lt;b&gt;New&lt;/b&gt;, and something similar to the following window should appear. The box named &#39;Text1&#39; is where your code should be written later.&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;mso-cellspacing: 0in; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 100.0%;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;   &lt;td style=&quot;padding: 0in 0in 0in 0in;&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 10pt;&quot;&gt;&lt;img alt=&quot;http://www.ikalogic.com/art_pics/8051_tut/keil3.jpg&quot; border=&quot;0&quot; height=&quot;602&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image006.jpg&quot; v:shapes=&quot;Picture_x0020_8&quot; width=&quot;621&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &#39;Times New Roman&#39;, serif; font-size: 7.5pt;&quot;&gt;Figure: 2.8.c&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 13.5pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;b&gt;&lt;img alt=&quot;http://www.ikalogic.com/img/a3.gif&quot; border=&quot;0&quot; height=&quot;9&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image003.gif&quot; v:shapes=&quot;Picture_x0020_9&quot; width=&quot;8&quot; /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;Now you have to click &#39;File, Save as&#39; and chose a file name for your source code ending with the letter &#39;.c&#39;. You can name is &#39;code.c&#39; for example, and click save. Then you have to add this file to your project work space at the left as shown in the following screen shot:&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;mso-cellspacing: 0in; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 100.0%;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;   &lt;td style=&quot;padding: 0in 0in 0in 0in;&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 10pt;&quot;&gt;&lt;img alt=&quot;http://www.ikalogic.com/art_pics/8051_tut/keil4.jpg&quot; border=&quot;0&quot; height=&quot;602&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image007.jpg&quot; v:shapes=&quot;Picture_x0020_10&quot; width=&quot;621&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &#39;Times New Roman&#39;, serif; font-size: 7.5pt;&quot;&gt;Figure: 2.8.d&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 13.5pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;b&gt;&lt;img alt=&quot;http://www.ikalogic.com/img/a3.gif&quot; border=&quot;0&quot; height=&quot;9&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image003.gif&quot; v:shapes=&quot;Picture_x0020_11&quot; width=&quot;8&quot; /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;After right-clicking on &#39;&lt;b&gt;&lt;i&gt;source group 1&lt;/i&gt;&lt;/b&gt;&#39;, click on &#39;&lt;b&gt;&lt;i&gt;Add files to group...&lt;/i&gt;&lt;/b&gt;&#39;, then you will be prompted to browse the file to add to &#39;source group 1&#39;, chose the file that you just saved, eventually &#39;code.c&#39; and add it to the source group. You will notice that the file is added to the project tree at the left.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;img alt=&quot;http://www.ikalogic.com/img/a3.gif&quot; border=&quot;0&quot; height=&quot;9&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image003.gif&quot; v:shapes=&quot;Picture_x0020_12&quot; width=&quot;8&quot; /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;In some versions of this software you have to turn ON manually the option to generate HEX files. make sure it is turned ON, by right-clicking on&amp;nbsp;&lt;b&gt;target 1&lt;/b&gt;,&amp;nbsp;&lt;b&gt;Options for target &#39;target 1&#39;&lt;/b&gt;, then under the &#39;&lt;b&gt;output&lt;/b&gt;&#39; tab, by checking the box &#39;&lt;b&gt;generate HEX file&lt;/b&gt;&#39;. This step is very important as the HEX file is the compiled output of your project that is going to be transferred to the microcontroller.&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;img alt=&quot;http://www.ikalogic.com/img/a3.gif&quot; border=&quot;0&quot; height=&quot;9&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image003.gif&quot; v:shapes=&quot;Picture_x0020_13&quot; width=&quot;8&quot; /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;You can then start to write the source code in the window titled &#39;code.c&#39; then before testing your source code, you have to compile your source code, and correct eventual syntax errors. In KEIL IDE, this step is called &#39;rebuild all targets&#39; and has this icon:&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;img alt=&quot;http://www.ikalogic.com/art_pics/8051_tut/rebuild_but.jpg&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image008.jpg&quot; v:shapes=&quot;Picture_x0020_14&quot; width=&quot;22&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;mso-cellspacing: 0in; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 100.0%;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;   &lt;td style=&quot;padding: 0in 0in 0in 0in;&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 10pt;&quot;&gt;&lt;img alt=&quot;http://www.ikalogic.com/art_pics/8051_tut/keil5.jpg&quot; border=&quot;0&quot; height=&quot;602&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image009.jpg&quot; v:shapes=&quot;Picture_x0020_15&quot; width=&quot;621&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &#39;Times New Roman&#39;, serif; font-size: 7.5pt;&quot;&gt;Figure: 2.8.e&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 13.5pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;img alt=&quot;http://www.ikalogic.com/img/a3.gif&quot; border=&quot;0&quot; height=&quot;9&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image003.gif&quot; v:shapes=&quot;Picture_x0020_16&quot; width=&quot;8&quot; /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;You can use the output window to track eventual syntax errors, but also to check the FLASH memory occupied by the program (code = 49) as well as the registers occupied in the RAM (data = 9). If after rebuilding the targets, the &#39;output window&#39; shows that there is&lt;b&gt;&amp;nbsp;0 error&lt;/b&gt;, then you are ready to test the performance of your code. In keil, like in most development environment, this step is called Debugging, and has this icon:&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;img alt=&quot;http://www.ikalogic.com/art_pics/8051_tut/debug_but.jpg&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image010.jpg&quot; v:shapes=&quot;Picture_x0020_17&quot; width=&quot;22&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;. After clicking on the debug icon, you will notice that some part of the user interface will change, some new icons will appear, like the run icon circled in the following figure:&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;mso-cellspacing: 0in; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 100.0%;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;   &lt;td style=&quot;padding: 0in 0in 0in 0in;&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 10pt;&quot;&gt;&lt;img alt=&quot;http://www.ikalogic.com/art_pics/8051_tut/keil6.jpg&quot; border=&quot;0&quot; height=&quot;602&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image011.jpg&quot; v:shapes=&quot;Picture_x0020_18&quot; width=&quot;621&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: &#39;Times New Roman&#39;, serif; font-size: 7.5pt;&quot;&gt;Figure: 2.8.f&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;img alt=&quot;http://www.ikalogic.com/img/a3.gif&quot; border=&quot;0&quot; height=&quot;9&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image003.gif&quot; v:shapes=&quot;Picture_x0020_19&quot; width=&quot;8&quot; /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;&amp;nbsp;You can click on the &#39;Run&#39; icon and the execution of the program will start. In our example, you can see the behavior of the pin 0 or port one, but clicking on &#39;peripherals, I/O ports, Port 1&#39;.&amp;nbsp;You can always stop the execution of the program by clicking on the stop button (&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;img alt=&quot;http://www.ikalogic.com/art_pics/8051_tut/stop_but.jpg&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image012.jpg&quot; v:shapes=&quot;Picture_x0020_20&quot; width=&quot;22&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;) and you can simulate a reset by clicking on the &#39;reset&#39; button&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;img alt=&quot;http://www.ikalogic.com/art_pics/8051_tut/rst_but.jpg&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image013.jpg&quot; v:shapes=&quot;Picture_x0020_21&quot; width=&quot;22&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;You can also control the execution of the program using the following icons:&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;img alt=&quot;http://www.ikalogic.com/art_pics/8051_tut/step_but.jpg&quot; border=&quot;0&quot; height=&quot;21&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image014.jpg&quot; v:shapes=&quot;Picture_x0020_22&quot; width=&quot;93&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;&amp;nbsp;which allows you to follow the execution step by step. Then, when you&#39;re finished with the debugging, you can always return to the programming interface by clicking again on the debug button (&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;img alt=&quot;http://www.ikalogic.com/art_pics/8051_tut/debug_but.jpg&quot; border=&quot;0&quot; height=&quot;18&quot; src=&quot;file:///C:/DOCUME~1/arora/LOCALS~1/Temp/msohtmlclip1/01/clip_image010.jpg&quot; v:shapes=&quot;Picture_x0020_23&quot; width=&quot;22&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;There are many other features to discover in the KEIL IDE. You will easily discover them in first couple hours of practice, and the more important of them will be presented along the rest of this tutorial.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rinkiarora.blogspot.com/feeds/240320599273004702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rinkiarora.blogspot.com/2011/11/keil-starter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2281610852867162191/posts/default/240320599273004702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2281610852867162191/posts/default/240320599273004702'/><link rel='alternate' type='text/html' href='http://rinkiarora.blogspot.com/2011/11/keil-starter.html' title='keil starter'/><author><name>rinki arora</name><uri>http://www.blogger.com/profile/05943406441392597530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>