This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

c6670中的timer可不可以跨核使用?

Other Parts Discussed in Thread: TMS320C6670

c6670有四个核,在c6670里的用户指导文档里,这样描叙了它的计时器:The TMS320C6670 device has eight 64-bit timers in total. Of which Timer0 through Timer3 are dedicated to each of the four CorePacs as a watchdog ti mer and can also be used as general-purpo se timers. Each of other four timers can also be configured as a general-purpose timer only, with each timer programmed as a 64-bit timer or as two separate 32-bit timers.

这是否是说每一个核都有自己指定的两个核呢?如果不是,可不可以跨核使用timer呢?比如说我在核0创建了一个timer,可不可以在核1对这个timer进行操作(比如说取数,停止计数)

  • 8个timer里面,前四个各个核是私有的,比如timer0专属于corepac0,后四个timer是共享的,而且共享timer怎么用是由操作系统内核来提供机制和策略的,一般而言,操作系统会提供一个分发机制,屏蔽了用户对timer硬件的访问。

  • 您好,我还想请问您一个问题,为什么在我调用Timer_getNum得到的timer数是32,而调用Timer_getStatus得到的却是0-7 not available,8-15 free, 16-31 invalid。 还有就是如果我在创建timer时,指定了一个timerId,比如说8,可以成功的创建一个timer,但是在我调用Timer_getCount得到的确始终是0,只有当我将timerId定为Timer_ANY才可以在调用Timer_getCount得到有效的数值。