Цитата(MiklPolikov @ Jun 11 2012, 19:55)
Листал документацию на STM32L151 , и вроде бы видил главу про аппаратный монитор напряжения питания : регистры в которых можно задавать пороговое значение, прерывания при достижении этих значений.....
А теперь найти не могу .
Это правда есть, или мне померещилось ?
Вроде есть такой.
Цитата
3.3.2 Power supply supervisor
.....
The device features an embedded programmable voltage detector (PVD) that monitors the
VDD/VDDA power supply and compares it to the VPVD threshold. This PVD offers 7 different
levels between 1.85 V and 3.05 V, chosen by software, with a step around 200 mV. An
interrupt can be generated when VDD/VDDA drops below the VPVD threshold and/or when
VDD/VDDA is higher than the VPVD threshold. The interrupt service routine can then generate
a warning message and/or put the MCU into a safe state. The PVD is enabled by software.