ATmega328p
Hardware definitions
Loading...
Searching...
No Matches
atmega328p::reset Namespace Reference

Reset and brown-out definitions. More...

Enumerations

enum  Cause : uint8_t { PowerOn = 0x01 , External = 0x02 , BrownOut = 0x04 , Watchdog = 0x08 }
 Reset source flags. More...
enum  : uint8_t {
  has_power_on_reset = 1 , has_external_reset = 1 , has_brown_out_reset = 1 , has_watchdog_reset = 1 ,
  family_bod_code_110_is_1v8 = 1 , automotive_bod_code_110_level_documented = 0
}
 Brown-out fuse encodings. More...
enum class  BrownOutFuseCode : uint8_t {
  Disabled = 0x07 , Code110 = 0x06 , Code101 = 0x05 , Code100 = 0x04 ,
  Reserved011 = 0x03 , Reserved010 = 0x02 , Reserved001 = 0x01 , Reserved000 = 0x00
}
 Brown-out fuse threshold encodings. More...
enum  : uint16_t {
  family_datasheet_brown_out_hysteresis_typical_mv = 50U , family_datasheet_bod_code_110_typical_mv = 1800U , family_datasheet_bod_code_110_min_mv = 1700U , family_datasheet_bod_code_110_max_mv = 2000U ,
  brown_out_2v7_typical_mv = 2700U , brown_out_2v7_min_mv = 2500U , brown_out_2v7_max_mv = 2900U , brown_out_4v3_typical_mv = 4300U ,
  brown_out_4v3_min_mv = 4100U , brown_out_4v3_max_mv = 4500U
}

Detailed Description

Reset and brown-out definitions.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum : uint16_t
Enumerator
family_datasheet_brown_out_hysteresis_typical_mv 

Family datasheet brown out hysteresis typical (mV).

family_datasheet_bod_code_110_typical_mv 

Family datasheet BOD code 110 typical (mV).

family_datasheet_bod_code_110_min_mv 

Family datasheet BOD code 110 min (mV).

family_datasheet_bod_code_110_max_mv 

Family datasheet BOD code 110 max (mV).

brown_out_2v7_typical_mv 

Brown out 2v7 typical (mV).

brown_out_2v7_min_mv 

Brown out 2v7 min (mV).

brown_out_2v7_max_mv 

Brown out 2v7 max (mV).

brown_out_4v3_typical_mv 

Brown out 4v3 typical (mV).

brown_out_4v3_min_mv 

Brown out 4v3 min (mV).

brown_out_4v3_max_mv 

Brown out 4v3 max (mV).

◆ anonymous enum

anonymous enum : uint8_t

Brown-out fuse encodings.

Reset sources implemented by the device.

Enumerator
has_power_on_reset 

Power on reset available.

has_external_reset 

External reset available.

has_brown_out_reset 

Brown out reset available.

has_watchdog_reset 

Watchdog reset available.

family_bod_code_110_is_1v8 

Family BOD code 110 is 1v8.

automotive_bod_code_110_level_documented 

Automotive BOD code 110 level documented.

◆ BrownOutFuseCode

enum class atmega328p::reset::BrownOutFuseCode : uint8_t
strong

Brown-out fuse threshold encodings.

Enumerator
Disabled 

0x07 - Brown-out detection disabled.

Code110 

0x06 - 1.8 V level in family specifications; verify grade.

Code101 

0x05 - 2.7 V nominal threshold.

Code100 

0x04 - 4.3 V nominal threshold.

Reserved011 

0x03 - Reserved encoding.

Reserved010 

0x02 - Reserved encoding.

Reserved001 

0x01 - Reserved encoding.

Reserved000 

0x00 - Reserved encoding.

◆ Cause

enum atmega328p::reset::Cause : uint8_t

Reset source flags.

Enumerator
PowerOn 

0x01 - Power-on reset.

External 

0x02 - External RESET pin asserted.

BrownOut 

0x04 - Brown-out detector triggered.

Watchdog 

0x08 - Watchdog reset.