Skip to main content
abodi.1
Associate II
May 10, 2023
Question

how to write on the CCR2 register.

  • May 10, 2023
  • 3 replies
  • 1811 views


_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

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
May 11, 2023

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
abodi.1
abodi.1Author
Associate II
May 11, 2023

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

Tesla DeLorean
Guru
May 11, 2023

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..