Skip to main content
JWang.30
Visitor II
April 12, 2022
Question

A Suggestion about the programming of cubeMX

  • April 12, 2022
  • 2 replies
  • 727 views

I reckon that users should set the ideal value of ARR and PSC, not ARR-1 and PSC-1. Because ST should do this job in the program.

This topic has been closed for replies.

2 replies

TDK
April 12, 2022

Having users enter PSC=1 in CubeMX and then getting PSC=0 in the code would be awful. Maybe I could see it if "PSC" wasn't listed in the CubeMX field description.

I think the better idea would be to have the timer update frequency be output in CubeMX and be updated when you change PSC/ARR and clock source.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Bob S
Super User
April 12, 2022

> I think the better idea would be to have the timer update

> output in CubeMX and updated when you change PSC/ARR.

Yeah, that ^^^^^