Hi,
I would like to use the AB1805 like we use TPL5010, with a configurable period unlike the TPL5010, but I'm not sure we can configure the watchdog of the AB1805 like the one of TPL5010 :
I would like to set a time interval with an interrupt to wake up the microcontroller, and simultaneously start a timeout counter for the watchdog, waiting for the WDI input controlled by the microcontroller to stop the watchdog before the timeout, or active the reset output if timeout.
To my mind, the documentation is not clear how the watchdog is working. Is this TPL5010 scenario reproducible? From the AM18X5 Datasheet who is a clone, what I understand is that the watchdog timer is an independent function and is automatically restart after a timeout or a change in the level of the WDI pin. Is it possible to synchronize the interrupt timer function and the watchdog timer?
Has anyone used this RTC this way?
I also would like to use the internal RC oscillator of the microcontroller at 8MHz, and use the clockout output of AB1805 at 32.768kHz as an asynchronous external clock, at least to be able to calibrate the internal 8MHz oscillator. Is there any inconvenience to do this for lower consumption? Is it achievable? I saw I can use the internal 8MHz oscillator with an external 32.768KHz crystal in asynchronous mode, or an external clock signal in synchronous mode, but can I use the internal 8MHz oscillator with an external 32.768KHz clock signal in asynchronous mode? (this question is specific to ATMEGA328p and 1284p)
EDIT:
18.11.8 ASSR – Asynchronous Status Register
Bit 6 – EXCLK: Enable External Clock Input
When EXCLK is written to one, and asynchronous clock is selected, the external clock input buffer is enabled and an external clock can be input on Timer Oscillator 1 (TOSC1) pin instead of a 32kHz crystal. Writing to EXCLK should be done before asynchronous operation is selected. Note that the crystal Oscillator will only run when this bit is zero.
If I'm not wrong, this ATMEGA datasheet extract means I can use an external clock in asynchronous mode from the RTC clock output, isn't it?