当前位置:网站首页>Simple square wave generating circuit [51 single chip microcomputer and 8253a]
Simple square wave generating circuit [51 single chip microcomputer and 8253a]
2022-07-02 23:13:00 【The universe is hidden in the book】

/*8253 Timed square wave generation experiment instrument 11802 Ma Wei */
#include<reg51.h>
#include<absacc.h>
#define CMD_ADDR XBYTE[0x7FFB]// Address of the command register
#define TIMER0_ADDR XBYTE[0X7FF8]// Counter 0 Initial value counter
void main()
{
// The command register is 00110110, The counter 0, First low then high , The way 3, Binary
CMD_ADDR=0x36;
// Assign a value to the counter from low to high 0
TIMER0_ADDR=0x52;
TIMER0_ADDR=0x09;
while(1);
}
边栏推荐
- 2016. 增量元素之间的最大差值
- Win11麦克风测试在哪里?Win11测试麦克风的方法
- 设置单击右键可以选择用VS Code打开文件
- 密码技术---分组密码的模式
- Jerry's built-in short press and long press, no matter how long it is, it is a short press [chapter]
- 剑指 Offer II 099. 最小路径之和-双百代码
- Value sequence < detailed explanation of daily question >
- Successfully changed Splunk default URL root path
- 20220527_数据库过程_语句留档
- 海思3559万能平台搭建:在截获的YUV图像上旋转操作
猜你喜欢

Realize the linkage between bottomnavigationview and navigation

Alibaba cloud award winning experience: how to use polardb-x

详解Promise使用

潘多拉 IOT 开发板学习(HAL 库)—— 实验4 串口通讯实验(学习笔记)

Odoo13 build a hospital HRP environment (detailed steps)

Typical case of data annotation: how does jinglianwen technology help enterprises build data solutions

Detailed explanation and application of merging and sorting

Minimum spanning tree

力扣刷题(2022-6-28)

Value sequence < detailed explanation of daily question >
随机推荐
Jerry's built-in short press and long press, no matter how long it is, it is a short press [chapter]
Explain promise usage in detail
详解Promise使用
Generics and reflection, this is enough
STM32串口DAM接收253字节就死机原因排查
Mask R-CNN
[hardware] origin of standard resistance value
移动端 1px 像素兼容性问题,实现1px 边框
SharedPreferences 保存List<Bean> 到本地并解决com.google.gson.internal.LinkedTreeMap cannot be cast to异常
Minimum spanning tree
情感对话识别与生成简述
潘多拉 IOT 开发板学习(HAL 库)—— 实验4 串口通讯实验(学习笔记)
Redis expiration policy +conf record
Tiktok actual combat ~ number of likes pop-up box
Numerical solution of partial differential equations with MATLAB
20220527_数据库过程_语句留档
[favorite poems] OK, song
AES高級加密協議的動機闡述
QT qpprogressbar details
Lambda表达式:一篇文章带你通透