cancel
Showing results for 
Search instead for 
Did you mean: 

A Suggestion about the programming of cubeMX

JWang.30
Associate

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.

2 REPLIES 2
TDK
Guru

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
Principal

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

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

Yeah, that ^^^^^