Hello @ajimathew ,
- The active register instance (also called the shadow register instance): its content is used by the timer peripheral logic to generate the timer channel outputted waveforms.
- The preload register instance: this is the register instance accessed by the software when the preload feature of the concerned register is enabled.
- The auto-reload register is preloaded.
So, writing to or reading from the auto-reload register accesses the preload register. The content of the preload register are transferred into the shadow register permanently or at each update event (UEV), depending on the auto-reload preload enable bit (ARPE) in TIMx_CR1 register.
For more explanation I advise you to take a look at AN4776 General-purpose timer cookbook for STM32 microcontrollers and precisely 1.4.2 The preload feature of the timer registers Section.
When your question is answered, please close this topic by choosing "Accept as Solution". This will help other users find that answer faster.
Kaouthar
To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.