Question
TIM1 registers read errata
Posted on January 09, 2017 at 10:00
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�?�?�?�?�?�?�?�?
�?
#stm8-timer