The ATmega88 chip has the following clock sources that are selected by Flash fuses: The clock is input to the AVR clock generator and then distributed to the corresponding modules.
The different clock options are described in the following sections. Any clock source requires a high enough Vcc to start the oscillator and a minimum oscillation period to ensure that the power supply reaches a stable level before normal operation begins.
To ensure a high enough Vcc, the device remains in the internal reset state for a timeout delay (tTOUT) after the other reset sources are released. P37 "System Control and Reset" describes the start conditions of the internal reset. This delay (tTOUT) is timed by the watchdog oscillator, and the number of delay cycles is set by the fuse bits SUTx and CKSELx. Table 5 lists the optional delays. The frequency of the watchdog oscillator is determined by the operating voltage, see P283 "ATmega88 Typical Characteristics - Initial Data" for details.
The main purpose of the delay is to ensure that the AVR is in reset state before the system can provide the minimum Vcc that meets the application requirements. The MCU does not monitor the actual voltage during the delay process. Therefore, it is up to the user to choose a suitable delay time that is longer than the Vcc rise time. If this is not possible, an internal/external BOD should be used. The BOD circuit ensures that the Vcc is high enough before releasing the reset. The timeout delay can be disabled when using the BOD. We do not recommend disabling the timeout delay when the BOD circuit is not used.
The oscillator needs to oscillate for several cycles before the clock enters a stable state. A ripple counter inside the chip monitors the oscillator output clock and ensures that the internal reset is valid before a given number of cycles is reached. The counter then releases the reset signal and the device starts executing the program. The recommended oscillation startup time depends on the clock type and can be 6 cycles of an external clock to 32K cycles of a low-frequency crystal oscillator.
When the AVR chip starts from reset, the clock startup sequence includes the timeout delay and the startup time. After the CPU wakes up from power-down mode or power-saving mode, Vcc is considered high enough, so the startup sequence only includes the startup time.
Default clock source
The internal RC oscillator frequency of the ATmega88 device is calibrated to 8.0MHz when it leaves the factory and CKDIV8 is programmed to obtain a 1.0MHz system clock. The startup time is set to the longest and the timing cycle is enabled. (CKSEL = "0010", SUT = "10", CKDIV8 = "0"). This setting ensures that the user can obtain the required clock source through any valid programming interface.
Previous article:ATmega88 crystal oscillator
Next article:ATmega88 clock system and its distribution
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Basic Concepts of RF Power Amplifier
- Is there any abnormal interference signal output from the GD32F350 pin?
- [RVB2601 Creative Application Development] 3. Continuously expand the routine sound and adjust the volume
- Mir MYC-YT507 development board review: Performance test 2 Qt performance test
- PMU Power Management Unit Layout
- Is there anyone familiar with Trinamic TMC5160/5130/2160?
- [Shanghai Hangxin ACM32F070 development board + touch function evaluation board evaluation] MDK development environment test LCD Demo
- [Environmental Expert's Smart Watch] Part 13: Storing various data in EEPROM
- Behavioral modeling sequential logic circuit (two-input AND gate) source code and test code
- Hardware testing method for TI-CC chip