Learn about AVR system clocks and clock options

Publisher:QuailLatest update time:2014-12-08 Source: eepwKeywords:AVR Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
Clock design has become a more and more difficult problem in embedded system design due to the increase in system complexity, integration and speed. Therefore, knowing more about clocks will be beneficial to the design of the entire system.
Clock system and its distribution
Figure 11 shows the main clock system and its distribution in AVR. At any given time, it is not necessary for all these clocks to be active. In order to reduce power consumption, the clock to a certain module can be stopped by various sleep modes, such as "power management and sleep mode" to be learned later. The clock system will be explained in detail below.
(Note: Since power consumption has become a problem, computers have learned to sleep; or vice versa, bionic)
Figure 11. Clock distribution

CPU clock--C clkCPU
CPU clock is introduced to the part of the system related to the operation of the AVR kernel. Examples of such modules are the general register file, status register and data memory that stores the stack pointer. Stopping the CPU clock will disable the operation and calculation of the kernel.
I/O clock--C clkI/O
I/O clock is used by most I/O modules, such as timer/counter and USART. The external interrupt module also uses the I/O clock, but note that some external interrupts are detected by asynchronous logic, and such interrupts can be detected even if the I/O clock is stopped.
Keywords:AVR Reference address:Learn about AVR system clocks and clock options

Previous article:Experiment of passive infrared alarm using AVR single chip mechanism
Next article:Design of LED Color Light Controller Using AVR Single Chip Microcomputer

Recommended ReadingLatest update time:2024-11-17 02:31

Design and implementation of fire-fighting robot based on AVR microcontroller
Abstract: According to the competition rules of the fire-fighting robot, the hardware structure design scheme and software design process of the fire-fighting robot are given. The robot processor used is an AVR microcontroller, which mainly uses infrared sensors and photosensitive sensors to detect the environment,
[Microcontroller]
Design and implementation of fire-fighting robot based on AVR microcontroller
[AVR ASF4 library function learning notes] 1. Use Microchip Studio graphical configuration project
Platform: Microchip Studio (formerly Atmel Studio 7) Xinshiji DMAVR-L Atmega 128A - AU New Construction Select the chip to be used and click CREATE NEW PROJECT to create a project. Configuration Setting the CPU Set the frequency according to the crystal used Lighting example: D7 is controlled by PE7 and
[Microcontroller]
[AVR ASF4 library function learning notes] 1. Use Microchip Studio graphical configuration project
Implementation of Industrial Gateway Based on AVR ATmega128
1 Introduction Nowadays, electronic technology is developing rapidly, especially single-chip microcomputers have been widely used in communication, transportation, household appliances, portable intelligent instruments, robot manufacturing and other fields. The product functions, precision and quality have been grea
[Microcontroller]
Implementation of Industrial Gateway Based on AVR ATmega128
Design of Display Panel for CAN Bus of AVR Single Chip Microcomputer
With the development of modern society and the advancement of science and technology, many high-rise buildings and intelligent buildings have emerged. Elevators, as an important means of transportation inside high-rise buildings, are increasingly being used. As an indispensable part of the elevator system, the applica
[Power Management]
Design of Display Panel for CAN Bus of AVR Single Chip Microcomputer
Detailed documentation of the SPI protocol working process, including example code
SPI: A 3-wire (some do not have SS line (select master or slave mode)) or 4-wire communication method:            MOSI: Master out slave in data line                  MISO: Master into slave slave data line                  SCK: Clock line                  SS: Master-slave mode selection line Understanding of the work
[Microcontroller]
Detailed documentation of the SPI protocol working process, including example code
Causes and solutions for AVR internal EEPROM data loss
To summarize the reasons for the loss of EEPROM data inside AVR: 1. Program problem; 2. Program runaway; 3. The write action of EEPROM related registers caused by external interference such as strong magnetic field, high voltage static electricity, etc.; 4. The system has a large inductive load,
[Microcontroller]
Causes and solutions for AVR internal EEPROM data loss
Application design of LED display screen based on AVR microcontroller
LED dot matrix blocks have the advantages of high brightness, uniform light emission, good reliability, and easy assembly, and can form display screens of various sizes. At present, LED display screens have been widely used in text display and have achieved good results, but most of them can only display scrolling t
[Microcontroller]
Application design of LED display screen based on AVR microcontroller
AVR RAM expansion method circuit diagram
The circuit diagram of AVR's RAM expansion method is shown below
[Microcontroller]
AVR RAM expansion method circuit diagram
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号