当前位置:网站首页>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
边栏推荐
- encapsulation, package, access modifier, static variable
- FinClip,助长智能电视更多想象空间
- Software testing is seriously involution, how to improve your competitiveness?
- 【RYU】rest_router.py源码解析
- 工作小计 QT打包
- 目标检测的国内外研究现状
- pikachu Over permission
- Pytest learn-setup/teardown
- ML之yellowbrick:基于titanic泰坦尼克是否获救二分类预测数据集利用yellowbrick对LoR逻辑回归模型实现可解释性(阈值图)案例
- Golang Chapter 2: Program Structure
猜你喜欢
物联网新零售模式,引领购物新潮流
如何创建一个Web项目
override learning (parent and child)
Cloud platform construction solutions
.NET6之MiniAPI(十四):跨域CORS(上)
目标检测技术研究现状及发展趋势
OPC UA 与IEC61499 深度融合(1)
关于IDO预售系统开发技术讲解丨浅谈IDO预售合约系统开发原理分析
Code Casual Recording Notes_Dynamic Programming_416 Segmentation and Subsetting
Zilliz 2023 秋季校园招聘正式启动!
随机推荐
log4j-slf4j-impl cannot be present with log4j-to-slf4j
剑指offer第22题-链表中倒数第K个节点
Embedded Systems: Clocks
What is the difference between the generator version and the viewer version?
redis持久化方式
Embedded systems: overview
生成器版和查看器版有什么区别?
Lift, Splat, Shoot: Encoding Images from Arbitrary Camera Rigs by Implicitly Unprojecting to 3D 论文笔记
工作小计 QT打包
完全二叉树问题
[MySQL Advanced] Creation and Management of Databases and Tables
Causes of Mysql Disk Holes and Several Ways to Rebuild Tables
Scala基础【正则表达式、框架式开发原则】
utlis thread pool
override学习(父类和子类)
ML之yellowbrick:基于titanic泰坦尼克是否获救二分类预测数据集利用yellowbrick对LoR逻辑回归模型实现可解释性(阈值图)案例
First domestic open source framework 】 【 general cloud computing framework, any program can be made into cloud computing.
What is memoization and what is it good for?
UVa 10003 - Cutting Sticks (White Book, Interval DP)
Nine ways to teach you to read the file path in the resources directory