Execution of Software

Flow to make it operate the microcontroller
Flow to make it operate the microcontroller

The mechanism by which the microcontroller is operated by the program is :
"The CPU reads the program written in the memory and works according to the instruction".

Let's take a look at the CPU, instructions, and the data flow.

  1. The CPU reads the instruction from the specified memory address.
  2. Its instruction is decrypted in the CPU.
  3. It works according to the instruction.
    (In the example on the right, execute "Data output to the output port")
Operate by the program in the memory
Operate by the program in the memory

In this way, If one task is completed, the next instruction is read from the next address in memory.
Then, the microcontroller operates by repeating 1 to 3.

Chapter 3 Hardware and Software of Microcontrollers

The Role of Software
Programming Language
Programming Language: Machine Language
Programming Language: Assembly Language
Programming Language: C Language
開啟新視窗