STM32F103R8Tx Timer issues
Hello everyone,
currently we are experimenting with the STM32F103R8T and it's timers.
We are trying to toggle Port A5 with about 500kHz using a timer.
We are (by hardware) in need to toggle exactly pin A5 although there is no AF related to a Timer.
What we have been trying is to use the formula update_frequ = SysClk/((PRSC+1)*(ARR+1)).
For toggling with an output of 500kHz we need 1Mhz updatefrequency.
(PRSC+1)*(ARR+1) = 64Mhz/1MHz, so a possible solution should be: ARR = 63, PSC=0,
which doesnt give the desired output, but an all time low.
By testing with ARR=63 and PSC=9-or other way around, (which should result in 100kHz updatefrequ or 50kHz Outputfrequ) we found the timer working correctly.
If we try to change the values of ARR and PSC to acommodate for the factor of ten (desired Updatefrequency 1Mhz) we are not getting the desired Output.
We are using internal clock with 8MHz, scaled to 64MHz Sysclock, which we proved to be okay via MCO by oscilloscope. settings for the timer are as follows:

Have a good day.
