; ----------------------------------------------------- ; T R I G G E R O U T T E S T : ; T I M I N G T H E W A T C H D O G T I M E R ; ----------------------------------------------------- ; 1) Ensure the watchdog timer configuration bit is enabled. ; 2) Set an Event Breakpoint (Break on SLEEP) to initiate a ; 'Trigger out' action only. ; 3) Connect your oscilloscope probe to the TRIGGER OUT pin and ; set up your oscilloscope to trigger on the rising edge. ; 4) Run the following code: CLRWDT NOP NOP SLEEP ; The expiration of the watchdog timer will wake up the MCU from ; sleep after ~2 seconds. The trigger out pulse high-time ; duration is the duration of the watchdog timer: ___---___ ; Since the default watchdog timer period value is 2 seconds ; typical, the trigger out pulse measured on the oscilloscope ; should be approximately 2 seconds. NOP NOP NOP Loop_101: BRA Loop_101 ; -----------------------------------------------------