cancel
Showing results for 
Search instead for 
Did you mean: 

PWM in Stop2-Mode with LPTIM2

JoachimO
Associate II

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.

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Sarra.S
ST Employee

Hello @JoachimO

To be precise LPTIM2 is functional only in stop1 mode. As shown in the figure from AN5645

SarraS_0-1711012062678.png

This is inline with the description in the RM: 

SarraS_1-1711012215847.png

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.

View solution in original post

5 REPLIES 5
Sarra.S
ST Employee

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: 

SarraS_0-1710851193406.png

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.

 

Is there an error in the reference manual (RM0456, page 2465) or how is the line "Autonomous mode" to be understood?

JoachimO_0-1710915740001.png

 

Sarra.S
ST Employee

Hello @JoachimO

To be precise LPTIM2 is functional only in stop1 mode. As shown in the figure from AN5645

SarraS_0-1711012062678.png

This is inline with the description in the RM: 

SarraS_1-1711012215847.png

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.

JoachimO
Associate II

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.

Sarra.S
ST Employee

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.