ATmega128 crystal oscillator

Publisher:创新思绪Latest update time:2021-11-05 Source: eefocusKeywords:ATmega128 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

XTAL1 and XTAL2 are the input and output of the inverting amplifier used as the on-chip oscillator, as shown in Figure 19. This oscillator can use a quartz crystal or a ceramic resonator. The fuse bit CKOPT is used to select one of the two amplifier modes. When CKOPT is programmed, the oscillator produces full amplitude oscillation at the output pin. This mode is suitable for noisy environments and when a second clock buffer needs to be driven through XTAL2. In addition, this mode has a wider frequency range. When CKOPT is left unprogrammed, the output signal amplitude of the oscillator is relatively small. Its advantage is that the power consumption is greatly reduced, but the frequency range is relatively narrow and it cannot drive other clock buffers.


For resonators, the maximum frequency is 8 MHz when CKOPT is unprogrammed and 16 MHz when CKOPT is programmed. The values ​​of C1 and C2 should be the same regardless of whether a crystal or resonator is used. The optimum values ​​depend on the crystal or resonator used, as well as on stray capacitance and electromagnetic noise in the environment. Table 8 gives some guidelines for selecting capacitors for crystals. For ceramic resonators, the values ​​provided by the manufacturer should be used. For more information on how to select capacitors and how the oscillator works, refer to the Multipurpose Oscillator Application Manual.

ATmega128 crystal oscillator connection diagram

The oscillator can operate in three different modes, each with an optimized frequency range. The operating mode is selected by the fuse bits CKSEL3..1 as shown in Table 8.

ATmega128 crystal oscillator operating modes
Note: 1. This option is not available for crystals, only for ceramic resonators.

As shown in Table 9, fuses CKSEL0 and SUT1..0 are used to select the start-up time.

ATmega128 crystal oscillator clock options corresponding to the start time
Note: 
1. These options can only be used when the operating frequency is not too close to the maximum frequency and the frequency stability at startup is not important for the application. Not suitable for crystals.


2. These options are designed for ceramic resonators where the frequency is sufficiently stable at startup. They can also be used for crystals when the operating frequency is not too close to the maximum frequency and the frequency stability at startup is not important for the application.


Keywords:ATmega128 Reference address:ATmega128 crystal oscillator

Previous article:ATmega128 low frequency crystal oscillator
Next article:ATmega128 Clock Source

Recommended ReadingLatest update time:2024-11-16 15:38

AVR (ATMEGA128\16) SPI communication
  The following is the host part #include iom128v.h #include macros.h #define uchar unsigned char #define uint unsigned int #include "delay.h" #include "lcd.h" void port_init(void); //SPI initialize // clock rate: 1843199hz void spi_init(void) {  SPCR = 0x74; //setup SPI  SPSR = 0x00; //setup SPI  
[Microcontroller]
Use of DHT11 temperature and humidity sensor based on ATmega128
DHT11, like DS18B20, is a single bus chip. Unlike DHT10, one of its four pins is left empty. Similar to DS18B20, it has higher requirements on timing. The difference is that when writing a program, data collection must be done at intervals of more than 1s, otherwise the collection will fail. In addition
[Microcontroller]
ATmega128 MCU Control and Status Register - MCUCSR
The MCU Control and Status Register provides information about the reset source that caused the MCU to reset. In ATmega103 compatibility mode only EXTRF and PORF exist. • Bit 4 – JTRF: JTAG reset flag The JTAG reset register can be set by the JTAG instruction AVR_RESET, which causes the MCU to reset and sets JTRF. A
[Microcontroller]
ATmega128 MCU Control and Status Register - MCUCSR
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号