The calibrated on-chip RC oscillator provides a fixed 8 MHz or 4 MHz clock. These frequencies are nominal values at 3V and 25°C. If the frequency exceeds the device nominal value, the CKDIV8 fuse must be programmed to divide the internal frequency by 8 during the startup phase. See P24 "System Clock Prescaler" for details.
This clock can also be used as the system clock by programming the fuse CKSEL according to Table 4. No external components are required when this clock is selected. The hardware automatically calibrates the RC oscillator by loading the calibration byte into the OSCCAL register at reset. At 3V and 25°C, this calibration provides an accuracy of ± 10% of the nominal frequency.
When using this oscillator as the system clock, the watchdog still uses its own watchdog timer as the basis for overflow reset. For more information on the calibration data, see P152 "Calibration Byte".
After selecting this oscillator, the startup time is determined by the fuse bit SUT, as shown in Table 7.
Oscillator Calibration Register - OSCCAL
· Bits 7 – RES: Reserved
bits, read returns zero.
· Bits 6..0 – CAL6..0: Oscillator calibration values
Writing calibration data to this address allows the internal oscillator to be adjusted to eliminate frequency deviations due to the production process. This is done automatically at reset. When OSCCAL is zero the oscillator operates at the minimum frequency. When writing non-zero data to it the frequency of the internal oscillator increases. Writing 0x7F gives the maximum frequency. The calibrated oscillator is used to time accesses to the EEPROM and Flash. Do not calibrate the frequency to more than 10% of the nominal frequency when writing to the EEPROM and Flash, otherwise the write operation may fail. Note that the oscillator is only calibrated for 8 MHz and 4 MHz frequencies, other frequencies are not guaranteed.
To ensure stable operation of the MCU, avoid drastically changing the nominal value when calibrating the internal RC oscillator. Sudden changes in the operating frequency exceeding 2% will produce abnormal behavior. Each change to the value in the OSCCAL register should not exceed 0x20.
Previous article:ATtiny2313 EEPROM data memory
Next article:ATtiny2313 SRAM data memory
Recommended ReadingLatest update time:2024-11-24 21:36
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- CATL releases October battle report
- Battery industry in October 2024: growth momentum remains unabated!
- Mercedes-Benz will launch the eCitaro equipped with NMC4 batteries to provide high energy density and long life
- Many companies have announced progress on solid-state batteries. When will solid-state batteries go into mass production?
- Xsens Sirius Series Inertial Sensors Enable 3D Inertial Navigation in Harsh Environments
- Infineon's Automotive Landscape: From Hardware to Systems
- STMicroelectronics discloses its 2027-2028 financial model and path to achieve its 2030 goals
- 2024 China Automotive Charging and Battery Swapping Ecosystem Conference held in Taiyuan
- State-owned enterprises team up to invest in solid-state battery giant
- The evolution of electronic and electrical architecture is accelerating
- Please comment on what kind of job position this is.
- May was quite busy, and my hand broke.
- Pre-registration for the prize-winning live broadcast | Infineon system solutions make electric motorcycle design more reliable and efficient!
- Circuit Diagram 16-Analysis of the Principle of Sine Wave Oscillator Circuit
- What methods do you generally use to recruit or find jobs? Which platform is used more often?
- Summary of the points to note when using CCS8.0 to program MSP430G2553
- Switching power supply old burning switch tube
- picture
- A fire broke out at Foxconn in Shenzhen, with thick smoke billowing from the scene
- PCB copper plating