Hi Vimal,
1. The FS45/65 contains 2 independent digital blocks:
- The Main state machine, INIT phase closed writing in the INIT_INT register. No time out limitation.
- The Fail Safe state machine, INIT phase closed at first good WD refresh. Fail Safe INIT phase is time out limited at 256ms, meaning Fail Safe INIT phase should be closed before 256ms.
2. With the help of the BAT_FAIL bit is only possible to find out if a POR has occurred and if it is necessary to re-initialize both Main and Fail Safe state machines. If the POR did not occur, it would still be necessary to find out if there was a wake-up from the LPOFF, after which the FSSM must be re-initialized. So by skipping this BAT_FAIL step and reading the MODE register directly, one finds both information (if a POR has occurred, SBC is in Init mode, if SBC was previously in LPOFF, it is normal and RESUME_LPOFF is set). This was recommended to us during the development of this demo driver.
Best regards,
Tomas