RP2040_SVD.WATCHDOG

Entities

Array Types

Record Types

Subtypes

Variables

Description

------------- Registers -- -------------

CTRL_PAUSE_DBG_Field

type CTRL_PAUSE_DBG_Field
  (As_Array : Boolean := False)
is record
   case As_Array is
      when False =>
         Val : HAL.UInt2;
      when True =>
         Arr : CTRL_PAUSE_DBG_Field_Array;
   end case;
end record;
Record fields
As_Array
Val
Arr

CTRL_PAUSE_DBG_Field_Array

type CTRL_PAUSE_DBG_Field_Array is array (0 .. 1) of Boolean
  with Component_Size => 1, Size => 2;

CTRL_Register

type CTRL_Register is record
   TIME           : CTRL_TIME_Field := 16#0#;
   PAUSE_JTAG     : Boolean := True;
   PAUSE_DBG      : CTRL_PAUSE_DBG_Field :=
                     (As_Array => False, Val => 16#1#);
   Reserved_27_29 : HAL.UInt3 := 16#0#;
   ENABLE         : Boolean := False;
   TRIGGER        : Boolean := False;
end record;
Record fields
TIME

Pause the watchdog timer when JTAG is accessing the bus fabric

PAUSE_JTAG

Pause the watchdog timer when processor 0 is in debug mode

PAUSE_DBG

unspecified

Reserved_27_29

When not enabled the watchdog timer is paused

ENABLE

After a write operation all bits in the field are cleared (set to zero). Trigger a watchdog reset

TRIGGER

CTRL_TIME_Field

subtype CTRL_TIME_Field is HAL.UInt24;

LOAD_LOAD_Field

subtype LOAD_LOAD_Field is HAL.UInt24;

LOAD_Register

type LOAD_Register is record
   LOAD           : LOAD_LOAD_Field := 16#0#;
   Reserved_24_31 : HAL.UInt8 := 16#0#;
end record;
Record fields
LOAD

unspecified

Reserved_24_31

REASON_Register

type REASON_Register is record
   TIMER         : Boolean;
   FORCE         : Boolean;
   Reserved_2_31 : HAL.UInt30;
end record;
Record fields
TIMER

Read-only.

FORCE

unspecified

Reserved_2_31

TICK_COUNT_Field

subtype TICK_COUNT_Field is HAL.UInt9;

TICK_CYCLES_Field

subtype TICK_CYCLES_Field is HAL.UInt9;

TICK_Register

type TICK_Register is record
   CYCLES         : TICK_CYCLES_Field := 16#0#;
   ENABLE         : Boolean := True;
   RUNNING        : Boolean := False;
   COUNT          : TICK_COUNT_Field := 16#0#;
   Reserved_20_31 : HAL.UInt12 := 16#0#;
end record;
Record fields
CYCLES

start / stop tick generation

ENABLE

Read-only. Is the tick generator running?

RUNNING

Read-only. Count down timer: the remaining number clk_tick cycles before the next tick is generated.

COUNT

unspecified

Reserved_20_31

WATCHDOG_Periph

WATCHDOG_Periph : aliased WATCHDOG_Peripheral
  with Import, Address => WATCHDOG_Base;

WATCHDOG_Peripheral

type WATCHDOG_Peripheral is record
   CTRL     : aliased CTRL_Register;
   LOAD     : aliased LOAD_Register;
   REASON   : aliased REASON_Register;
   SCRATCH0 : aliased HAL.UInt32;
   SCRATCH1 : aliased HAL.UInt32;
   SCRATCH2 : aliased HAL.UInt32;
   SCRATCH3 : aliased HAL.UInt32;
   SCRATCH4 : aliased HAL.UInt32;
   SCRATCH5 : aliased HAL.UInt32;
   SCRATCH6 : aliased HAL.UInt32;
   SCRATCH7 : aliased HAL.UInt32;
   TICK     : aliased TICK_Register;
end record;
Record fields
CTRL

Load the watchdog timer. The maximum setting is 0xffffff which corresponds to 0xffffff / 2 ticks before triggering a watchdog reset (see errata RP2040-E1).

LOAD

Logs the reason for the last reset. Both bits are zero for the case of a hardware reset.

REASON

Scratch register. Information persists through soft reset of the chip.

SCRATCH0

Scratch register. Information persists through soft reset of the chip.

SCRATCH1

Scratch register. Information persists through soft reset of the chip.

SCRATCH2

Scratch register. Information persists through soft reset of the chip.

SCRATCH3

Scratch register. Information persists through soft reset of the chip.

SCRATCH4

Scratch register. Information persists through soft reset of the chip.

SCRATCH5

Scratch register. Information persists through soft reset of the chip.

SCRATCH6

Scratch register. Information persists through soft reset of the chip.

SCRATCH7

Controls the tick generator

TICK