Checking the source of reset in PSoC3/PSoC5

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

  PSoC3/PSoC5 device has  multiple sources which can reset the device.

   
    
         
  • WatchDog
  •      
  • Low Voltage Detect Analog, LVI-A
  •      
  • Low Voltage Detect Digital, LVI-D
  •      
  • Software Reset and so on
  •     
    

Once the device is reset it is possible to identify the source of reset by reading the value of the register, RESET_SR0. However this register is read on clear. When the reset is triggered and the device boots, the device by default waits for bootloader and in the bootloader code this register is read and the status is cleared. However before reading this register the code preserves this register value as a variable, uint8 CyResetStatus.

   
0 Likes
1 Reply