当前位置:网站首页>MCS-51单片机,定时1分钟,汇编程序
MCS-51单片机,定时1分钟,汇编程序
2022-08-03 22:52:00 【冰叶Lv】
MCS-51单片机,定时1分钟,汇编程序
去博客设置页面,选择一款你喜欢的代码片高亮样式,下面展示同样高亮的 代码片
.
ORG 0000H
MOV R1,#200
MOV R2,#5
MOV TMOD,#01H ;设T0工作在方式1、定时
D1: MOV TL0,#0B0H ;T0设初值
MOV TH0,#3CH
SETB TR0 ;启动T0
WAIT:JNB TF0,WAIT ;等待定时到50ms
CLR TF0 ;清标志
DJNZ R1,D1 ;走200次,刚好是10秒
DJNZ R2,D1 ;再把200次,执行5次,一共就是1分钟。
CPL P2.0
END
边栏推荐
- golang写的存储引擎,基于b+树,mmap
- The salary of soft testers at each stage, come to Kangkang, how much can you get?
- pikachu Over permission
- 易观分析:2022年Q2中国网络零售B2C市场交易规模达23444.7亿元
- 软测人每个阶段的薪资待遇,快来康康你能拿多少?
- 云平台建设解决方案
- [b01lers2020]Life on Mars
- 如何基于WPF写一款数据库文档管理工具(二)
- 113. Teach a Man how to fish - How to query the documentation and technical implementation details of any SAP UI5 control property by yourself
- 《数字经济全景白皮书》金融数字用户篇 重磅发布!
猜你喜欢
V8中的快慢数组(附源码、图文更易理解)
走迷宫 BFS
Fluorescein-PEG-CLS,胆固醇-聚乙二醇-荧光素科研试剂
BMN: Boundary-Matching Network for Temporal Action Proposal Generation Reading Notes
物联网新零售模式,引领购物新潮流
113. Teach a Man how to fish - How to query the documentation and technical implementation details of any SAP UI5 control property by yourself
冰河又一MySQL力作出版(文末送书)!!
Boss: There are too many systems in the company, can you realize account interoperability?
Diazo Biotin-PEG3-DBCO | Diazo Compound Modified Biotin-Tripolyethylene Glycol-Dibenzocyclooctyne
noip preliminary round
随机推荐
电商秒杀系统
.NET6之MiniAPI(十四):跨域CORS(上)
The principle and use of AOSP CameraLatencyHistogram
Optimize the query (work in progress)
优化查询(工作中)
如何基于WPF写一款数据库文档管理工具(二)
utils 定时器
Testng监听器
FinClip最易用的智能电视小程序
Golang第一章:入门
Why do we need callbacks
override学习(父类和子类)
最小化安装debian11
《数字经济全景白皮书》金融数字用户篇 重磅发布!
Pytest学习-setup/teardown
log4j-slf4j-impl cannot be present with log4j-to-slf4j
物联网新零售模式,引领购物新潮流
Republish the lab report
Golang Chapter 2: Program Structure
Internet user account information management regulations come into effect today: must crack down on account trading and gray products