what is microcontroller


 Central Processing Unit in Microcontroller

If you are a microcontroller programmer it can be very helpful to understand the central processing unit (CPU). You will soon need to know all the possible actions it can take even if you want to be effective. We can start talking about the different prescriptions.


Record A is the main data record. It is often used as a cache when moving (the term aisle is well-rooted in computer architecture descriptions but always means a copy) of information from one location in the main memory to another. It is also used for all Arithmetic and Logic Unit (ALU) operations.


The following two (H and X) are most often used as a single 16-bit recording - write H: X or HX for short. In this context, it almost always contains a pointer to (the address of) a primary memory location. 


The next two registers Stack Pointer (SP) and Counter Program (PC) are always used as pointers and most often their values ​​are changed by the microcontroller 8051 and microprocessor CPU control unit (CU) as a side effect of instructions that have some other main purpose.


All computers can be thought of as non-stop operating engines. They bring (read) instructions from the main memory and then execute (perform the action it indicates). 


A sequence of individual data transfer and processing instructions individually collectively in the correct order can perform very complex operations. The PC keeps track of the memory address the CU uses to fetch the next program home. After each byte is removed the computer is enlarged (enlarged by one).


A prescription that can be added to a counter machine. That's his name - the program counter. The only deviation from this counting operation occurs during branch execution (or jump). 


If I'm talking about a branch taken. This means that a value is loaded on the microcontroller 8051 and microprocessor computer to replace the address generated by the last count operation. Conditional Industry Instructions - Instructions that may add new value to the PC or let it go on (depending on the outcome of a previous action) - that give all computers their tremendous benefit.

Post a Comment

Previous Post Next Post