Skip to main content
TDJ
Senior III
March 30, 2021
Solved

Does DFSDM limit SYSCLK frequency? (the problem)

  • March 30, 2021
  • 4 replies
  • 2528 views

I am trying to set up DFSDM clock for STM32H7A3VITx and external 10MHz Manchester-encoding modulator using CubeMX.

Since Manchester requires DFSDM clock at least 6x higher than modulator clock, minimum clock frequency is 60MHz.

The only two *active* clock source options are PCLK2 and SYSCLK. PCLK2 cannot be faster than 44MHz (otherwise CubeMX protests) so that leaves me with just one option: SYSCLK.

However, maximum allowed DFSDM clock, depending on Vcore, is 140MHz (DS13195, Table 23, p.84) so I would have to lower SYSCLK.

It seems that clock faster than allowed may cause filter glitches.

Please advise.

Btw, CubeMX does not object to DFSDM clocks higher that 140 MHz while it probably should.

0693W000008yKWdQAM.png 

This topic has been closed for replies.
Best answer by Piranha

> PCLK2 cannot be faster than 44MHz (otherwise CubeMX protests)

PCLK2 and all APB buses can go up to 140 MHz and CubeMX doesn't limit it either. Read the datasheet - the 44 MHz limit applies only to the VOS level 3.

> CubeMX does not object to DFSDM clocks higher that 140 MHz while it probably should.

Indeed this limit seems to be missing.

4 replies

TDJ
TDJAuthor
Senior III
April 1, 2021

For the output clock source audio (SAI) clock can be used but I guess this does not solve the problem since it is the output clock only (ACLK), not the internal DFSDM clock.0693W000008yKnZQAU.png

Piranha
PiranhaBest answer
Principal III
April 2, 2021

> PCLK2 cannot be faster than 44MHz (otherwise CubeMX protests)

PCLK2 and all APB buses can go up to 140 MHz and CubeMX doesn't limit it either. Read the datasheet - the 44 MHz limit applies only to the VOS level 3.

> CubeMX does not object to DFSDM clocks higher that 140 MHz while it probably should.

Indeed this limit seems to be missing.

TDJ
TDJAuthor
Senior III
April 3, 2021

Right, this does not seem correct - see the screen shot.

According to DS13195, Table 23 all APBs have the same limit 140MHz @VOS0.

CubeMX ver 6.2

0693W000008yczKQAQ.png

TDJ
TDJAuthor
Senior III
April 2, 2021

Ach, that is right, max PCLK2 depends on Vcore as well. Thanks