RP2040_SVD.ROSC

Entities

Simple Types

Record Types

Subtypes

Variables

Description

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

COUNT_COUNT_Field

subtype COUNT_COUNT_Field is HAL.UInt8;

COUNT_Register

type COUNT_Register is record
   COUNT         : COUNT_COUNT_Field := 16#0#;
   Reserved_8_31 : HAL.UInt24 := 16#0#;
end record;
Record fields
COUNT

unspecified

Reserved_8_31

CTRL_ENABLE_Field

type CTRL_ENABLE_Field is
   CTRL_ENABLE_Field_Reset,
   DISABLE,
   ENABLE)
  with Size => 12;
Enumeration Literal
CTRL_ENABLE_Field_Reset
DISABLE
ENABLE

CTRL_FREQ_RANGE_Field

type CTRL_FREQ_RANGE_Field is
   CTRL_FREQ_RANGE_Field_Reset,
   LOW,
   MEDIUM,
   TOOHIGH,
   HIGH)
  with Size => 12;
Enumeration Literal
CTRL_FREQ_RANGE_Field_Reset
LOW
MEDIUM
TOOHIGH
HIGH

CTRL_Register

type CTRL_Register is record
   FREQ_RANGE     : CTRL_FREQ_RANGE_Field := CTRL_FREQ_RANGE_Field_Reset;
   ENABLE         : CTRL_ENABLE_Field := CTRL_ENABLE_Field_Reset;
   Reserved_24_31 : HAL.UInt8 := 16#0#;
end record;
Record fields
FREQ_RANGE

On power-up this field is initialised to ENABLE\n The system clock must be switched to another source before setting this field to DISABLE otherwise the chip will lock up\n The 12-bit code is intended to give some protection against accidental writes. An invalid setting will enable the oscillator.

ENABLE

unspecified

Reserved_24_31

DIV_DIV_Field

type DIV_DIV_Field is
   DIV_DIV_Field_Reset,
   PASS)
  with Size => 12;
Enumeration Literal
DIV_DIV_Field_Reset
PASS

DIV_Register

type DIV_Register is record
   DIV            : DIV_DIV_Field := DIV_DIV_Field_Reset;
   Reserved_12_31 : HAL.UInt20 := 16#0#;
end record;
Record fields
DIV

unspecified

Reserved_12_31

FREQA_DS0_Field

subtype FREQA_DS0_Field is HAL.UInt3;

FREQA_DS1_Field

subtype FREQA_DS1_Field is HAL.UInt3;

FREQA_DS2_Field

subtype FREQA_DS2_Field is HAL.UInt3;

FREQA_DS3_Field

subtype FREQA_DS3_Field is HAL.UInt3;

FREQA_PASSWD_Field

type FREQA_PASSWD_Field is
   FREQA_PASSWD_Field_Reset,
   PASS)
  with Size => 16;
Enumeration Literal
FREQA_PASSWD_Field_Reset
PASS

FREQA_Register

type FREQA_Register is record
   DS0            : FREQA_DS0_Field := 16#0#;
   Reserved_3_3   : HAL.Bit := 16#0#;
   DS1            : FREQA_DS1_Field := 16#0#;
   Reserved_7_7   : HAL.Bit := 16#0#;
   DS2            : FREQA_DS2_Field := 16#0#;
   Reserved_11_11 : HAL.Bit := 16#0#;
   DS3            : FREQA_DS3_Field := 16#0#;
   Reserved_15_15 : HAL.Bit := 16#0#;
   PASSWD         : FREQA_PASSWD_Field := FREQA_PASSWD_Field_Reset;
end record;
Record fields
DS0

unspecified

Reserved_3_3

Stage 1 drive strength

DS1

unspecified

Reserved_7_7

Stage 2 drive strength

DS2

unspecified

Reserved_11_11

Stage 3 drive strength

DS3

unspecified

Reserved_15_15

Set to 0x9696 to apply the settings\n Any other value in this field will set all drive strengths to 0

PASSWD

FREQB_DS4_Field

subtype FREQB_DS4_Field is HAL.UInt3;

FREQB_DS5_Field

subtype FREQB_DS5_Field is HAL.UInt3;

FREQB_DS6_Field

subtype FREQB_DS6_Field is HAL.UInt3;

FREQB_DS7_Field

subtype FREQB_DS7_Field is HAL.UInt3;

FREQB_PASSWD_Field

type FREQB_PASSWD_Field is
   FREQB_PASSWD_Field_Reset,
   PASS)
  with Size => 16;
Enumeration Literal
FREQB_PASSWD_Field_Reset
PASS

FREQB_Register

type FREQB_Register is record
   DS4            : FREQB_DS4_Field := 16#0#;
   Reserved_3_3   : HAL.Bit := 16#0#;
   DS5            : FREQB_DS5_Field := 16#0#;
   Reserved_7_7   : HAL.Bit := 16#0#;
   DS6            : FREQB_DS6_Field := 16#0#;
   Reserved_11_11 : HAL.Bit := 16#0#;
   DS7            : FREQB_DS7_Field := 16#0#;
   Reserved_15_15 : HAL.Bit := 16#0#;
   PASSWD         : FREQB_PASSWD_Field := FREQB_PASSWD_Field_Reset;
end record;
Record fields
DS4

unspecified

Reserved_3_3

Stage 5 drive strength

DS5

unspecified

Reserved_7_7

Stage 6 drive strength

DS6

unspecified

Reserved_11_11

Stage 7 drive strength

DS7

unspecified

Reserved_15_15

Set to 0x9696 to apply the settings\n Any other value in this field will set all drive strengths to 0

PASSWD

PHASE_PASSWD_Field

subtype PHASE_PASSWD_Field is HAL.UInt8;

PHASE_Register

type PHASE_Register is record
   SHIFT          : PHASE_SHIFT_Field := 16#0#;
   FLIP           : Boolean := False;
   ENABLE         : Boolean := True;
   PASSWD         : PHASE_PASSWD_Field := 16#0#;
   Reserved_12_31 : HAL.UInt20 := 16#0#;
end record;
Record fields
SHIFT

invert the phase-shifted output\n this is ignored when div=1

FLIP

enable the phase-shifted output\n this can be changed on-the-fly

ENABLE

set to 0xaa\n any other value enables the output with shift=0

PASSWD

unspecified

Reserved_12_31

PHASE_SHIFT_Field

subtype PHASE_SHIFT_Field is HAL.UInt2;

RANDOMBIT_Register

type RANDOMBIT_Register is record
   RANDOMBIT     : Boolean;
   Reserved_1_31 : HAL.UInt31;
end record;
Record fields
RANDOMBIT

unspecified

Reserved_1_31

ROSC_Periph

ROSC_Periph : aliased ROSC_Peripheral
  with Import, Address => ROSC_Base;

ROSC_Peripheral

type ROSC_Peripheral is record
   CTRL      : aliased CTRL_Register;
   FREQA     : aliased FREQA_Register;
   FREQB     : aliased FREQB_Register;
   DORMANT   : aliased HAL.UInt32;
   DIV       : aliased DIV_Register;
   PHASE     : aliased PHASE_Register;
   STATUS    : aliased STATUS_Register;
   RANDOMBIT : aliased RANDOMBIT_Register;
   COUNT     : aliased COUNT_Register;
end record;
Record fields
CTRL

The FREQA & FREQB registers control the frequency by controlling the drive strength of each stage\n The drive strength has 4 levels determined by the number of bits set\n Increasing the number of bits set increases the drive strength and increases the oscillation frequency\n 0 bits set is the default drive strength\n 1 bit set doubles the drive strength\n 2 bits set triples drive strength\n 3 bits set quadruples drive strength

FREQA

For a detailed description see freqa register

FREQB

Ring Oscillator pause control\n This is used to save power by pausing the ROSC\n On power-up this field is initialised to WAKE\n An invalid write will also select WAKE\n Warning: setup the irq before selecting dormant mode

DORMANT

Controls the output divider

DIV

Controls the phase shifted output

PHASE

Ring Oscillator Status

STATUS

This just reads the state of the oscillator output so randomness is compromised if the ring oscillator is stopped or run at a harmonic of the bus frequency

RANDOMBIT

A down counter running at the ROSC frequency which counts to zero and stops.\n To start the counter write a non-zero value.\n Can be used for short software pauses when setting up time sensitive hardware.

COUNT

STATUS_Register

type STATUS_Register is record
   Reserved_0_11  : HAL.UInt12 := 16#0#;
   ENABLED        : Boolean := False;
   Reserved_13_15 : HAL.UInt3 := 16#0#;
   DIV_RUNNING    : Boolean := False;
   Reserved_17_23 : HAL.UInt7 := 16#0#;
   BADWRITE       : Boolean := False;
   Reserved_25_30 : HAL.UInt6 := 16#0#;
   STABLE         : Boolean := False;
end record;
Record fields
Reserved_0_11

Read-only. Oscillator is enabled but not necessarily running and stable\n this resets to 0 but transitions to 1 during chip startup

ENABLED

unspecified

Reserved_13_15

Read-only. post-divider is running\n this resets to 0 but transitions to 1 during chip startup

DIV_RUNNING

unspecified

Reserved_17_23

Write data bit of one shall clear (set to zero) the corresponding bit in the field. An invalid value has been written to CTRL_ENABLE or CTRL_FREQ_RANGE or FREQA or FREQB or DIV or PHASE or DORMANT

BADWRITE

unspecified

Reserved_25_30

Read-only. Oscillator is running and stable

STABLE