Datasheet

Table Of Contents
NOTE
The frequency counter can also be used in a test mode. This allows the hardware to check if the frequency is within a
minimum frequency and a maximum frequency, set in FC0_MIN_KHZ and FC0_MAX_KHZ. In this mode, the PASS bit in
FC0_STATUS will be set when DONE is set if the frequency is within the specified range. Otherwise, either the FAST or SLOW
bit will be set.
If the programmer attempts to count a stopped clock, or the clock stops running then the DIED bit will be set. If any of DIED,
FAST, or SLOW are set then FAIL will be set.
2.14.6.3. Configuring a GPCLK
TO DO: LIAM/TERRY: Missing content
2.14.6.4. Enabling resus
TO DO: LIAM/TERRY: Missing paragraph
2.14.6.5. Configuring sleep mode
TO DO: LIAM/TERRY: Missing paragraph
2.14.7. List of registers
Table 200. List of
CLOCKS registers
Offset Name Info
0x00 CLK_GPOUT0_CTRL Clock control, can be changed on-the-fly (except for auxsrc)
0x04 CLK_GPOUT0_DIV Clock divisor, can be changed on-the-fly
0x08 CLK_GPOUT0_SELECTED Indicates which src is currently selected (one-hot)
0x0c CLK_GPOUT1_CTRL Clock control, can be changed on-the-fly (except for auxsrc)
0x10 CLK_GPOUT1_DIV Clock divisor, can be changed on-the-fly
0x14 CLK_GPOUT1_SELECTED Indicates which src is currently selected (one-hot)
0x18 CLK_GPOUT2_CTRL Clock control, can be changed on-the-fly (except for auxsrc)
0x1c CLK_GPOUT2_DIV Clock divisor, can be changed on-the-fly
0x20 CLK_GPOUT2_SELECTED Indicates which src is currently selected (one-hot)
0x24 CLK_GPOUT3_CTRL Clock control, can be changed on-the-fly (except for auxsrc)
0x28 CLK_GPOUT3_DIV Clock divisor, can be changed on-the-fly
0x2c CLK_GPOUT3_SELECTED Indicates which src is currently selected (one-hot)
0x30 CLK_REF_CTRL Clock control, can be changed on-the-fly (except for auxsrc)
0x34 CLK_REF_DIV Clock divisor, can be changed on-the-fly
0x38 CLK_REF_SELECTED Indicates which src is currently selected (one-hot)
0x3c CLK_SYS_CTRL Clock control, can be changed on-the-fly (except for auxsrc)
0x40 CLK_SYS_DIV Clock divisor, can be changed on-the-fly
0x44 CLK_SYS_SELECTED Indicates which src is currently selected (one-hot)
RP2040 Datasheet
2.14. Clocks 172