当前位置:网站首页>Single chip microcomputer (STC series 8051 core single chip microcomputer)
Single chip microcomputer (STC series 8051 core single chip microcomputer)
2022-06-23 02:00:00 【A new doggerel imitating ancient times】
1. Number system
- To better describe and remember the address of the microcomputer , The code is generally hexadecimal .
- Original code , Inverse and complement
The inverse code and complement of positive numbers are the same as the original code , The inverse of a negative number is : Keep the original code symbol bit unchanged , The digits of the value are reversed ; The complement of a negative number is : Take the reverse and add one .
All signed numbers in a computer are represented by complements ( Positive numbers have the same form , It can be thought that the original code is used to express ), The result of the operation is also a complement .
2. Microcomputer principle
- Von Neumann structure : A computer consists of an arithmetic unit , controller . Memory , Input devices and output devices are made up of .
- Microcomputer structure : A single chip microcomputer consists of a microprocessor (CPU), Memory , I / O interface (I/O Interface ) And the bus ( Address bus , Data bus and control bus ) form ; In addition, the input and output equipment is the system machine ( Such as PC machine ).
- programing language
machine language .
assembly language : Use English mnemonics to describe instructions ; Need to compile .
High-level language : Natural language description ; Need to compile . - Microcomputer working process
Fingering , Instruction decoding , Execution instruction .
3. Single chip microcomputer instruction system
- Assembly language instruction format
label opcode Operands . - Addressing mode
How to find operands when executing instructions . - Transmitted by data ( Instructions ), Arithmetic operation , Logical operations , Shift operation , Bit operation and control transfer constitute .
4. C51 Application framework
- Pretreatment part
( Such as include “stc15.h”# Contains the SCM header file ,include “GPIO.h”# Contains initialization I/O Port header file ) - Global variable definitions and function declarations
- The main function
- Subfunctions and interrupt service functions
5. Important functions of single chip microcomputer / form
- Memory :RAM,ROM
- timing / Counter
- Interrupt the system .
Task scheduling / Resource sharing / human-computer interaction .
send CPU It has the ability to deal with external emergencies in real time .
Interrupt the process : Interrupt request , Interrupt response , Interruption of service , Interrupt return . - Serial port .
asynchronous / Sync ; Simplex / Half duplex / full duplex . - A/D Conversion module .
principle : Step by step . - PWM( Pulse width modulation )
Use the duty ratio of square wave to encode the level of analog signal ,PWM The signal is digital , But as long as the bandwidth is enough , Any analog value can be used PWM Encoding , Can be realized D/A transformation .
High resolution counter implementation PWM. - human-computer interaction
LED Digital display : Static display , Dynamic scanning display ( Each has its own string / Parallel display mode ).
LCD Liquid crystal display (LCD) : Digital display pen segment , dot character , Lattice graphics . - keyboard
Independent buttons .
Matrix keyboard : Scanning ( Query scan , Time scan , Interrupt scan ) And line reversal method . - watchdog
Reliability design , If cpu Fail to visit the watchdog as required within the specified time , The watchdog will force a reset cpu.
边栏推荐
- 9. class and object practice and initialization list
- MySQL -- how to access the database of a computer in the same LAN (prenatal education level teaching)
- [luogu] p1083 [noip2012 improvement group] borrow classroom (line segment tree)
- Google benchmark user manual and examples
- C language foundation ----- write a function to find the larger value of two unequal integers
- Debian10 installing zabbix5.4
- Express framework installation and start service
- HDU - 7072 double ended queue + opposite top
- JS request path console reports an error failed to launch 'xxx' because the scheme does not have a registered handler
- JS prototype and prototype chain Paramecium can understand
猜你喜欢

Classical questions of function recursion

Interviewer: what is the difference between SSH and SSM frameworks? How to choose??

Use elk to save syslog, NetFlow logs and audit network interface traffic

pd. read_ CSV and np Differences between loadtext

6. const usage, combination of first and second level pointers

Data analysis method - user group analysis

Li Mu's notes on machine learning -1.2

On AI and its future trend | community essay solicitation

ERROR { err: YAMLException: end of the stream or a document separator is expected at line 6, colum

Common mistakes in C language (sizeof and strlen)
随机推荐
CSDN browser assistant for online translation, calculation, learning and removal of all advertisements
//1.17 printf function
Why can't I access object properties in a for in loop in an object array
Error in OpenCV image operation: error: (-215:assertion failed)_ src. empty() in function ‘cv::cvtColor‘
Questions not written in the monthly contest
Why is BeanUtils not recommended?
"First knowledge of C language" (Part 3)
Muduo simple usage
C language game minesweeping [simple implementation]
Branch and loop statements (including goto statements) -part1
JS to paste pictures into web pages
Network module packaging
8 vertical centering methods
Browser independent way to detect when image has been loaded
On AI and its future trend | community essay solicitation
Bc116 xiaolele changed to digital
//1.10 initial value of variable
Detailed explanation of GCC usage
Unique in Pimpl_ PTR compilation errors and Solutions
Score and loop statements (including goto statements) -part3