虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

PC-A

  • 4位八段数码管的十进制加计数仿真实验(含电路图和仿真文件)

    4位八段数码管的十进制加计数仿真实验,程序采用汇编语言编写。此程序在仿真软件上与EDN-51实验板上均通过。仿真图中的数码管位驱动采用74HC04,如按EDN-51板上用想同的PNP三极管驱动在仿真软件上则无法正常显示。程序共分5块,STAR0为数据初始化,STAR2为计数子程序,STAR3为4位数码管动态显示子程序,STAR4为按键扫描子程序,STS00是延时子程序。由于EDN-51实验板上没装BCD译码器,所以编写程序比较烦琐。 程序如下: ORG 0000H                LJMP STAR0                        ;转程序 SRAR0ORG 0200H                                          ;程序地址 0200HSTAR0:   CLR 00                                  ;位 00 清 0               MOV P1,#0FFH                    ;#0FFH-->P1               MOV P2,#0FH                      ;#0FH-->P2               MOV P0,#0FFH                    ;#0FFH-->P0               MOV 30H,#00H                    ;#00H-->30H               MOV 31H,#00H                    ;#00H-->30H               MOV 32H,#00H                    ;#00H-->30H               MOV 33H,#00H                    ;#00H-->30H               LJMP STAR3                        ;转程序 SRAR3STAR2:   MOV A,#0AH                       ;#0AH-->A               INC 30H                                ;30H+1               CJNE A,30H,STJE                 ;30H 与 A 比较,不等转移 STJE               MOV 30H,#00H                    ;#00H-->30H               INC 31H                                ;31H+1               CJNE A,31H,STJE                 ;31H 与 A 比较,不等转移 STJE               MOV 31H,#00H                    ;#00H-->31H               INC 32H                                ;32H+1               CJNE A,32H,STJE                 ;32H 与 A 比较,不等转移 STJE               MOV 32H,#00H                    ;#00H-->32H               INC 33H                                ;33H+1               CJNE A,33H,STJE                 ;33H 与 A 比较,不等转移 STJE               MOV 33H,#00H                    ;#00H-->33H               MOV 32H,#00H                    ;#00H-->32H               MOV 31H,#00H                    ;#00H-->31H               MOV 30H,#00H                    ;#00H-->30HSTJE:      RET                                        ;子程序调用返回STAR3:   MOV R0,#30H                      ;#30H-->R0                MOV R6,#0F7H                   ;#0F7H-->R6SMG0:    MOV P1,#0FFH                    ;#0FFH-->P1                MOV A,R6                            ;R6-->A                MOV P1,A                            ;A-->P1                RR A                                     ;A向右移一位                MOV R6,A                           ;A-->R6                MOV A,@R0                       ;@R0-->A                ADD A,#04H                        ;#04H-->A                MOVC A,@A+PC               ;A+PC-->                MOV P0,A                            ;A-->P0                AJMP SMG1                        ;转程序 SMG1SDATA:   DB 0C0H,0F9H,0A4H,0B0H,99H                DB 92H,82H,0F8H,80H,90H SMG1:     LCALL STAR4                    ;转子程序 SRAR4                LCALL STS00                     ;转子程序 STS00                INC R0                                 ;R0+1                CJNE R6,#07FH,SMG0       ;#07FH 与 R6 比较,不等转移 SMG0                AJMP STAR3                       ;转程序 SRAR3STAR4:    JNB P2.0,ST1                      ;P2.0=0 转 ST1                CLR 00                                 ;位 00 清 0                SJMP ST3                            ;转ST3ST1:         JNB 00,ST2                          ;位 00=0 转 ST2                SJMP ST3                            ;转 ST3ST2:         LCALL STAR2                    ;调子程序 STAR2                SETB 00                               ;位 00 置 1ST3:         RET                                      ;子程序调用返回ORG 0100H                                         ;地址 0100HSTS00:     MOV 60H,#003H                ;#003H-->60H  (211)DE001:     MOV 61H,#0FFH               ;#0FFH-->61H (255)DE002:     DJNZ 61H,DE002               ;61H 减 1 不等于 0 转 DE002                 DJNZ 60H,DE001               ;60H 减 1 不等于 0 转 DE001                 RET                                     ;子程序调用返回                 END                                    ;结束 上次的程序共有293句,经小组成员建议,本人经几天的研究写了下面的这个程序,现在的程序用了63句,精简了230句。功能没有减。如谁有更简练的程序,请发上来,大家一起学习。 4位八段数码管的十进制加计数仿真实验(含电路图和仿真文件)

    标签: 数码管 十进制 仿真实验 仿真

    上传时间: 2013-10-11

    上传用户:sssl

  • GAPI for Pocket PC, supports a lot of brands.

    GAPI for Pocket PC, supports a lot of brands.

    标签: supports Pocket brands GAPI

    上传时间: 2013-11-29

    上传用户:日光微澜

  • 用A/D和PC键盘控制直流电机和步进电机的转动

    用A/D和PC键盘控制直流电机和步进电机的转动

    标签: 键盘控制 直流电机 步进电机 转动

    上传时间: 2015-03-19

    上传用户:凌云御清风

  • Have you ever wanted to copy a file from your Desktop Computer to your handheld Pocket PC? This incl

    Have you ever wanted to copy a file from your Desktop Computer to your handheld Pocket PC? This included any Windows CE version too? Well if so, I will present an easy way to do it here: It s called the Remote Application Programming Interface, or, RAPI in this article. It is touched on in the MSDN but not really explained very well.

    标签: your Computer handheld Desktop

    上传时间: 2013-12-24

    上传用户:15071087253

  • Bochs is a highly portable open source IA-32 (x86) PC emulator written in C++, that runs on most po

    Bochs is a highly portable open source IA-32 (x86) PC emulator written in C++, that runs on most popular platforms. It includes emulation of the Intel x86 CPU, common I/O devices, and a custom BIOS. Currently, Bochs can be compiled to emulate a 386, 486, Pentium, Pentium Pro or AMD64 CPU, including optional MMX, SSE, SSE2 and 3DNow! instructions. Bochs is capable of running most Operating Systems inside the emulation including Linux, DOS, Windows 95/98 and Windows NT/2000. Bochs was written by Kevin Lawton and is currently maintained by the Bochs project at "http://bochs.sourceforge.net".

    标签: emulator portable written highly

    上传时间: 2015-04-06

    上传用户:FreeSky

  • a complete project files for 89C51 programer,include souce code for PC driver and PCB files

    a complete project files for 89C51 programer,include souce code for PC driver and PCB files

    标签: files for programer complete

    上传时间: 2015-05-22

    上传用户:lanjisu111

  • This zip describes USB communication through 2 pipes with a Windows 2000 PC application. Includes ma

    This zip describes USB communication through 2 pipes with a Windows 2000 PC application. Includes main.html file for help.

    标签: communication application describes Includes

    上传时间: 2013-11-29

    上传用户:llandlu

  • Infra red dectect, only dectect a signal it will pass to pc

    Infra red dectect, only dectect a signal it will pass to pc

    标签: dectect signal Infra only

    上传时间: 2013-12-21

    上传用户:pompey

  • A program for using Wii Remote on Windows PC.

    A program for using Wii Remote on Windows PC.

    标签: program Windows Remote using

    上传时间: 2015-10-31

    上传用户:zwei41

  • DOSBox emulates a full x86 pc with sound and dos. Its main use is to run old dosgames on platforms w

    DOSBox emulates a full x86 pc with sound and dos. Its main use is to run old dosgames on platforms which don t have dos(win2K/XP/linux/FreeBSD/Mac OS X)

    标签: platforms emulates dosgames DOSBox

    上传时间: 2015-11-14

    上传用户:TRIFCT