当前位置:网站首页>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
边栏推荐
- utils 定时器
- [b01lers2020]Life on Mars
- Recognized by International Authorities | Yunzhuang Technology was selected in "RPA Global Market Pattern Report, Q3 2022"
- 牛客2022 暑期多校3 H Hacker(SAM + 线段树查询区间内部最大子段和)
- log4j-slf4j-impl cannot be present with log4j-to-slf4j
- Embedded Systems: Clocks
- Diazo Biotin-PEG3-DBCO | Diazo Compound Modified Biotin-Tripolyethylene Glycol-Dibenzocyclooctyne
- 2022/8/3 考试总结
- Interpretation of ML: A case of global interpretation/local interpretation of EBC model interpretability based on titanic titanic rescued binary prediction data set using interpret
- Create function report error, prompting DECLARE definition syntax problem
猜你喜欢

noip初赛

Live Preview | Build Business Intelligence, Quickly Embrace Financial Digital Transformation

Analysys Analysis: The transaction scale of China's online retail B2C market in Q2 2022 will reach 2,344.47 billion yuan

ML's yellowbrick: A case of interpretability (threshold map) for LoR logistic regression model using yellowbrick based on whether Titanic was rescued or not based on the two-class prediction dataset

Gains double award | know micro easily won the "2021 China digital twin solution suppliers in excellence" "made in China's smart excellent recommended products" double award!

113. 授人以渔 - 如何自行查询任意 SAP UI5 控件属性的文档和技术实现细节

override学习(父类和子类)

网络基础学习系列四(网络层,数据链路层和一些其他重要协议或技术)

The salary of soft testers at each stage, come to Kangkang, how much can you get?

MiniAPI of .NET6 (14): Cross-domain CORS (Part 1)
随机推荐
redis持久化方式
什么是memoization,它有什么用?
RPA助力商超订单自动化!
V8中的快慢数组(附源码、图文更易理解)
Codeup brushing notes - simple simulation
Work Subtotal QT Packing
What is the difference between the generator version and the viewer version?
Websocket multi-threaded sending message error TEXT_PARTIAL_WRITING--Use case of spin lock replacing synchronized exclusive lock
The principle and use of AOSP CameraLatencyHistogram
Boss: There are too many systems in the company, can you realize account interoperability?
HCIP BGP lab report
亿流量大考(2):开发一套高容错分布式系统
【MySQL进阶】数据库与表的创建和管理
冰河又一MySQL力作出版(文末送书)!!
utils timer
"Digital Economy Panorama White Paper" Financial Digital User Chapter released!
Kotlin - 扩展函数和运算符重载
log4j-slf4j-impl cannot be present with log4j-to-slf4j
node连接mysql数据库报错:Client does not support authentication protocol requested by server
【RYU】rest_router.py源码解析