]> git.earman.xyz Git - sensor-watch.git/commitdiff
annotate voltage regulation erratum
authorAlex Maestas <git@se30.xyz>
Mon, 22 Jan 2024 00:31:27 +0000 (00:31 +0000)
committerAlex Maestas <git@se30.xyz>
Mon, 22 Jan 2024 00:39:20 +0000 (00:39 +0000)
watch-library/hardware/watch/watch_private.c

index 1a33e5c59a225f49c41c4938c878a0cef6db974e..002a168a30bdf42e975f967140834d2e13da9133 100644 (file)
@@ -35,7 +35,9 @@ void _watch_init(void) {
 
     // Use switching regulator for lower power consumption.
     SUPC->VREG.bit.SEL = 1;
-    // work around a silicon erratum that causes the microcontroller to lock up on leaving standby:
+
+    // per Microchip datasheet clarification DS80000782,
+    // work around silicon erratum 1.7.2, which causes the microcontroller to lock up on leaving standby:
     // request that the voltage regulator run in standby, and also that it switch to PL0.
     SUPC->VREG.bit.RUNSTDBY = 1;
     SUPC->VREG.bit.STDBYPL0 = 1;