Module rosc

Source
Expand description

ROSC

Modules§

ctrl
Ring Oscillator control
div
Controls the output divider
dormant
Ring Oscillator pause control
This is used to save power by pausing the ROSC
On power-up this field is initialised to WAKE
An invalid write will also select WAKE
Warning: setup the irq before selecting dormant mode
freqa
The FREQA & FREQB registers control the frequency by controlling the drive strength of each stage
The drive strength has 4 levels determined by the number of bits set
Increasing the number of bits set increases the drive strength and increases the oscillation frequency
0 bits set is the default drive strength
1 bit set doubles the drive strength
2 bits set triples drive strength
3 bits set quadruples drive strength
freqb
For a detailed description see freqa register
phase
Controls the phase shifted output
randombit
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
status
Ring Oscillator Status

Structs§

RegisterBlock
Register block

Type Aliases§

CTRL
CTRL (rw) register accessor: Ring Oscillator control
DIV
DIV (rw) register accessor: Controls the output divider
DORMANT
DORMANT (rw) register accessor: Ring Oscillator pause control
This is used to save power by pausing the ROSC
On power-up this field is initialised to WAKE
An invalid write will also select WAKE
Warning: setup the irq before selecting dormant mode
FREQA
FREQA (rw) register accessor: The FREQA & FREQB registers control the frequency by controlling the drive strength of each stage
The drive strength has 4 levels determined by the number of bits set
Increasing the number of bits set increases the drive strength and increases the oscillation frequency
0 bits set is the default drive strength
1 bit set doubles the drive strength
2 bits set triples drive strength
3 bits set quadruples drive strength
FREQB
FREQB (rw) register accessor: For a detailed description see freqa register
PHASE
PHASE (rw) register accessor: Controls the phase shifted output
RANDOMBIT
RANDOMBIT (r) register accessor: 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
STATUS
STATUS (r) register accessor: Ring Oscillator Status