TI中文支持网
TI专业的中文技术问题搜集分享网站

CC13X0 用于计数system tick的register STCVR ,怎么读到的一直是0?

2.7.4.5 STCVR Register (Offset = 18h) [reset = X]
STCVR is shown in Figure 2-75 and described in Table 2-101 .
Return to Summary Table.
SysTick Current Value
Read from this register returns the current value of SysTick counter. Writing to this register resets the
SysTick counter (as well as STCSR.COUNTFLAG).
Figure 2-75. STCVR Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
RESERVED CURRENT
R/W-0h R/W-X
Table 2-101. STCVR Register Field Descriptions
Bit Field Type Reset Description
31-24 RESERVED R/W 0h Software should not rely on the value of a reserved. Writing any
other value than the reset value may result in undefined behavior.
23-0 CURRENT R/W X Current value at the time the register is accessed. No read-modifywrite protection is provided, so change with care. Writing to it with
any value clears the register to 0. Clearing this register also clears
STCSR.COUNTFLAG.

CC13X0 用于计数system tick的register  STCVR ,用CCS debug时,读到的值怎么一直是0?

xyz549040622:

你不要用debug,用串口输出这个寄存器的值看看。

赞(0)
未经允许不得转载:TI中文支持网 » CC13X0 用于计数system tick的register STCVR ,怎么读到的一直是0?
分享到: 更多 (0)