EMBEDDDED-PROGRAM.rar

  • PUDN用户
    了解作者
  • matlab
    开发工具
  • 12KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 3
    下载次数
  • 2014-10-19 21:13
    上传日期
PROGRAM IS USED FOR Display pulses on the LCD connected at port P1.
EMBEDDDED-PROGRAM.rar
  • EMBEDDDED PROGRAM.docx
    14.4KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/622b95d53d2fbb00078469a3/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/622b95d53d2fbb00078469a3/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">ORG 00H</div><div class="t m0 x1 h3 y3 ff1 fs0 fc0 sc0 ls0 ws0">AJMP START</div><div class="t m0 x1 h4 y4 ff2 fs1 fc0 sc0 ls0 ws0">Lab Manual of Microcontroller and Inter<span class="_ _0"></span>facing Page 48</div><div class="t m0 x1 h3 y5 ff1 fs0 fc0 sc0 ls0 ws0">ORG 03H</div><div class="t m0 x1 h3 y6 ff1 fs0 fc0 sc0 ls0 ws0">RETI</div><div class="t m0 x1 h3 y7 ff1 fs0 fc0 sc0 ls0 ws0">ORG 0BH</div><div class="t m0 x1 h3 y8 ff1 fs0 fc0 sc0 ls0 ws0">RETI</div><div class="t m0 x1 h3 y9 ff1 fs0 fc0 sc0 ls0 ws0">ORG 13H</div><div class="t m0 x1 h3 ya ff1 fs0 fc0 sc0 ls0 ws0">RETI</div><div class="t m0 x1 h3 yb ff1 fs0 fc0 sc0 ls0 ws0">ORG 1BH</div><div class="t m0 x1 h3 yc ff1 fs0 fc0 sc0 ls0 ws0">RETI</div><div class="t m0 x1 h3 yd ff1 fs0 fc0 sc0 ls0 ws0">ORG 23H</div><div class="t m0 x1 h3 ye ff1 fs0 fc0 sc0 ls0 ws0">RETI</div><div class="t m0 x1 h3 yf ff1 fs0 fc0 sc0 ls0 ws0">START:</div><div class="t m0 x1 h3 y10 ff1 fs0 fc0 sc0 ls0 ws0">MOV SP,#60H</div><div class="t m0 x1 h3 y11 ff1 fs0 fc0 sc0 ls0 ws0">MOV P1,#00H ;Set P1 as an output port</div><div class="t m0 x1 h3 y12 ff1 fs0 fc0 sc0 ls0 ws0">MOV P3,#00h ;Set P3 as an output port</div><div class="t m0 x1 h3 y13 ff1 fs0 fc0 sc0 ls0 ws0">MOV A,#38H ;Initialize LCD, 2 lines, 5X7 matr<span class="_ _0"></span>ix</div><div class="t m0 x1 h3 y14 ff1 fs0 fc0 sc0 ls0 ws0">ACALL COMMAND ;Issue command to the LCD</div><div class="t m0 x1 h3 y15 ff1 fs0 fc0 sc0 ls0 ws0">MOV A,#0EH</div><div class="t m0 x1 h3 y16 ff1 fs0 fc0 sc0 ls0 ws0">ACALL COMMAND ;LCD ON, Cursor ON</div><div class="t m0 x1 h3 y17 ff1 fs0 fc0 sc0 ls0 ws0">MOV A,#01H</div><div class="t m0 x1 h3 y18 ff1 fs0 fc0 sc0 ls0 ws0">ACALL COMMAND ;Clear LCD</div><div class="t m0 x1 h3 y19 ff1 fs0 fc0 sc0 ls0 ws0">MOV A,#06H</div><div class="t m0 x1 h3 y1a ff1 fs0 fc0 sc0 ls0 ws0">ACALL COMMAND ;Shift cursor right</div><div class="t m0 x1 h3 y1b ff1 fs0 fc0 sc0 ls0 ws0">MOV A,#80H</div><div class="t m0 x1 h3 y1c ff1 fs0 fc0 sc0 ls0 ws0">ACALL COMMAND ;Force cursor at begining of the first line</div><div class="t m0 x1 h3 y1d ff1 fs0 fc0 sc0 ls0 ws0">MOV DPTR,#MSG ;Point to message "Freq:"</div><div class="t m0 x1 h3 y1e ff1 fs0 fc0 sc0 ls0 ws0">ACALL DISP_MSG ;Display message on first line</div><div class="t m0 x1 h3 y1f ff1 fs0 fc0 sc0 ls0 ws0">MOV TCON,#00H ;Timer 0 &amp; Timer 1 off, flags in reset con<span class="_ _0"></span>dition</div><div class="t m0 x1 h3 y20 ff1 fs0 fc0 sc0 ls0 ws0">MOV TMOD,#15H ;Timer 1 as a timer in mode 2 &amp;</div><div class="t m0 x1 h3 y21 ff1 fs0 fc0 sc0 ls0 ws0">;Timer 0 as a counter in mode 1.</div><div class="t m0 x1 h3 y22 ff1 fs0 fc0 sc0 ls0 ws0">LOOP: MOV TL1,#0E0H ;Load Timer 1 with 45535(B1E0h)</div><div class="t m0 x1 h3 y23 ff1 fs0 fc0 sc0 ls0 ws0">MOV TH1,#0B1H ;results in 0.01 second delay)</div><div class="t m0 x1 h3 y24 ff1 fs0 fc0 sc0 ls0 ws0">MOV TL0,#00H ;Reset counter for counting operation</div><div class="t m0 x1 h3 y25 ff1 fs0 fc0 sc0 ls0 ws0">MOV TH0,#00H</div><div class="t m0 x1 h3 y26 ff1 fs0 fc0 sc0 ls0 ws0">MOV A,#088H ;Move cursor to line 2, position 8</div><div class="t m0 x1 h3 y27 ff1 fs0 fc0 sc0 ls0 ws0">ACALL COMMAND</div><div class="t m0 x1 h3 y28 ff1 fs0 fc0 sc0 ls0 ws0">MOV R1,#00H ;Clear R1 for overflow counting</div><div class="t m0 x1 h3 y29 ff1 fs0 fc0 sc0 ls0 ws0">MOV TCON,#50H ;Start timer 0 and timer 1</div><div class="t m0 x1 h3 y2a ff1 fs0 fc0 sc0 ls0 ws0">CHECK: JNB TF1,CHECK</div><div class="t m0 x1 h3 y2b ff1 fs0 fc0 sc0 ls0 ws0">CLR TF1</div><div class="t m0 x1 h3 y2c ff1 fs0 fc0 sc0 ls0 ws0">MOV TL1,#0E0H ;Load Timer 1 with 45536(b1e0h) results</div><div class="t m0 x1 h3 y2d ff1 fs0 fc0 sc0 ls0 ws0">;in 0.01 SECOND DELAY)</div><div class="t m0 x1 h3 y2e ff1 fs0 fc0 sc0 ls0 ws0">MOV TH1,#0B1H</div><div class="t m0 x1 h3 y2f ff1 fs0 fc0 sc0 ls0 ws0">SETB TR1</div><div class="t m0 x1 h3 y30 ff1 fs0 fc0 sc0 ls0 ws0">INC R1</div><div class="t m0 x1 h3 y31 ff1 fs0 fc0 sc0 ls0 ws0">CJNE R1,#64H,CHECK ;Count 100 interrupts to provi<span class="_ _0"></span>de delay</div></div></div><div class="pi" data-data='{"ctm":[1.568627,0.000000,0.000000,1.568627,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐
    • PROGRAM-5.rar
      this program is to calculate the fqactorial of a number
    • 1506737.zip
      To repair the taskbar to display the running program, the program is absolutely effective
    • the.rar
      Monitoring program Monitor changes in a file, the file changes in the program
    • timerAlarm1.rar
      THE PROGRAM TIMER ALARM IN THE COMPUTER WITH THE PROGRAM C#
    • CarritoCompra.rar
      Search program on a list of spanish web sites to create the lowest price list of articles. This program uses the JSOUP library on Java. You only need to type your list on a .txt and then the program, ...
    • the-C-program.rar
      the C program first C program books
    • PROGRAM-2.rar
      The program written in fortran is to enable us still study the charge build. it includes the flow chart of the execution of the program
    • TVProgram-开源
      显示捷克和一些外国电视节目的程序。 包括电视,如 CT1、CT2、Nova、Prima、BBC、CNN、Discovery。
    • include.rar
      this program is the particular content of c programming language that contains the source code of FILE. The output of this program helps to find the location of this program
    • 375440.rar
      Stream on the input and output of the program, the program illustrates the way of flow in detail