2024-03-13 06:11 AM
Hello,
I am using STM32U575 and would like toimplement a PWM output. This should also work in Stop2-Mode.
Clock for the LPTIM is LSE.
It works with LPTIM1 and 3 without any problems.
To generate a PWM in Stop2-mode, I use the LPBAM with LPDMA.
Now I would try it with LPTIM2, too. But it hasn`t work so far.
Is it even possible? LPTIM2 is connected to a different bus than the other LPTIMs.
The data sheet states that autonomous mode should be possible with LPTIM2?
Thank you in advance for your reply.
Solved! Go to Solution.
2024-03-21 02:10 AM
Hello @JoachimO,
To be precise LPTIM2 is functional only in stop1 mode. As shown in the figure from AN5645
This is inline with the description in the RM:
Sorry for the confusion!
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-03-19 05:28 AM
Hello @JoachimO, welcome to ST Community
>>s it even possible? LPTIM2 is connected to a different bus than the other LPTIMs.
Indeed, in SRD, only LPTIM1, 3, and 4 are available:
You can check the table of all the autonomous peripherals supported in stop2 mode in Getting started with LPBAM
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-03-19 11:27 PM
Is there an error in the reference manual (RM0456, page 2465) or how is the line "Autonomous mode" to be understood?
2024-03-21 02:10 AM
Hello @JoachimO,
To be precise LPTIM2 is functional only in stop1 mode. As shown in the figure from AN5645
This is inline with the description in the RM:
Sorry for the confusion!
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-03-21 02:23 AM
In the first table of your post, LPTIM1/2/4 are named for autonomous mode in Stop 2 mode.
Shouldn't that be LPTIM 1/3/4?
In the second table at LPTIM4 there is no autonomous mode available?
In relation to the table above, this would be a different statement.
2024-03-21 02:36 AM
Thank you @JoachimO
>>Shouldn't that be LPTIM 1/3/4? Indeed!
This typo should be corrected (Issue reported internally: Ticket 176652)
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.