|
汇编数码管动态扫描静态显示
- ORG 0000H
- L:
- CLR P1.3
- MOV P0,#0X64
- LCALL DELAY1MS
- MOV P0,#0xFF
- SETB P1.3
- CLR P1.2
- MOV P0,#0XC0
- LCALL DELAY1MS
- MOV P0,#0xFF
- SETB P1.2
- CLR P1.4
- MOV P0,#0X70
- LCALL DELAY1MS
- MOV P0,#0xFF
- SETB P1.4
- CLR P1.1
- MOV P0,#0XF8
- LCALL DELAY1MS
- MOV P0,#0xFF
- SETB P1.1
- JMP L
-
- DELAY1MS:
- MOV R6,#01H
- DL0:
- MOV R5,#2FH
- DJNZ R5,$
- DJNZ R6,DL0
- RET
- END
复制代码 |
-
-
汇编数码管.rar
13.41 KB, 下载次数: 5, 下载积分: 黑币 -5
显示数字2037
评分
-
查看全部评分
|