ATmega128 reset source

Publisher:HarmoniousSoulLatest update time:2021-11-09 Source: eefocusKeywords:ATmega128 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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 is a 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, thus prolonging 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 P 34 “Clock Source”.


Reset Sources
ATmega128 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”.

ATmega128 Reset Logic ATmega128 Reset Characteristics
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 ATmega128L is BODLEVEL=1 and the test condition for the ATmega128 is BODLEVEL=0. BODLEVEL=1 is not applicable to the ATmega128.


Keywords:ATmega128 Reference address:ATmega128 reset source

Previous article:ATmega128 Power-On Reset
Next article:ATmega128 How to reduce power consumption

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号