基于PROTEUS单片机秒表系统code及截图(完整注释版chd) 下载本文

内容发布更新时间 : 2024/12/25 1:37:02星期一 下面是文章的全部内容请认真阅读。

开机时刻:

DEFGDPBC1BEFGDCAA2101918U2XTAL1P0.0/AD0P0.1/AD1P0.2/AD2P0.3/AD3P0.4/AD4P0.5/AD5P0.6/AD6P0.7/AD7P2.0/A8P2.1/A9P2.2/A10P2.3/A11P2.4/A12P2.5/A13P2.6/A14P2.7/A15P3.0/RXDP3.1/TXDP3.2/INT0P3.3/INT1P3.4/T0P3.5/T1P3.6/WRP3.7/RD390.0380.1370.2360.3350.4340.5330.6320.721222324252627281011121314151617876543210.00.10.20.30.40.50.60.723456789U1A0A1A2A3A4A5A6A7CEAB/BA74LS245B0B1B2B3B4B5B6B71817161514131211ABCDEFGDP3U?:A74S00C133p9XTAL22X1C233pCRYSTAL293031RST1916R1PSENALEEA启动/停止秒表秒表清零13211kR21k12345678P1.0/T2P1.1/T2EXP1.2P1.3P1.4P1.5P1.6P1.7AT89C52U3:A74LS10BAT112VBUZ2Q12N2222ABUZZER121345678 按下 启动/停止键开始计时

DEFGDPBC1BEFGDCAA2101918U2XTAL1P0.0/AD0P0.1/AD1P0.2/AD2P0.3/AD3P0.4/AD4P0.5/AD5P0.6/AD6P0.7/AD7P2.0/A8P2.1/A9P2.2/A10P2.3/A11P2.4/A12P2.5/A13P2.6/A14P2.7/A15P3.0/RXDP3.1/TXDP3.2/INT0P3.3/INT1P3.4/T0P3.5/T1P3.6/WRP3.7/RD390.0380.1370.2360.3350.4340.5330.6320.721222324252627281011121314151617876543210.00.10.20.30.40.50.60.723456789U1A0A1A2A3A4A5A6A7CEAB/BA74LS245B0B1B2B3B4B5B6B71817161514131211ABCDEFGDP3U?:A74S00C133p9XTAL22X1C233pCRYSTAL293031RST1916R1PSENALEEA启动/停止秒表秒表清零13211kR21k12345678P1.0/T2P1.1/T2EXP1.2P1.3P1.4P1.5P1.6P1.7AT89C52U3:A74LS10BAT112VBUZ2Q12N2222ABUZZER121345678

再次按下启动/停止键 停止计数

DEFGDPBC1BEFGDCAA2101918U2XTAL1P0.0/AD0P0.1/AD1P0.2/AD2P0.3/AD3P0.4/AD4P0.5/AD5P0.6/AD6P0.7/AD7P2.0/A8P2.1/A9P2.2/A10P2.3/A11P2.4/A12P2.5/A13P2.6/A14P2.7/A15P3.0/RXDP3.1/TXDP3.2/INT0P3.3/INT1P3.4/T0P3.5/T1P3.6/WRP3.7/RD390.0380.1370.2360.3350.4340.5330.6320.721222324252627281011121314151617876543210.00.10.20.30.40.50.60.723456789U1A0A1A2A3A4A5A6A7CEAB/BA74LS245B0B1B2B3B4B5B6B71817161514131211ABCDEFGDP3U?:A74S00C133p9XTAL22X1C233pCRYSTAL293031RST1916R1PSENALEEA启动/停止秒表秒表清零13211kR21k12345678P1.0/T2P1.1/T2EXP1.2P1.3P1.4P1.5P1.6P1.7AT89C52U3:A74LS10BAT112VBUZ2Q12N2222ABUZZER121345678

再次按下启动/停止键 继续计数

DEFGDPBC1BEFGDCAA2101918U2XTAL1P0.0/AD0P0.1/AD1P0.2/AD2P0.3/AD3P0.4/AD4P0.5/AD5P0.6/AD6P0.7/AD7P2.0/A8P2.1/A9P2.2/A10P2.3/A11P2.4/A12P2.5/A13P2.6/A14P2.7/A15P3.0/RXDP3.1/TXDP3.2/INT0P3.3/INT1P3.4/T0P3.5/T1P3.6/WRP3.7/RD390.0380.1370.2360.3350.4340.5330.6320.721222324252627281011121314151617876543210.00.10.20.30.40.50.60.723456789U1A0A1A2A3A4A5A6A7CEAB/BA74LS245B0B1B2B3B4B5B6B71817161514131211ABCDEFGDP3U?:A74S00C133pXTAL22X1C233pCRYSTAL9RST1916293031R1PSENALEEA启动/停止秒表秒表清零13211kR21k12345678P1.0/T2P1.1/T2EXP1.2P1.3P1.4P1.5P1.6P1.7AT89C52U3:A74LS10BAT112VBUZ2Q12N2222ABUZZER121345678

按下 秒表清零键后进行清零。

DEFGDPBC1BEFGDCAA2101918U2XTAL1P0.0/AD0P0.1/AD1P0.2/AD2P0.3/AD3P0.4/AD4P0.5/AD5P0.6/AD6P0.7/AD7P2.0/A8P2.1/A9P2.2/A10P2.3/A11P2.4/A12P2.5/A13P2.6/A14P2.7/A15P3.0/RXDP3.1/TXDP3.2/INT0P3.3/INT1P3.4/T0P3.5/T1P3.6/WRP3.7/RD390.0380.1370.2360.3350.4340.5330.6320.721222324252627281011121314151617876543210.00.10.20.30.40.50.60.723456789U1A0A1A2A3A4A5A6A7CEAB/BA74LS245B0B1B2B3B4B5B6B71817161514131211ABCDEFGDP3U?:A74S00C133p9XTAL22X1C233pCRYSTAL293031RST1916R1PSENALEEA启动/停止秒表秒表清零13211kR21k12345678P1.0/T2P1.1/T2EXP1.2P1.3P1.4P1.5P1.6P1.7AT89C52U3:A74LS10BAT112VBUZ2Q12N2222ABUZZER121345678

ORG 0000H;ORG伪指令,程序开始

SJMP MAIN;跳转到MAIN主程序处

ORG 000BH;定时器/计数器T0中断服务入口地址

LJMP CLOCK;定时器T0产生内部中断时跳转到标号CLOCK处 ORG 0030H;主程序从0030H开始

MSEC1 EQU 32H;给标号赋值 MSEC2 EQU 33H

SEC EQU 34H;秒单元修改标识符 MIN EQU 35H;分单元修改标识符 HOUR EQU 36H;超时单元修改标识符 MAIN: MOV SP,#70H;

MOV HOUR,#00H;各个状态初始化 MOV MIN,#00H MOV SEC,#00H MOV MSEC1,#00H MOV MSEC2,#00H MOV 60H,#00H MOV 61H,#00H MOV 62H,#00H MOV 63H,#00H MOV 64H,#00H MOV 65H,#00H