Reset the AVR
At reset, all I/O registers are set to their initial values and the program starts executing from the reset vector. The instruction at the reset vector must be an absolute jump JMP instruction so that the program jumps to the reset handling routine. If the program never enables interrupts, the interrupt vector can be overwritten by normal program code. Figure 22 shows the circuit diagram of the reset logic. Table 19 defines the electrical parameters of the reset circuit.
When the reset source takes effect, the I/O ports are immediately reset to their initial values without any clock assistance.
When all reset signals disappear, the delay counter is activated, thereby extending the internal reset and allowing the power supply to reach a stable level before the MCU works normally. The overflow time of the delay counter is set by the user through the fuse bit CKSEL. For the selection of the delay time, please refer to P35 "Clock Source".
Reset Sources
ATmega64 has 5 reset sources:
• Power-on reset. When the power supply voltage is lower than the power-on reset threshold (VPOT), the MCU is reset.
• External reset. The MCU is reset when the low level on the RESET pin lasts longer than the minimum pulse width.
• Watchdog reset. A reset occurs when the watchdog is enabled and the watchdog timer times out.
• Brownout reset. When the brownout reset function is enabled, the MCU is reset when the power supply voltage is lower than the brownout reset threshold (VBOT).
• JTAG AVR reset: The MCU is reset when the reset register is 1. See P 235 “IEEE 1149.1 (JTAG) Boundary Scan”.
Notes:
1. During a voltage drop, a reset will only occur when the voltage is below VPOT.
2. Some devices may have a VBOT lower than the nominal minimum operating voltage. These devices are tested during production testing with VCC = VBOT to ensure that a brownout detection reset occurs before VCC drops to a level that stops the processor from functioning properly. The test condition for the ATmega64L is BODLEVEL=1 and the test condition for the ATmega64 is BODLEVEL=0. BODLEVEL=1 is not applicable to the ATmega64.
Previous article:ATmega64 Power-On Reset
Next article:ATmega64 How to reduce power consumption
Recommended ReadingLatest update time:2024-11-16 14:30
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
- Share CC2541 Bluetooth clock settings
- Analysis of the structure and working principle of single chip microcomputer serial communication
- Basic functions of linear charger
- A place that I don't understand
- Problems with sensor acquisition circuits
- What are the RF challenges of small cells for 5G networks?
- Basic Features of DSP TMS320C6000
- Let's take a look at this power switching circuit.
- What is the reason for the Flash Timeout error message when downloading the program on STM32F4?
- EEWORLD University ---- FreeRTOS on stm32 ST