STM32 Timer : Auto-reload register register


Auto-reload register (TIMx_ARR)

The auto-reload register is preloaded.

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.

The update event is sent when the counter reaches the overflow (or underflow when downcounting)

and if the UDIS bit equals 0 in the TIMx_CR1 register.

It can also be generated by software.

The generation of the update event is described in detailed for each configuration.

ARPE: Auto-reload preload enable 0: TIMx_ARR register is not buffered -- Async Load
1: TIMx_ARR register is buffered ------ Sync Load

 

ARPE  = 0 , UEV = x : ARR preload register --> ARR shadow register

ARPE  = 1 , UEV = 1 : ARR preload register --> ARR shadow register

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM