-
The microcontroller is composed of three modules: combinator, controller and main register.
The combinator consists of several parts, such as arithmetic logic units, accumulators, and registers. The function of ALU is to perform arithmetic or logical operations on the incoming data, and input ** as two disadvantages, 8-bit data, one from the accumulator and the other from the data register. ALU can add, subtract, and, or, compare the size of these two data, and finally store the results in the accumulator.
The controller is composed of program counters, instruction registers, instruction decoders, timing generators and operation controllers, etc., and is the "decision-making body" that issues commands, that is, coordinates and directs the operation of the entire microcomputer system.
-
Differences: 1. Different general range of electrical products.
Electronic modules are usually devices or integrated circuit boards with a certain function composed of a variety of ICs, with a wide range, followed by ICs, that is, integrated circuits, and finally MCUs, that is, single-chip microcomputers.
Difference 2, different role.
Large systems are often made up of many modules. The main products are industrial products such as IC driver external devices. The integrated circuit consists of a microcontroller and other electronic chips.
Difference 3, different process requirements.
There is little difference between the IC and module processes, and the integrated electro-electric dust circuit can be divided into semiconductor integrated circuits and membrane integrated circuits according to the manufacturing process; Thin film integrated circuits are further classified into thick film integrated circuits and thin film integrated circuits. MCUs are mainly semiconductor technology.
-
A programmable chip is a subset of a microcontroller.
The programmable chip is a part of the microcontroller architecture, which generally plays the role of ROM.
1 Microcontrollers is a kind of integrated circuit chip, which uses ultra-large-scale integrated circuit technology to integrate the best processor CPU, random access RAM, read-only memory ROM, a variety of IO ports and interrupt systems, timer counters and other functions (may also include display drive circuits, pulse width modulation circuits, analog multiplexers, A D converter and other circuits) integrated into a silicon wafer to form a small but complete microcomputer system, which is widely used in the field of industrial control. From the 80s of the last century, from the 4-bit and 8-bit single-chip microcomputers at that time, to the current 300m high-speed single-chip microcomputer.
2 Programmable chips. It is a chip that can save data and modify the data stored inside. Its essence is a memory chip. Doesn't have computing power.
-
MCU is a kind of small and perfect computer system that uses ultra-large scale integrated circuit technology to integrate the functions of the first processor, CPU, RAM, read-only memory, ROM, a variety of IO ports and interrupt systems, timers, timers and other functions into a silicon wafer.
-
A microcontroller is a microcontroller with a focus on miniature, a small but well-established computer system. MCUs also have CPU, RAM, ROM and a variety of IO ports and interrupt systems, timers, timers, etc.
The single-chip microcomputer is a kind of programmable chip, and the programmable chip also has DSP Arm FPGA, CPLD
-
MCU is a kind of programmable chip, which belongs to a type with relatively high ability and a wide variety of functions. There are various classifications of the microcontroller itself, such as the current classification of MPU and DSP. There are also CPLD, PLC and so on.
-
From the application point of view, the single-chip microcomputer is very suitable for small development, the function is not weak, and the cost is not high. PLC does industrial control, one action at a time, very stable, of course, the cost is not expensive. CPLDs are large programmable logic devices that are also very powerful.
-
Usually C or assembly language.
1. In most cases, the programs run by the single-chip microcomputer are written in C language. However, it is not a purely traditional C language, but a variant of the C51 language.
The C51 language is inherited from the C language. Unlike C, C51 runs on a microcontroller platform, while C runs on a common desktop platform. The C51 language has the advantages of the clear structure of the C language, which is easy to learn, and at the same time has the hardware operation capability of assembly language.
For engineers with C programming foundation, they can easily master the programming of C51 language of single-chip microcomputer.
2. Assembly language:
Assembly language is a low-level language, also known as symbolic language, for electronic computers, microprocessors, microcontrollers, or other programmable devices. In assembly language, mnemonics are used instead of the opcode of a machine instruction, and the address of an instruction or operand is replaced by a symbol or label. In different devices, assembly language corresponds to different machine language instruction sets, which are converted into machine instructions through the assembly process.
Generally speaking, a specific assembly language and a specific machine language instruction set are one-to-one correspondence and cannot be directly ported between different platforms.
Assembly language is not as widely used in programming as most other programming languages. In today's practical applications, it is usually used in low-level, hardware operation and demanding program optimization occasions. Assembly language is required for drivers, embedded operating systems, and real-time runners.
In some cases, C51 is not perfectly functional, so assembly language is an important complement to C51. Generally speaking, the boot part (initialization of the underlying hardware) is often done by assembly language. In addition, some requirements that are particularly time-sensitive and efficient also need to be completed in assembly language.
-
Assembly language or C language, it is recommended to learn C language first. Assembly language should be counted as address, assembly language or C language, it is recommended to learn C language first. Assembly language should be counted as an address
You use a P1 port to control the dynamic scanning of 8 digital tubes, and the dynamic scanning display of digital tubes needs to be blanked. >>>More
A: The bit-addressing area is located between 20F and 2Fh in the data memory. The registers in this interval can be bit-addressed, and they can be bit-manipulated and bit-arithmetic. >>>More
In this case, it depends on sp, ret is equal to (sp) pch, sp-1 sp (sp) pcl, sp-1 sp >>>More
This can be done with the 3-terminal chips of the 78xx series. The peripheral circuit is very simple, and there is no need to use a single-chip microcomputer. If you make a constant current source with adjustable current, you can consider single-chip microcomputer +78xx (such as ).
It's too urgent now, you haven't learned the principle of microcomputer yet! >>>More