Module kea_hal::system::pmc[][src]

Expand description

PMC - Power Management Controller

The PMC controls the Low Voltage Detect and the ADC bandgap voltage reference functions.

TODO: write an example

Low Voltage Detect

Low Voltage Detect Reset

This feature, when enabled can trigger a reset when the MCU’s input voltage drops below a selectable voltage threshold. This functionality can be active in both running and stop modes (default) or in running mode only.

Low Voltage Warning

This feature sets a warning flag bit and optional triggers an interrupt when the warning voltage threshold has been crossed. This threshold is user-selectable with 8 options grouped into sets of 4 which depend on which low voltage detect reset threshold is chosen.

Bandgap Voltage Reference

The PMC contains a field that enables the internal buffer for the bandgap voltage reference used by the ADC adn ACMP peripherals. This is impelemented in those areas.

Structs

Disabled

The function is Disabled.

DontCare

The current state doesn’t matter for reasons.

Enabled

The function is Enabled.

Flag

The low voltage warning is a flag only.

Interrupt

The low voltage warning triggers an interrupt (and a flag).

LVReset

Interface that controls when the Low Voltage Detection is active

LVWarn

Interface for the low voltage warning / interrupt

Pmc

Datastructure for PMC interface

RunAndStop

The low voltage detection (for reset) is active while the MCU is in run and stop modes.

RunOnly

The low voltage detection (for reset) is active only while MCU is in a run mode

_2v6

V_LVDL threshold = 2.61V typ. for all KEA parts

_4v3

V_LVDH threshold = 4.3V typ. for all KEA parts.

Enums

Error

Error Enumeration

LvwHigh

Low Voltage Warning Threshold, High range (set by V_LVDx).

LvwLow

Low Voltage Warning Threshold, Low range (set by V_LVDx).