在使用TMS320C6455的看门狗的时候,当看门狗定时器溢出时应当如何使DSP复位?
一般的器件,当看门狗定时器溢出时,系统可以自动复位,因为在芯片内部,看门狗定时器溢出的信号可用作芯片的复位信号,但是我查询了6455的数据手册关于看门狗的部分,没有找到关于看门狗定时器溢出时DSP自动复位的描述,只有以下这段描述:
spru968.pdf page28.
4.1 Timer Output Signal and Timer Interrupt Signal in Watchdog Mode
When the periodic service sequence is not met, the timer counter increments
until it matches the period and times out. During a time out, a pulse will be
asserted on the timer output pin, and an internal maskable interrupt (TINTLO)
will be triggered. The timer output pin can be externally connected to the NMI
(non-maskable interrupt) pin of the device. Note that the timer pulse width
must be configured to generate an active low pulse long enough for the CPU
to recognize it as a NMI pulse. The pulse width is configured using the PWID
bits of the timer control register (TCR).
until it matches the period and times out. During a time out, a pulse will be
asserted on the timer output pin, and an internal maskable interrupt (TINTLO)
will be triggered. The timer output pin can be externally connected to the NMI
(non-maskable interrupt) pin of the device. Note that the timer pulse width
must be configured to generate an active low pulse long enough for the CPU
to recognize it as a NMI pulse. The pulse width is configured using the PWID
bits of the timer control register (TCR).
似乎是说要将timer output pin连接到NMI pin才能实现看门狗复位的功能,而我设计的PCB如今没有将这两个管脚相连,是不是就没有办法使用看门狗了?器件内部没有相应的连接机制吗?
TMS320C6455的这个设计,是不是有点不同寻常呢?
Hank Zhao:
你好,你也可以利用内部中断进行软件复位。
yaliang cao1:
”利用内部中断进行软件复位“,我不知道该怎么做,您可以再详细说一下吗?
Hank Zhao:
你好,在E2E上有软件复位的方法介绍:e2e.ti.com/…/125968.aspx 。
yaliang cao1:
谢谢你的回复,我看了你给的链接的帖子,但是我觉得软件复位与硬件复位还是有区别的,软件复位只是让程序跳转到c_int00的地方重新执行,但是看门狗的应用手册中有这样的描述:
spru968, page32:
When the watchdog timer is in the timeout state, the watchdog timer is
disabled, the WDEN bit is cleared to 0, and the timer is reset. After entering
the timeout state, the watchdog timer cannot be enabled again until a
hardware reset occurs.
说明一旦看门狗定时器溢出,只有通过硬件复位才能重新配置看门狗定时器,而通过软件复位的方式,虽然可以从主函数入口重新执行,但是看门狗无法再启动了。
其实我与发那个帖子的人遇到的是同样的问题,layout已经做好了,但是看门狗定时器的外部输出信号没有连接到硬件复位脚上,看来真是麻烦的事情了。
user5180039:
回复 yaliang cao1:
看门狗你是怎末做的,6系列的库文件没有看门狗寄存器配置,如果想用看门狗,是必须要将外部输入信号连接到硬件复位信号是什么意思
未经允许不得转载:TI中文支持网 » TMS320C6455的看门狗如何使用
TI中文支持网