当前位置:网站首页>【Proteus仿真】定时器0作为16位计数器使用示例
【Proteus仿真】定时器0作为16位计数器使用示例
2022-06-24 19:47:00 【perseverance52】
【Proteus仿真】定时器0作为外部16位计数器使用示例
- Proteus仿真
功能说明
将定时器0作为外部16位计数器使用,当外部引脚P34引脚触发时,计数器0寄存器+1,然后,通过串口将定时器0寄存器值(TH0,TH0)打印出来.(平时一般用作定时器功能比较多。)
- 示例代码来源
Keil
官方示例“8051 Counter 0 Example Program”修改得来:https://www.keil.com/download/list/c51.htm
示例代码
/* Main.c file generated by New Project wizard * * Created: 周五 6月 24 2022 * Processor: AT89C51 * Compiler: Keil for 8051 */
边栏推荐
- Tomorrow is the PMP Exam (June 25). Have you understood all this?
- 抖音实战~发布短视频流程梳理
- What good smart home brands in China support homekit?
- Enterprise data leakage prevention solution sharing
- Use of types, values, namespaces, combinations, etc. in typescript
- 企业级~uni-app网络请求封装
- 7-6 laying oil well pipeline
- 7-7 数字三角形
- 如何化解35岁危机?华为云数据库首席架构师20年技术经验分享
- Hello C (VI) -- pointer and string
猜你喜欢
Is there really something wrong with my behavior?
Tiktok actual combat ~ sorting out the short video release process
Morris遍历
Still using simpledateformat for time formatting? Be careful of project collapse
Enterprise data leakage prevention solution sharing
还在用 SimpleDateFormat 做时间格式化?小心项目崩掉
抖音实战~实现App端视频上传与发布
Installing IBM CPLEX academic edition | CONDA installing CPLEX
What you must know about time series database!
Sword finger offer merges two sorted lists
随机推荐
China CAE industry investment strategic planning and future development analysis report 2022 ~ 2028
Morris traversal
Design and practice of vivo server monitoring architecture
Hyperledger Fabric 2. X dynamic update smart contract
MySQL problem points
Scala IO case
去商场逛街
Start QT program
MySQL semi sync replication
Monotone stack and its application
Laravel framework knowledge
Hello C (V) -- pointer and array
Window system installation Nacos
Helix distance of point
基于三维GIS开发的水电工程建设方案
Selective sort method
R language uses the polR function of mass package to build an ordered multi classification logistic regression model, and uses exp function, confint function and coef function to obtain the confidence
中学校园IP网络广播系统解决方案-校园数字IP广播系统方案设计指南
Scala IO reads data from URLs and other data sources
Hello C (I) -- basics of C language