Datasheet

Table Of Contents
Description
freqa & freqb control the frequency by controlling the drive strength of each stage
The drive strength of each stage is given by:
ds_stage[n] = 1+dsn[0]+dsn[1]+dsn[2]
To calculate the frequency to a first approximation:
for range=0: freq = fbase0 * 4/4 *
(8+ds_stage[0]+ds_stage[1]+ds_stage[2]+ds_stage[3]+ds_stage[4]+ds_stage[5]+ds_stage[6]+ds_stage[7])/8
for range=1: freq = fbase0 * 4/3 * (6+ds_stage[0]+ds_stage[1]+ds_stage[2]+ds_stage[3]+ds_stage[4]+ds_stage[5])/6
for range=2: freq = fbase0 * 4/2 * (4+ds_stage[0]+ds_stage[1]+ds_stage[2]+ds_stage[3])/4
for range=3: freq = fbase0 * 4/1 * (2+ds_stage[0]+ds_stage[1])/2
where fbase0 is the frequency for range0 with no ds bits set
fbase0 will depend on temperature, voltage and process parameters.
fbase0 pre-layout estimate is 25-100MHz. This will be refined when final layout is available
If fbase0=50MHz then, to a first approximation:
for range=0: freq = 50 - 200 MHz in 32 unequal steps
for range=1: freq = 70 - 280 MHz in 24 unequal steps
for range=2: freq = 100 - 400 MHz in 16 unequal steps
for range=3: freq = 200 - 800 MHz in 8 unequal steps
In the higher ranges fewer stages contribute to the frequency but the
generated clock propagates through the unused stages so their drive
strengths should be set to the maximum.
Table 261. FREQA
Register
Bits Name Description Type Reset
31:16 PASSWD Set to 0x9696 to apply the settings
Any other value in this field will set all drive strengths to 0
RW 0x0000
15 Reserved. - - -
14:12 DS3 Stage 3 drive strength RW 0x0
11 Reserved. - - -
10:8 DS2 Stage 2 drive strength RW 0x0
7 Reserved. - - -
6:4 DS1 Stage 1 drive strength RW 0x0
3 Reserved. - - -
2:0 DS0 Stage 0 drive strength RW 0x0
FREQB Register
Description
For detailed description see freqa register
Table 262. FREQB
Register
Bits Name Description Type Reset
31:16 PASSWD Set to 0x9696 to apply the settings
Any other value in this field will set all drive strengths to 0
RW 0x0000
15 Reserved. - - -
14:12 DS7 Stage 7 drive strength RW 0x0
11 Reserved. - - -
10:8 DS6 Stage 6 drive strength RW 0x0
7 Reserved. - - -
6:4 DS5 Stage 5 drive strength RW 0x0
RP2040 Datasheet
2.16. Ring Oscillator (ROSC) 199