I have a question about the reset status register (RSTAT). It is described that the content of RSTAT register should be set to 00H in advance in order to identify the reset cause with this function. How should I initialize the content of RSTAT to 00H to identify the reset cause at MCU startup?
To initialize RSTAT, please follow the procedure below: 1. Start your MCU. 2. Read RSTAT with software. 3. Identify the reset cause. 4. Write 0x00H for the purpose of identification of the next reset cause. 5. Initialize RSTAT to 00H.