AnsweredAssumed Answered

TIM1 registers read errata

Question asked by travkin.roman on Jan 9, 2017
Latest reply on Mar 19, 2017 by Ottens.Arlet

Tim1 registers read corruption data in H & L sequence

So, info in reference manual is irrelevant? The read should be always done as:

; Read Seq_1
ld A, TIM1_REGH;
ld XL, TIM1_REGL;

?

 

Will the following sequences lead to incorrect results?

; Read Seq_2
ldw X, #TIM1_REGH; Store in X address of TIM1_REGH
ld A,(X); Read TIM1_REGH
push A;
incw X; Set pointer to TIM1_REGL
ld A,(X); Read TIM1_REGH
; Read Seq_3
ldw X, #TIM1_REGH; Store in X address of TIM1_REGH
ld A,(X); Read TIM1_REGH
push A;
ldw X, #TIM1_REGL; Store in X address of TIM1_REGL
ld A,(X); Read TIM1_REGL

Outcomes