当前位置:网站首页>Principle and application of single chip microcomputer - principle of parallel IO port
Principle and application of single chip microcomputer - principle of parallel IO port
2022-07-01 08:32:00 【Waves ~】
List of articles
List of articles
Tips : The following is the main body of this article , The following cases can be used for reference
One 、 MCU parallel IO How mouth works
P1 mouth :
P1 Of IO The parallel internal structure is composed of D Trigger and latch
Internal bus input 0, Trigger output Q’ by 1,MOS The pipe is open , Output end output 0;
Internal input 1, Trigger output Q’ by 0,MOS Tube stop , Output end output 1;
that PI As the input port, the latch is used to read data , To read data, you must first keep MOS Tube stop , be Q’ Output 0, therefore P1 Before reading external data through the port, you should first look like P1 output 1.
P3 mouth :
P2 mouth :
Control terminal (0),P2 The working principle of the port is the same as P1 mouth ;
The control port is (1),P2 Port output address bus
P0 mouth :
P0 The port requires the user to connect an external pull-up resistor to work properly .
Control terminal (0),P0 As ordinary IO mouth , The working principle is the same as P1 mouth
Control terminal (1),P0 As the address / Data multiplexing bus
Two 、51 Working cycle and timing of single chip microcomputer
1. Clock circuit
Passive quartz crystal oscillator :
Active crystal oscillator : Relative to passive , More stable and reliable clock signal 
2. Reset mode
The reset methods are : Power on automatic reset and manual button reset
3. Machine cycle and instruction cycle
Machine cycle : The basic unit of single chip microcomputer operation , A machine cycle consists of 12 Clock cycles .
Instruction cycle : The time from the computer fetching the instruction to the execution of the instruction is Instruction cycle
3、 ... and 、C51 New variable type
special function register sfr Definition
C51 Define the special function registers and special bits commonly used by MCU , Put it in “reg51.h” Header file .
Bit variable
When defining a variable, it indicates the data type and memory type of the variable
Four 、 Definition of function
Added the definition of interrupt function
C51 When defining an interrupt function, the suffix must be interrupt m
m The value range is as follows :
边栏推荐
- 2022.6.30 省赛+蓝桥国赛记录
- MATLAB【函数和图像】
- Transaction method call @transactional
- Keithley 2100 software 𞓜 Keithley2400 test software ns SourceMeter
- Leetcode t31: prochain arrangement
- Luogu p1088 [noip2004 popularization group] Martians
- Anddroid text to speech TTS implementation
- Programmer's regimen
- 2022 examination summary of quality controller civil engineering direction post skills (quality controller) and reexamination examination of quality controller civil engineering direction post skills
- SPL installation and basic use (II)
猜你喜欢

There are many problems in sewage treatment, and the automatic control system of pump station is solved in this way

CPU設計實戰-第四章實踐任務一簡單CPU參考設計調試

Use threejs simple Web3D effect
![[detailed explanation of Huawei machine test] judgment string subsequence [2022 Q1 Q2 | 200 points]](/img/0f/972cde8c749e7b53159c9d9975c9f5.png)
[detailed explanation of Huawei machine test] judgment string subsequence [2022 Q1 Q2 | 200 points]
![[getting started] intercepting strings](/img/16/363baa4982408f55493057200bcba5.png)
[getting started] intercepting strings
![[getting started] enter the integer array and sorting ID, and sort its elements in ascending or descending order](/img/87/07783593dbabcf29700fa207ecda08.png)
[getting started] enter the integer array and sorting ID, and sort its elements in ascending or descending order

Manually dig XSS vulnerabilities

Pipeline detection of UAV Based on gazebo

Adding color blocks to Seaborn clustermap matrix

Embedded-c language-10-enumeration / (function) pointer (function) / multi-level pointer /malloc dynamic allocation / file operation
随机推荐
深度学习训练样本扩增同时修改标签名称
Leetcode T39: 组合总和
【刷题】字符统计【0】
机动目标跟踪——当前统计模型(CS模型)扩展卡尔曼滤波/无迹卡尔曼滤波 matlab实现
Learn the knowledge you need to know about the communication protocol I2C bus
Codeforces Round #803 (Div. 2) VP补题
[JS reverse] MD5 encryption parameter cracking
Transaction method call @transactional
MATLAB小技巧(23)矩阵分析--模拟退火
Serial port oscilloscope software ns-scope
长安链同步节点配置与启动
01 numpy introduction
P4 installation bmv2 detailed tutorial
What is 1cr0.5mo (H) material? 1cr0.5mo (H) tensile yield strength
Adding color blocks to Seaborn clustermap matrix
[introduction] approximate value
Leetcode t34: find the first and last positions of elements in a sorted array
【js逆向】md5加密参数破解
Yolov5 advanced 7 target tracking latest environment setup
MAVROS发送自定义话题消息给PX4