当前位置:网站首页>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 :
边栏推荐
- shardingSphere
- 2022.6.30 省赛+蓝桥国赛记录
- Maneuvering target tracking -- current statistical model (CS model) extended Kalman filter / unscented Kalman filter matlab implementation
- Provincial election + noi Part VII computational geometry
- [untitled]
- CPU设计实战-第四章实践任务一简单CPU参考设计调试
- 《MATLAB 神经网络43个案例分析》:第30章 基于随机森林思想的组合分类器设计——乳腺癌诊断
- [deep analysis of C language] - data storage in memory
- Leetcode t39: combined sum
- Keithley 2100 software 𞓜 Keithley2400 test software ns SourceMeter
猜你喜欢
OJ输入输出练习
P4 安装bmv2 详细教程
What is the material of 15CrMoR, mechanical properties and chemical analysis of 15CrMoR
[untitled]
Hijacking a user's browser with beef
What is 1cr0.5mo (H) material? 1cr0.5mo (H) tensile yield strength
【刷题】字符统计【0】
機動目標跟踪——當前統計模型(CS模型)擴展卡爾曼濾波/無迹卡爾曼濾波 matlab實現
Keithley 2100 software 𞓜 Keithley2400 test software ns SourceMeter
Huawei machine test questions column subscription Guide
随机推荐
Provincial election + noi Part III tree problems
[untitled]
[deep analysis of C language] - data storage in memory
leetcode T31:下一排列
What is the material of 15CrMoR, mechanical properties and chemical analysis of 15CrMoR
【js逆向】md5加密参数破解
The use of word in graduation thesis
MATLAB小技巧(23)矩阵分析--模拟退火
Gateway-88
The era of low threshold programmers is gone forever behind the sharp increase in the number of school recruitment for Internet companies
7-26 word length (input and output in the loop)
Koltin35, headline Android interview algorithm
[redis] it takes you through redis installation and connection at one go
Intelligent water supply system solution
Anddroid 文本合成语音TTS实现
Properties of 15MnNiNbDR low temperature vessel steel, Wugang 15MnNiDR and 15MnNiNbDR steel plates
CPU設計實戰-第四章實踐任務一簡單CPU參考設計調試
机动目标跟踪——当前统计模型(CS模型)扩展卡尔曼滤波/无迹卡尔曼滤波 matlab实现
Luogu p1088 [noip2004 popularization group] Martians
[dynamic planning] p1020 missile interception (variant of the longest increasing subsequence)