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. See crate::adc::OnChipChannels::bandgap
Structs
The function is Disabled.
The current state doesn’t matter for reasons.
The function is Enabled.
The low voltage warning is a flag only.
The low voltage warning triggers an interrupt (and a flag).
Interface that controls when the Low Voltage Detection is active
Interface for the low voltage warning / interrupt
Datastructure for PMC interface
The low voltage detection (for reset) is active while the MCU is in run and stop modes.
The low voltage detection (for reset) is active only while MCU is in a run mode
V_LVDL threshold = 2.61V typ. for all KEA parts
V_LVDH threshold = 4.3V typ. for all KEA parts.