Trying to figure out how to change the ADC conversion speed. (Eventually).
I understand that it is derived from the system clock and some pre-scalers.
I am trying to wind through the Chibi initialisations to see how it is set initially. (Using the STM32F4x example).
When I start with the system clock initialisation I find that
Code: Select all
SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_ENABLE_Msk | SysTick_CTRL_TICKINT_Msk;
Somewhere else I then can find that i.e.
SysTick_CTRL_CLKSOURCE_Msk is (1UL << SysTick_CTRL_CLKSOURCE_Pos)
and SysTick_CTRL_CLKSOURCE_Pos is 2
after a lot of shifting and or-ing I finally can get the value of SysTick->CTRL.....
Is there an easier way to find the values of all these STM32F4x registers? (They are not in my Keil default register list).
Are there any tools that help with the shifting, or-ing and and-ing?
I can't believe that you guys all do it in your head or on a piece of paper.
( I have seen the STSW-STM32091 Clock configuration tool but that does not help me with the ADC, also I am talking about how to configure any configuration register easier).
Thanks
Eriks