2014-04-12 04:26 AM
I am using STM32F103 and its Referrence Manual(RM0008) said that TIM1_DMAR's default value is 0.
BUT when I connected the hardware and debugging with JLink, I found that TIM1_DMAR is always 1. And I never set it.AND if I reset TIM1_DMAR to 0 at a breakpoint, then Timer1completely stops running
. What's wrong with it?2014-04-12 04:51 AM
2014-04-12 06:15 AM
Haha, I understand you~
It must be printed as 0, am I right? :D2014-04-12 06:40 AM
2014-04-13 11:15 AM
If I understand correctly TIM1_DMAR is not a real register, it just redirects to real TIM registers according to TIM1_DCR.
So by default it would be mapped to CR1.2014-04-14 02:40 AM
Thanks so much. I got it.
I think that STM32F103's Referrence Manual is too brief.. I read it more than twice and still didn't know how to use it...