CubeMX Examples, Timers & No .ioc Files?
Hello:
I am trying to come to an understanding using timer configurations with CubeMX/HAL. I hope someone can point me in the right direction. This is specifically for timer capture, but is probably applicable to PWM generation, and/or PWM capture too. This is using the Nucleo-L476RG demo board.
In general, I am spinning my wheels on the relationship of these things that all seemingly affect the frequency of an interrupt an capture. In the newest CubeMX, there is an example in: "STM32Cube_FW_L4_V1.13.0\Projects\NUCLEO-L476RG\Examples\TIM\TIM_PWMInput"
In the readme file, it states that:
The minimum frequency value to measure is (TIM3 counter clock / CCR MAX)
= (80 MHz)/ 65535
= 1120 Hz
That's great. So what is the right way to change the required variables to count a frequency of, let's say, 100Hz? If someone gives me a specific example, that's great too, but I still have not become self-educated. Without a core understanding of the relationship of the variables, I may get it to work this time, but what about next time?
One of the most pressing issues is that ST has provided these examples, without the ".ioc" files - the CubeMX files - so a person can open it up and understand with the configuration parameters just how this file was generated. Why are they not given with the examples?
I have been using the STM32F4, and never used CubeMX to code gen on that processor. Yet, I was able to do this fairly easily, getting perfect sub-hz resolution on frequency counts. I look at the code, see how it is done, but cannot replicate it with the STM32L4. So far, I have had nothing but frustration trying to set up CubeMX to do the same thing. None of the clock parameters I change in "SystemClock_Config" seem to get correct results, but lots of spasmodic numbers.
So...please, hopefully someone from ST can answer my question (more like a frustrated plea right now) and help me to fully understand this. Are there example/training videos? I have not found any. Just a lot of segmented training videos that don't really help put it together to figure this out.
Thank you...
Gary