Dfsdm Reset And Clocks - ST STM32L4x6 Reference Manual

Table of Contents

Advertisement

RM0351
21.3.3

DFSDM reset and clocks

DFSDM on-off control
The DFSDM interface is globally enabled by setting DFSDMEN=1 in the
DFSDM_CHCFG0R1 register. Once DFSDM is globally enabled, all input channels (y=0..7)
and digital filters DFSDMx (x=0..3) start to work if their enable bits are set (channel enable
bit CHEN in DFSDM_CHCFGyR1 and DFSDMx enable bit DFEN in DFSDMx_CR1).
Digital filter x DFSDMx (x=0..3) is enabled by setting DFEN=1 in the DFSDMx_CR1 register.
Once DFSDMx is enabled (DFEN=1), both Sinc
reinitialized.
By clearing DFEN, any conversion which may be in progress is immediately stopped and
DFSDMx is put into stop mode. All register settings remain unchanged except
DFSDMx_AWSR and DFSDMx_ISR (which are reset).
Channel y (y=0..7) is enabled by setting CHEN=1 in the DFSDM_CHCFGyR1 register.
Once the channel is enabled, it receives serial data from the external Σ∆ modulator or
parallel internal data sources (CPU/DMA wire from memory).
DFSDM must be globally disabled (by DFSDMEN=0 in DFSDM_CHCFG0R1) before
stopping the system clock to enter in the STOP mode of the device.
DFSDM clocks
The internal DFSDM clock f
digital processing blocks (digital filter, integrator) and next additional blocks (analog
watchdog, short-circuit detector, extremes detector, control block) is generated by the RCC
block and is derived from the system clock SYSCLK (max. up to f
peripheral clock PCLK2 (see DFSDMSEL bit description in
independent clock configuration register
stopped in stop mode (if DFEN = 0 for all DFSDMx, x=0..3).
The DFSDM serial channel transceivers can receive an external serial clock to sample an
external serial data stream. The internal DFSDM clock must be at least 4 times faster than
the external serial clock if standard SPI coding is used, and 6 times faster than the external
serial clock if Manchester coding is used.
DFSDM can provide one external output clock signal to drive external Σ∆ modulator(s) clock
input(s). It is provided on DFSDM_CKOUT pin. This output clock signal must be in the range
0 - 20 MHz and is derived from DFSDM clock or from audio clock (see CKOUTSRC bit in
DFSDM_CHCFG0R1 register) by programmable divider in the range 2 - 256 (CKOUTDIV in
DFSDM_CHCFG0R1 register). Audio clock source is SAI1 clock selected by SAI1SEL[1:0]
field in RCC configuration (see
register
(RCC_CCIPR)).
21.3.4
Serial channel transceivers
There are 8 multiplexed serial data channels which can be selected for conversion by each
filter or Analog watchdog or Short-circuit detector. Those serial transceivers receive data
stream from external Σ∆ modulator. Data stream can be sent in SPI format or Manchester
coded format (see SITP[1:0] bits in DFSDM_CHCFGyR1 register).
The channel is enabled for operation by setting CHEN=1 in DFSDM_CHCFGyR1 register.
Digital filter for sigma delta modulators (DFSDM)
x
, which is used to drive the channel transceivers,
DFSDMCLK
(RCC_CCIPR)). The DFSDM clock is automatically
Section 6.4.28: Peripherals independent clock configuration
DocID024597 Rev 3
digital filter unit and integrator unit are
SYSCLK
Section 6.4.28: Peripherals
= 80 MHz) or
607/1693
657

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32L4x6 and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF