The AVR Control and Status Register provides information about the reset source that caused the AVR to reset.
· Bit 7..4 – Res: Reserved
Reserved bits, read operations return a value of zero.
· Bit 3 – WDRF: Watchdog reset flag
Set when a watchdog reset occurs. A power-on reset will clear it to zero, and it can also be cleared by writing a “0”.
· Bit 2 – BORF: Brownout detect reset flag
Set when a brownout detect reset occurs. A power-on reset will clear it to zero, and it can also be cleared by writing a “0”.
· Bit 1 – EXTRF: External reset flag
Set when an external reset occurs. A power-on reset will clear it to zero, and it can also be cleared by writing a “0”.
· Bit 0 – PORF: Power-on reset flag
Set when a power-on reset occurs on the ATtiny13. It can only be cleared by writing "0". In order to use these reset flags to identify a reset condition, the user should read the data of this register as early as possible and then reset it. If this register is reset before other resets occur, the source of subsequent resets can be understood by checking the reset flags.
Previous article:ATtiny13 reference voltage enable signal and startup time
Next article:ATtiny13 Watchdog Reset
- Popular Resources
- Popular amplifiers
- Learn C language for AVR microcontrollers easily (with video tutorial) (Yan Yu, Li Jia, Qin Wenhai)
- Starting from scratch - Introduction to AVR microcontroller development and typical examples
- AVR single chip computer instruction system fast memory method and quick lookup table
- Design of projector anti-theft device based on Attiny13
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
- High-precision electronic heartbeat comes from TI's breakthrough BAW resonator technology
- Keil newly built project, why can't I find ADuC7029
- [Fudan Micro FM33LG0 Series Development Board Evaluation] Development Board Hardware Evaluation, CMSIS-DAP Download Test
- 【Development Kit for nRF52840】+ Three Tools for Evaluation & Cloud Gateway Testing
- What is carrier bandwidth in wireless communications?
- Participate to get gifts | Welcome to Tektronix High Speed Serial Knowledge Planet
- 【Fudan Micro FM33LC046N】A breathtaking clock
- What happened to ZTE? I saw an article and shared it with everyone
- [Gizwits Gokit 3 Review] + Late Unboxing Review
- SHT31 review + sharing an mdk5 engineering code file