⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 code.htm

📁 主要是8051源代码
💻 HTM
字号:
<HTML>
<HEAD>
<TITLE>"Programming and Customizing the 8051" Sample Code</TITLE>
<! Update History:>
<!                98.09.28 - Created>
</HEAD>
<BODY BACKGROUND="#ffffff" TEXT="000000" LINK="9805FF">
<table width="100%" CELLPADDING=10 BACKGROUND="canvas.jpg" border="canvas.jpg">
  <tr>
    <td rowspan=2 width=125 valign="top">
             <A HREF="http://www.myke.com"><font face="Helvetica"><strong>Myke Predko's Home Page</strong></font></A><p>
             <A HREF="/index.htm"><strong>Book CD-ROM Home</strong></A><p>
             <strong>Code</strong><br>
             <IMG SRC="dot.gif"><A HREF="browse.htm"><small>Browse Code</small></A><p>
             <A HREF="umps.htm"><strong>Loading UMPS</strong></A><p>
             <A HREF="datasht.htm"><strong>Device Data Sheets</strong></A><p>
             <A HREF="remote.htm"><strong>Internet Based 8051 Debugger</strong></A><p>
             <A HREF="page2.htm"><strong>8051 Resource Web Pages</strong></A>
    </td>
    <td bgcolor="#ffffff" valign="top"><IMG SRC="my_comp.gif" align="right" alt="Windows 'My Computer' Window with the book's CD-ROM">
            <h2>Sample Code</h2>

            <p align="left">Before you can begin working through the experiments or 
            any of the example applications, you will have to copy the files over onto
            your hard file.  This page will give you the instructions necessary to copy
            all the source files over to your "C" drive and maintain the subdirectory 
            information in the same format as described in the book.  <p>
            
            <p align="left">I have also included <A HREF="browse.htm">Browse Code</A> page 
            to allow you to look at the different source files on the CD-ROM with 
            references to the code's purpose.  <p><br><p>

            <p align="left">To copy the files over to your harddrive.  First open up
            an MS-DOS command line window.  This is done by moving your mouse to the 
            "Start" Task Bar, Selecting "Programs" and then clicking on "MS-DOS Prompt".  
            As I go through the process of copying the code, I recommend that you 
            continually compare what you see on this page to what is in the MS-DOS Prompt
            window.  <p>
        
            <p align="left">After requesting an "MS-DOS Prompt", you should end up with the 
            window:
            <img src="dos_c1.gif" width=575 height=375><p>

            <p align="left">From here, you have to go to the "root" directory.  <p>

            <p align="left">Type in "CD\"
            followed by pressing the "Enter" key to change the default to the root directory
            of the "C" drive:
            <img src="dos_c2.gif" width=575 height=375><p>

            <p align="left">Now, you can create an "8051" subdirectory by using the "md 8051"
            command and make it the default subdirectory with the "cd 8051" commands (both 
            with "Enter" following):
            <img src="dos_c3.gif" width=575 height=375><p>

            <p align="left">Next, the "code" subdirectory is created and "C:\8051\code" is
            made the new default subdirectory:
            <img src="dos_c4.gif" width=575 height=375><p>

            <p align="left">Now, you are ready to copy the source files from the CD-ROM.  This
            is accomplished by using the "xcopy D:code\*.* /s" Command.  <p>
 
            <p align="left">At the top of this page, I showed the disk allocation on my PC by 
            double clicking on "My Computer" on the Windows Desktop.  This shows that on the 
            PC I am working with, the CD-ROM is the "E" Drive.  You should know which drive 
            letter is used for the CD-ROM, because that is where <i>this</i> html file is 
            located.  In the screen shot below, I use letter "E" because that is the 
            appropriate one for the computer that I am using.
            <img src="dos_c5.gif" width=575 height=375><p>

            <p align="left">After pressing "Enter", you will see a number of files scroll 
            across the MS-DOS window.  
            <img src="dos_c6.gif" width=575 height=375><p>

            <p align="left">The "xcopy" command has created the subdirectories needed for 
            each experiment or application with the appropriate code copied into it.  The 
            following screen shot shows the files in a subdirectory:
            <img src="dos_c7.gif" width=575 height=375><p>

            <p align="left">You are now ready to load <A HREF="umps.htm">UMPS</A> and begin 
            to work through the code in "Programming and Customizing the 8051".
    </td> 
  </tr>
</table>
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -