当前位置:网站首页>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 :
边栏推荐
- 使用beef劫持用户浏览器
- 2022 Chinese cook (technician) simulation test and Chinese cook (technician) practice test video
- 【Redis】一气呵成,带你了解Redis安装与连接
- How can beginners correctly understand Google's official suggested architectural principles (questions?)
- Mavros sends a custom topic message to Px4
- When using charts to display data, the time field in the database is repeated. How to display the value at this time?
- Embedded-c language-10-enumeration / (function) pointer (function) / multi-level pointer /malloc dynamic allocation / file operation
- [getting started] enter the integer array and sorting ID, and sort its elements in ascending or descending order
- 機動目標跟踪——當前統計模型(CS模型)擴展卡爾曼濾波/無迹卡爾曼濾波 matlab實現
- Leetcode T29: 两数相除
猜你喜欢

使用beef劫持用戶瀏覽器

Practice and Thinking on the architecture of a set of 100000 TPS im integrated message system

R语言入门

Suivi des cibles de manoeuvre - - mise en oeuvre du modèle statistique actuel (modèle CS) filtre Kalman étendu / filtre Kalman sans trace par MATLAB
![[staff] high and low octave mark (the notes in the high octave mark | mark range are increased by one octave as a whole | low octave mark | mark range are decreased by one octave as a whole)](/img/ff/ebd936eaa6e57b1eabb691b0642957.jpg)
[staff] high and low octave mark (the notes in the high octave mark | mark range are increased by one octave as a whole | low octave mark | mark range are decreased by one octave as a whole)

Airsim雷达相机融合生成彩色点云
![[staff] key number (key number identification position | key number marking list | a major key identification principle | F, C, G position marking ascending | F major key identification principle | B](/img/48/e98d01830867baa742574e1b6e1096.jpg)
[staff] key number (key number identification position | key number marking list | a major key identification principle | F, C, G position marking ascending | F major key identification principle | B

CPU设计实战-第四章实践任务一简单CPU参考设计调试

Keithley 2100 software 𞓜 Keithley2400 test software ns SourceMeter

CPU design practice - Chapter 4 practical tasks - simple CPU reference design and debugging
随机推荐
OJ输入输出练习
01 numpy introduction
Leetcode t31: next spread
Hijacking a user's browser with beef
golang中的正则表达式使用注意事项与技巧
Why are some Wills made by husband and wife invalid
Redis publish subscription
0 basic introduction to single chip microcomputer: how to use digital multimeter and precautions
[no title] free test questions for constructor municipal direction general foundation (constructor) and theoretical test for constructor municipal direction general foundation (constructor) in 2022
Provincial election + noi part I dynamic planning DP
When using charts to display data, the time field in the database is repeated. How to display the value at this time?
Koltin35, headline Android interview algorithm
How to prevent the other party from saying that he has no money after winning the lawsuit?
【js逆向】md5加密参数破解
SPL installation and basic use (II)
SPL Introduction (I)
事务方法调用@Transactional
Airsim雷达相机融合生成彩色点云
Book of quantitative trading - reading notes of the man who conquers the market
How to use OKR as the leadership framework of marketing department