What are microcontroller clock cycle, machine cycle, and instruction cycle?

Publisher:InnovateMindLatest update time:2013-03-04 Source: 21IC Keywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

What is a clock cycle? What is a machine cycle? What is an instruction cycle? What is the relationship between the clock cycle, machine cycle and oscillation cycle?

Answer: Clock cycle is the oscillation cycle: it is the oscillation cycle of the crystal oscillator, and is the smallest timing unit. State cycle: it is the clock cycle after the oscillation frequency is divided by 2. Obviously, one state cycle contains two oscillation cycles. Machine cycle (MC): one machine cycle consists of 6 state cycles, i.e. 12 oscillation cycles, and is the unit for measuring instruction execution time. Instruction cycle: it is the time required to execute an instruction. One instruction cycle consists of 1 to 4 machine cycles.

Keywords:MCU Reference address:What are microcontroller clock cycle, machine cycle, and instruction cycle?

Previous article:My experience in learning microcontroller
Next article:Small program for timer in 51 single chip microcomputer

Recommended ReadingLatest update time:2024-11-16 18:04

51 single chip microcomputer - simulated taxi meter
This assembly program is very complex, but the functions it implements are still very simple. In terms of hardware, there are also insufficient digits to display the amount. Let's rewrite a program in C as follows: #include reg52.h   #include intrins.h #define BAITIAN 10 //Daytime price/km #define YEJIAN 14 /
[Microcontroller]
51 single chip microcomputer - simulated taxi meter
Atmospheric pressure and temperature detection system based on 51 single chip microcomputer
1. Hardware Solution This design mainly uses the air pressure sensor BMP180 to obtain the temperature and atmospheric pressure of the current location, and displays it through LCD1602. The measured value is compared with the set threshold to control the buzzer and LED light to prompt the user. It is mainly composed
[Microcontroller]
Atmospheric pressure and temperature detection system based on 51 single chip microcomputer
Design of a pulse fast charging system based on single chip microcomputer
1. Design of switching power supply circuit The switching power supply circuit in the system provides a stable voltage for charging the battery using a flyback switching power supply circuit. The flyback switching power supply circuit is relatively simple, and it uses one less large energy storage filter inductor and
[Microcontroller]
Design of a pulse fast charging system based on single chip microcomputer
How to use the SST MCU P4 port
       The 44-pin package chip of SST89e516 has an additional P4 port like MCS51. The P4 port uses the same IO as P0~P3, but the address of the P4 port is A5H. In the header file, add sfr P4 = 0xa5;        You will find that you cannot use sbit during use. That is to say, because the address of P4 port is A5H, which c
[Microcontroller]
51 MCU-code files and tests
Create the "infrared.c" and "infrared.h" files. 1. Code of infrared.c #include reg52.h #include infrared.h     unsigned char irflag = 0; //Infrared receiving flag, set to 1 after receiving a frame of correct data unsigned char ircode ; // infrared code receiving buffer     /* Initialize infrared receiving functi
[Microcontroller]
51 MCU-code files and tests
TI launches new low-power Bluetooth® wireless MCU
TI launches new low-power Bluetooth® wireless MCU to enable cost-effective Bluetooth market with excellent RF and low power performance Engineers can apply Bluetooth low energy technology to more products with TI's new CC2340 wireless MCU Beijing (June 21, 2022) – Texas Instruments (TI) tod
[Network Communication]
TI launches new low-power Bluetooth® wireless MCU
STC12C series MCU reads four-channel AD data function program
The following program can be used in practice. The crystal oscillator is 11.0592M... The data read out is sent to the array. When used, the corresponding bit of the array can be directly read. void ADC_START(void); void ADC0(void); void ADC1(void); void ADC2(void); void ADC3(void);  sfr P1M0 = 0x92; sfr P1M1 = 0x91; s
[Microcontroller]
Application System Based on Dual C8051F020 Microcontrollers
0Introduction ​ Since MCU (microcontroller) has obvious advantages in reliability, size, power consumption, cost performance, etc., the upper and lower computer instruments (lower computer part) composed of it have been widely used in many industrial control and data acquisition
[Microcontroller]
Application System Based on Dual C8051F020 Microcontrollers
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号