Skip to main content
This topic has been closed for replies.

15 replies

waclawek.jan
Super User
December 5, 2021

> The same code using TIM1 driving GPIO with PWM, has the same 72MHz timing as TIM3. Now I know! Is that explained anywhere?

Ah, the "timers clocked at twice the APB if APB is divided" gotcha.

0693W00000HnaqYQAR.png0693W00000HnapvQAB.png 

Also, see Table 2 in RM0008. Btw, AFAIK this table is only in the 'F1 manuals.

> I think I need to configure the DMA to be DRQ-ed from the GPIO

There's no direct way to do this; you have to go through a channel of a timer set to input capture, triggering the DMA. And then you are probably better off simply triggering the DMA from a free-runnig timer. And I don't believe you'll achieve significantly higher transfer rate than what you see now.

JW