Expand description
CLOCKS
Modules§
- clk_
adc_ ctrl - Clock control, can be changed on-the-fly (except for auxsrc)
- clk_
adc_ div - Clock divisor, can be changed on-the-fly
- clk_
adc_ selected - Indicates which SRC is currently selected by the glitchless mux (one-hot).
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1. - clk_
gpout0_ ctrl - Clock control, can be changed on-the-fly (except for auxsrc)
- clk_
gpout0_ div - Clock divisor, can be changed on-the-fly
- clk_
gpout0_ selected - Indicates which SRC is currently selected by the glitchless mux (one-hot).
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1. - clk_
gpout1_ ctrl - Clock control, can be changed on-the-fly (except for auxsrc)
- clk_
gpout1_ div - Clock divisor, can be changed on-the-fly
- clk_
gpout1_ selected - Indicates which SRC is currently selected by the glitchless mux (one-hot).
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1. - clk_
gpout2_ ctrl - Clock control, can be changed on-the-fly (except for auxsrc)
- clk_
gpout2_ div - Clock divisor, can be changed on-the-fly
- clk_
gpout2_ selected - Indicates which SRC is currently selected by the glitchless mux (one-hot).
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1. - clk_
gpout3_ ctrl - Clock control, can be changed on-the-fly (except for auxsrc)
- clk_
gpout3_ div - Clock divisor, can be changed on-the-fly
- clk_
gpout3_ selected - Indicates which SRC is currently selected by the glitchless mux (one-hot).
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1. - clk_
peri_ ctrl - Clock control, can be changed on-the-fly (except for auxsrc)
- clk_
peri_ selected - Indicates which SRC is currently selected by the glitchless mux (one-hot).
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1. - clk_
ref_ ctrl - Clock control, can be changed on-the-fly (except for auxsrc)
- clk_
ref_ div - Clock divisor, can be changed on-the-fly
- clk_
ref_ selected - Indicates which SRC is currently selected by the glitchless mux (one-hot).
The glitchless multiplexer does not switch instantaneously (to avoid glitches), so software should poll this register to wait for the switch to complete. This register contains one decoded bit for each of the clock sources enumerated in the CTRL SRC field. At most one of these bits will be set at any time, indicating that clock is currently present at the output of the glitchless mux. Whilst switching is in progress, this register may briefly show all-0s. - clk_
rtc_ ctrl - Clock control, can be changed on-the-fly (except for auxsrc)
- clk_
rtc_ div - Clock divisor, can be changed on-the-fly
- clk_
rtc_ selected - Indicates which SRC is currently selected by the glitchless mux (one-hot).
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1. - clk_
sys_ ctrl - Clock control, can be changed on-the-fly (except for auxsrc)
- clk_
sys_ div - Clock divisor, can be changed on-the-fly
- clk_
sys_ resus_ ctrl - clk_
sys_ resus_ status - clk_
sys_ selected - Indicates which SRC is currently selected by the glitchless mux (one-hot).
The glitchless multiplexer does not switch instantaneously (to avoid glitches), so software should poll this register to wait for the switch to complete. This register contains one decoded bit for each of the clock sources enumerated in the CTRL SRC field. At most one of these bits will be set at any time, indicating that clock is currently present at the output of the glitchless mux. Whilst switching is in progress, this register may briefly show all-0s. - clk_
usb_ ctrl - Clock control, can be changed on-the-fly (except for auxsrc)
- clk_
usb_ div - Clock divisor, can be changed on-the-fly
- clk_
usb_ selected - Indicates which SRC is currently selected by the glitchless mux (one-hot).
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1. - enabled0
- indicates the state of the clock enable
- enabled1
- indicates the state of the clock enable
- fc0_
delay - Delays the start of frequency counting to allow the mux to settle
Delay is measured in multiples of the reference clock period - fc0_
interval - The test interval is 0.98us * 2interval, but let’s call it 1us * 2interval
The default gives a test interval of 250us - fc0_
max_ khz - Maximum pass frequency in kHz. This is optional. Set to 0x1ffffff if you are not using the pass/fail flags
- fc0_
min_ khz - Minimum pass frequency in kHz. This is optional. Set to 0 if you are not using the pass/fail flags
- fc0_
ref_ khz - Reference clock frequency in kHz
- fc0_
result - Result of frequency measurement, only valid when status_done=1
- fc0_src
- Clock sent to frequency counter, set to 0 when not required
Writing to this register initiates the frequency count - fc0_
status - Frequency counter status
- inte
- Interrupt Enable
- intf
- Interrupt Force
- intr
- Raw Interrupts
- ints
- Interrupt status after masking & forcing
- sleep_
en0 - enable clock in sleep mode
- sleep_
en1 - enable clock in sleep mode
- wake_
en0 - enable clock in wake mode
- wake_
en1 - enable clock in wake mode
Structs§
- Register
Block - Register block
Type Aliases§
- CLK_
ADC_ CTRL - CLK_ADC_CTRL (rw) register accessor: Clock control, can be changed on-the-fly (except for auxsrc)
- CLK_
ADC_ DIV - CLK_ADC_DIV (rw) register accessor: Clock divisor, can be changed on-the-fly
- CLK_
ADC_ SELECTED - CLK_ADC_SELECTED (r) register accessor: Indicates which SRC is currently selected by the glitchless mux (one-hot).
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1. - CLK_
GPOU T0_ CTRL - CLK_GPOUT0_CTRL (rw) register accessor: Clock control, can be changed on-the-fly (except for auxsrc)
- CLK_
GPOU T0_ DIV - CLK_GPOUT0_DIV (rw) register accessor: Clock divisor, can be changed on-the-fly
- CLK_
GPOU T0_ SELECTED - CLK_GPOUT0_SELECTED (r) register accessor: Indicates which SRC is currently selected by the glitchless mux (one-hot).
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1. - CLK_
GPOU T1_ CTRL - CLK_GPOUT1_CTRL (rw) register accessor: Clock control, can be changed on-the-fly (except for auxsrc)
- CLK_
GPOU T1_ DIV - CLK_GPOUT1_DIV (rw) register accessor: Clock divisor, can be changed on-the-fly
- CLK_
GPOU T1_ SELECTED - CLK_GPOUT1_SELECTED (r) register accessor: Indicates which SRC is currently selected by the glitchless mux (one-hot).
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1. - CLK_
GPOU T2_ CTRL - CLK_GPOUT2_CTRL (rw) register accessor: Clock control, can be changed on-the-fly (except for auxsrc)
- CLK_
GPOU T2_ DIV - CLK_GPOUT2_DIV (rw) register accessor: Clock divisor, can be changed on-the-fly
- CLK_
GPOU T2_ SELECTED - CLK_GPOUT2_SELECTED (r) register accessor: Indicates which SRC is currently selected by the glitchless mux (one-hot).
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1. - CLK_
GPOU T3_ CTRL - CLK_GPOUT3_CTRL (rw) register accessor: Clock control, can be changed on-the-fly (except for auxsrc)
- CLK_
GPOU T3_ DIV - CLK_GPOUT3_DIV (rw) register accessor: Clock divisor, can be changed on-the-fly
- CLK_
GPOU T3_ SELECTED - CLK_GPOUT3_SELECTED (r) register accessor: Indicates which SRC is currently selected by the glitchless mux (one-hot).
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1. - CLK_
PERI_ CTRL - CLK_PERI_CTRL (rw) register accessor: Clock control, can be changed on-the-fly (except for auxsrc)
- CLK_
PERI_ SELECTED - CLK_PERI_SELECTED (r) register accessor: Indicates which SRC is currently selected by the glitchless mux (one-hot).
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1. - CLK_
REF_ CTRL - CLK_REF_CTRL (rw) register accessor: Clock control, can be changed on-the-fly (except for auxsrc)
- CLK_
REF_ DIV - CLK_REF_DIV (rw) register accessor: Clock divisor, can be changed on-the-fly
- CLK_
REF_ SELECTED - CLK_REF_SELECTED (r) register accessor: Indicates which SRC is currently selected by the glitchless mux (one-hot).
The glitchless multiplexer does not switch instantaneously (to avoid glitches), so software should poll this register to wait for the switch to complete. This register contains one decoded bit for each of the clock sources enumerated in the CTRL SRC field. At most one of these bits will be set at any time, indicating that clock is currently present at the output of the glitchless mux. Whilst switching is in progress, this register may briefly show all-0s. - CLK_
RTC_ CTRL - CLK_RTC_CTRL (rw) register accessor: Clock control, can be changed on-the-fly (except for auxsrc)
- CLK_
RTC_ DIV - CLK_RTC_DIV (rw) register accessor: Clock divisor, can be changed on-the-fly
- CLK_
RTC_ SELECTED - CLK_RTC_SELECTED (r) register accessor: Indicates which SRC is currently selected by the glitchless mux (one-hot).
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1. - CLK_
SYS_ CTRL - CLK_SYS_CTRL (rw) register accessor: Clock control, can be changed on-the-fly (except for auxsrc)
- CLK_
SYS_ DIV - CLK_SYS_DIV (rw) register accessor: Clock divisor, can be changed on-the-fly
- CLK_
SYS_ RESUS_ CTRL - CLK_SYS_RESUS_CTRL (rw) register accessor:
- CLK_
SYS_ RESUS_ STATUS - CLK_SYS_RESUS_STATUS (r) register accessor:
- CLK_
SYS_ SELECTED - CLK_SYS_SELECTED (r) register accessor: Indicates which SRC is currently selected by the glitchless mux (one-hot).
The glitchless multiplexer does not switch instantaneously (to avoid glitches), so software should poll this register to wait for the switch to complete. This register contains one decoded bit for each of the clock sources enumerated in the CTRL SRC field. At most one of these bits will be set at any time, indicating that clock is currently present at the output of the glitchless mux. Whilst switching is in progress, this register may briefly show all-0s. - CLK_
USB_ CTRL - CLK_USB_CTRL (rw) register accessor: Clock control, can be changed on-the-fly (except for auxsrc)
- CLK_
USB_ DIV - CLK_USB_DIV (rw) register accessor: Clock divisor, can be changed on-the-fly
- CLK_
USB_ SELECTED - CLK_USB_SELECTED (r) register accessor: Indicates which SRC is currently selected by the glitchless mux (one-hot).
This slice does not have a glitchless mux (only the AUX_SRC field is present, not SRC) so this register is hardwired to 0x1. - ENABLE
D0 - ENABLED0 (r) register accessor: indicates the state of the clock enable
- ENABLE
D1 - ENABLED1 (r) register accessor: indicates the state of the clock enable
- FC0_
DELAY - FC0_DELAY (rw) register accessor: Delays the start of frequency counting to allow the mux to settle
Delay is measured in multiples of the reference clock period - FC0_
INTERVAL - FC0_INTERVAL (rw) register accessor: The test interval is 0.98us * 2interval, but let’s call it 1us * 2interval
The default gives a test interval of 250us - FC0_
MAX_ KHZ - FC0_MAX_KHZ (rw) register accessor: Maximum pass frequency in kHz. This is optional. Set to 0x1ffffff if you are not using the pass/fail flags
- FC0_
MIN_ KHZ - FC0_MIN_KHZ (rw) register accessor: Minimum pass frequency in kHz. This is optional. Set to 0 if you are not using the pass/fail flags
- FC0_
REF_ KHZ - FC0_REF_KHZ (rw) register accessor: Reference clock frequency in kHz
- FC0_
RESULT - FC0_RESULT (r) register accessor: Result of frequency measurement, only valid when status_done=1
- FC0_SRC
- FC0_SRC (rw) register accessor: Clock sent to frequency counter, set to 0 when not required
Writing to this register initiates the frequency count - FC0_
STATUS - FC0_STATUS (r) register accessor: Frequency counter status
- INTE
- INTE (rw) register accessor: Interrupt Enable
- INTF
- INTF (rw) register accessor: Interrupt Force
- INTR
- INTR (r) register accessor: Raw Interrupts
- INTS
- INTS (r) register accessor: Interrupt status after masking & forcing
- SLEEP_
EN0 - SLEEP_EN0 (rw) register accessor: enable clock in sleep mode
- SLEEP_
EN1 - SLEEP_EN1 (rw) register accessor: enable clock in sleep mode
- WAKE_
EN0 - WAKE_EN0 (rw) register accessor: enable clock in wake mode
- WAKE_
EN1 - WAKE_EN1 (rw) register accessor: enable clock in wake mode