A WatchDog przypadkiem nie pracuje w tych trybach. Może on ci bez problemu wybudzać MCU. BASCOM też nie jest tu jakąś wielką przeszkoda, możesz przecież odwolywać się do rejestrów przez ich nazwy, a nawet wstawić wstawkę ASM z noty katalogowej.dondu napisał/a:
2. Dlaczego w ogóle musisz resetować mikrokontroler?
Bo w bascomie nie mogę wybudzić go inaczej ze stanu IDDLE (POWER DOWN)
Jak dobrze sobie przejrzysz notę katalogową to wszystko co trzeba ma w sobie procesor, nawet układ wykrywania zaniku napięcia zasilania.
Power-down Mode
When the SM[1:0] bits are written to 10, the SLEEP instruction makes the MCU enter Powerdown
mode. In this mode, the Oscillator is stopped, while the external interrupts, and the Watchdog
continue operating (if enabled). Only an External Reset, a Watchdog Reset, a Brown-out
Reset, an external level interrupt on INT0, or a pin change interrupt can wake up the MCU. This
sleep mode halts all generated clocks, allowing operation of asynchronous modules only.