cancel
Showing results for 
Search instead for 
Did you mean: 

how to write on the CCR2 register.

abodi.1
Associate II


_legacyfs_online_stmicro_images_0693W00000bjoplQAA.png
_legacyfs_online_stmicro_images_0693W00000bjoq5QAA.png
_legacyfs_online_stmicro_images_0693W00000bjoqyQAA.png 


_legacyfs_online_stmicro_images_0693W00000bjosVQAQ.png
_legacyfs_online_stmicro_images_0693W00000bjosfQAA.png

3 REPLIES 3

Please edit with a better title.

Is this with the STM32F412ZG from before?

Are you getting any output from TIM1 ?

What about all the other register in TIM1, can you see them, are they all zero?

Is the TIM1 clock enabled?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
abodi.1
Associate II

Yes it is active when

 I enter a value directly on here "" sConfigOC.Pulse = 250;"". it just takes the value set at the beginning.thank you


_legacyfs_online_stmicro_images_0693W00000bjpCuQAI.png
_legacyfs_online_stmicro_images_0693W00000bjp1iQAA.png

Dump all TIM1 registers

Perhaps get a UART working, and print the value out of the ADC and MAP function.

Does the ADC need to start/stop constantly?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..