ATmega128 MCU Control and Status Register - MCUCSR

Publisher:机器人总动员Latest update time:2021-11-09 Source: eefocusKeywords:ATmega128  MCU  control  MCUCSR Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

The MCU Control and Status Register provides information about the reset source that caused the MCU to reset.

ATmega128 MCU Control and Status Registers

In ATmega103 compatibility mode only EXTRF and PORF exist.

• Bit 4 – JTRF: JTAG reset flag The
JTAG reset register can be set by the JTAG instruction AVR_RESET, which causes the MCU to reset and sets JTRF. A power-on reset will clear it to 0, and it can also be cleared by writing “0”.

• Bit 3 – WDRF: Watchdog Reset Flag
This bit is set when a watchdog reset occurs. A power-on reset will clear it to 0 and it can also be cleared by writing a “0” to it.

• Bit 2 – BORF: Brownout Detect Reset Flag
This bit is set when a Brownout Detect Reset occurs. It is cleared by a Power-On Reset and can be cleared by writing a “0” to it.

• Bit 1 – EXTRF: External Reset Flag.
Set when an external reset occurs. A power-on reset will clear it to 0 and it can also be cleared by writing a “0” to it.

• Bit 0 – PORF: Power-on reset flag


Set when a power-on reset occurs. Can only be cleared by writing "0".


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 known by checking the reset flags.


Keywords:ATmega128  MCU  control  MCUCSR Reference address:ATmega128 MCU Control and Status Register - MCUCSR

Previous article:ATmega128 reference voltage enable signal and startup time
Next article:ATmega128 Watchdog Reset

Latest Microcontroller Articles
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号