-
The first floor is right. What model is the 51 you are talking about, it is MCS-51, which was originally a series of single-chip microcomputers made by Intel, and later sold the core, and there are many 51 models of single-chip microcomputers, such as AT89C51, AT89C52 and other single-chip microcomputers. At present, I learned that the MCU courses offered by the school are all based on 8051, which tells you the principles, basic functions, and instructions of the 51 series, these things are universal, and after learning, as long as it is based on the MCS-51 developed by the MCU, these things are equally applicable.
It's like a school that tells you the structure of a car, tells you how to use manual transmission to drive, when you buy a car, you can drive a manual transmission car at random, the difference is that the manufacturer is different.
-
Generally, the class talks about the principle of single-chip microcomputer, which is difficult to understand, so it is better to learn the single-chip microcomputer C language directly, and then go back and re-learn its principle.
-
51 MCU timer working principle and usage tmod : control the working mode of the timer. 8 bits, the upper four bits control t1, and the lower four bits control t0.
Because timers work in 4 ways; tmod = 0x00 (working mode 0), tmod = 0x01 (working way 0), tmod = 0x02 (working way 2), tmod = 0x03 (working way 3). The above is controlled by the lower 4 bits, so it corresponds to t0. tr0:
t0 timer enable switch, tr0 = 1, start working; =0 stops working. et0: The t0 timer interrupts the switch, and when the timer time expires, it will run to interrupt the program.
et0=1, interrupt enabled, =0 disabled. EA : Interrupt main slag switch, you can think of it as the main switch of the circuit, EA=1, interrupt enabled; =0, interrupted incapacitated.
th0,tl0 : t0 timer count register, composed of 16 bits of count, 0x0000--0xffff(0--65535), as long as th0tl0=0xffff(65535), the program will run to interrupt the program, in the interrupt program, we have to re-assign th0, tl0 re-assigned. If we time 50 milliseconds, what value does th0 and tl0 correspond to?
As we said above, the 16-bit counter consisting of th0 and tl0 counts in the range of 0---65535. 50ms = 50 000us, we just let th0 tl0 start counting from (65535 - 50000), th0, tl0 will keep +1 until th0, tl0 = 65535, that is, we have counted 50000 times, and the time is 50ms. We just need to be in the middle.
-
Microcontroller. It works in the same way as a computer CPU, mainly using on-chip semiconductor memory.
Store the user's program and data, the core of the microprocessor CPU has instruction registers, instruction decoders, program counters and other components, by the program counter to find the next piece to be executed Tong lease instructions, after finding, the instruction will be sent to the instruction register, and then the instruction decoder translates and executes the instruction to complete the operation of the instruction function. In a word: the work of the microcontroller is to continuously take instructions, analyze instructions, and execute the cyclic process of instructions.
Execute according to the pre-written program to achieve the results expected by the user. The main purpose of the single-chip microcomputer is to make the controller of production equipment, the core component of the intelligent instrument, because the single-chip microcomputer is small, the hall wheel can be implanted in any equipment and instrument, so it is also embedded technology.
core components.
It generally consists of embedded microprocessors, peripheral hardware devices, and embedded operating systems.
and the user's application.
and other four parts. Embedded systems.
It is application-centric, based on computer technology, and the software and hardware can be tailored, which is suitable for the application system to have strict requirements for function, reliability, cost, volume, and power consumption. It is generally composed of four parts: embedded microprocessor, peripheral hardware devices, embedded operating system, and user applications, which are used to realize functions such as control, monitoring, or management of other devices. Embedded systems generally refer to non-PC systems, which include both hardware and software.
The hardware includes processors, microprocessors, memory and peripheral devices, IO ports, graphics controllers, etc. The software segment includes operating system software (OS), which requires real-time and multitasking operations, and application programming.
-
It's useless to say more, to put it simply, ARM is a kind of single-chip microcomputer, 51 too, but ARM's ROM and RAM are much larger than 51, and the IO port function and processing speed are also two levels, ARM can be on a lot of operating systems, 51 can only barely be on the extremely simple real-time operating system, so ARM is often used to develop mobile phones and other multi-** products, 51 can only complete limited real-time control functions, figuratively speaking, The grade difference between 51 and ARM is like the grade difference between a mobile phone and a PC.
51 MCU is a collective term for all MCUs compatible with the Intel 8031 command system. The ancestor of this series of single-chip microcomputer is Intel's 8004 single-chip microcomputer, and later with the development of flash ROM technology, 8004 single-chip microcomputer has made great progress, becoming one of the most widely used 8-bit single-chip microcomputer, its representative model is ATMEL's AT89 series, which is widely used in industrial measurement and control systems. Many companies have launched compatible models of the 51 series, which will have a large market for a long time to come.
51 single-chip microcomputer is a basic entry single-chip microcomputer, or the most widely used one. It should be noted that the 51 series microcontroller generally does not have self-programming capabilities.
-
Dude, you're a bit of a deep question
All I know is what a microcontroller is, what language it's made in, what it does.
The MCU is generally what we call the MCU, which is generally composed of internal CPU, memory, flash and peripherals. >>>More
First, choose according to your needs. We choose Bluetooth headphones, in general, there are two major needs. One is a simple pick-up**, which is the biggest demand of the driver's friend. >>>More
Ceramic tiles are divided into floor tiles, wall tiles and waist line tiles according to their functions. Floor tiles: according to the color of imitation Spanish bricks, vitrified tiles, glazed tiles, non-slip bricks and seepage polished tiles, etc. >>>More
Hot water boilers and steam boilers.
Because it is more appropriate for an aircraft carrier to be equipped with two types of carrier-based fixed-wing aircraft, one for air combat and the other for air combat.