Hello Everyone.
It is so great to be with all MCU lovers at the same place ..
I have just migrated from PIC mcus to STMs and I am quite excited with all these new stuff coming up every day , and everysecond I discover its new features ..
I got one of those minimal system boards which is coming with STM32F103C8T MCUs and I was just trying to understand Keil and its access syntax to the MCU and its registers ...
Here is my question ;
Is there a very fast way of modifying a single bit without changing the others ? For example I know I can reach Timer2 with (TIM2->CR1)... But I don't how I can reach or change Timer2->CR1->CEN = false or true ...
Please give me a clue about that ..
Regards ..
No, that's not going to work, it writes the entire register. Use the RMW form as directed.
Try reading the Cortex-M3 manual and understand Bit-banding