cancel
Showing results for 
Search instead for 
Did you mean: 

???ARPE (auto reload preload) STM32L476

SWenn.1
Senior III

Been looking closely at RM figures 342 AND 343.....I cannot see the value of the ARPE bit....when 1 it looks like the shadow register updates on UEV / or Interrupt and when 0 what?? 342 disregards showing the shadow register and on top of this who cares that it loads early when ARPE = 0.....

Can someone please explain the value of this bit?

1 ACCEPTED SOLUTION

Accepted Solutions

Effect of ARPE gets visible most if you write ARR to a value lower than is the current value of CNT. In that case, as Update occurs when CNT==ARR, timer keeps counting up until it reaches its top value (0xFFFF or 0xFFFF'FFFF) and rolls over to 0.

More nuanced uses of ARPE involve simultaneous writes to ARR and CCRx, synchronized actions on several timers, etc.

JW

View solution in original post

2 REPLIES 2

Effect of ARPE gets visible most if you write ARR to a value lower than is the current value of CNT. In that case, as Update occurs when CNT==ARR, timer keeps counting up until it reaches its top value (0xFFFF or 0xFFFF'FFFF) and rolls over to 0.

More nuanced uses of ARPE involve simultaneous writes to ARR and CCRx, synchronized actions on several timers, etc.

JW

SWenn.1
Senior III

Understood .....thank you