当前位置:网站首页>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);
}
边栏推荐
- ping域名报错unknown host,nslookup/systemd-resolve可以正常解析,ping公网地址通怎么解决?
- P1007 single log bridge
- Easyclick, EC Quanlang network verification source code
- Brief introduction of emotional dialogue recognition and generation
- Go language sqlx library operation SQLite3 database addition, deletion, modification and query
- AES高级加密协议的动机阐述
- Tiktok actual combat ~ number of likes pop-up box
- Numerical solution of partial differential equations with MATLAB
- Win11自动关机设置在哪?Win11设置自动关机的两种方法
- Tronapi wave field interface - source code without encryption - can be opened twice - interface document attached - packaging based on thinkphp5 - detailed guidance of the author - July 1, 2022 08:43:
猜你喜欢
[chestnut sugar GIS] how does global mapper batch produce ground contour lines through DSM
Introduction to the latest plan of horizon in April 2022
Set right click to select vs code to open the file
最小生成树 Minimum Spanning Tree
golang入门:for...range修改切片中元素的值的另类方法
ADC of stm32
设置单击右键可以选择用VS Code打开文件
Pandora IOT development board learning (HAL Library) - Experiment 4 serial port communication experiment (learning notes)
Successfully changed Splunk default URL root path
[chestnut sugar GIS] ArcScene - how to make elevation map with height
随机推荐
Jerry's prototype has no touch, and the reinstallation becomes normal after dismantling [chapter]
Call vs2015 with MATLAB to compile vs Project
4 special cases! Schools in area a adopt the re examination score line in area B!
P1007 single log bridge
STM32之ADC
在SOUI里使用真窗口时使用SOUI的滚动条
Learning Websites commonly used by circuit designers
损失函数~
QT qpprogressbar details
Jerry's built-in shutdown current is 1.2ua, and then it can't be turned on by long pressing [chapter]
海思3559万能平台搭建:在截获的YUV图像上画框
Deep analysis of data storage in memory - C language
FOC矢量控制及BLDC控制中的端电压、相电压、线电压等概念别还傻傻分不清楚
Value sequence < detailed explanation of daily question >
xshell配置xforward转发火狐浏览器
Data analysis learning records -- complete a simple one-way ANOVA with Excel
PotPlayer设置最小化的快捷键
Splunk audit setting
Niuke network: maximum submatrix
Cryptography -- the mode of block cipher