鄙人做的是开关电源,在最恶劣工况加载时,DSP什么反应都没有,也不复位,系统成了一块砖,我之前的类似工况,DSP都是被干扰的复位的,这次怎么不复位也不工作呢?有达人指点一下吗?
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.
鄙人做的是开关电源,在最恶劣工况加载时,DSP什么反应都没有,也不复位,系统成了一块砖,我之前的类似工况,DSP都是被干扰的复位的,这次怎么不复位也不工作呢?有达人指点一下吗?
第一,你需要配置Watchdog使用内部晶振作为时钟源,这样就算程序跑飞,晶振丢失也不会让watchdog不工作。
第二,为了保险起见,你必须打开ClockFail位,并且使能NMI中断,在这个中断里,重新使能Watchdog,然后for语句直到Watchdog复位。
所有不用GPIO最好接地,然后JTAG口最好5-10K上拉,晶振的电容需要进行计算,并且电容的晶振尽可能的离MCU近。同时晶振连接到C2000的线路周围不要打过孔。
If External Oscillator or XCLKIN or Internal Oscillator 2 (OSCCLKSRC2) is selected and a missing clock is detected, the missing clock detect circuit will automatically switch to Internal Oscillator 1 (OSCCLKSRC1) and generate a CLOCKFAIL signal. In addition, the PLLCR register is forced to zero (PLL is bypassed) to prevent any potential overshoot. The user can then write to the PLLCR register to re-lock the PLL. Under this situation, the missing clock detect circuit will be automatically re-enabled (PLLSTS[MCLKSTS] bit will be automatically cleared). If Internal Oscillator 1 (OSCCLKSRC1) should also fail, then under this situation, the missing clock detect circuit will remain in limp mode. The user will have to re-enable the logic via the PLLSTS[MCLKCLR] bit.
你好这是上述手册描述的,我现在的问题是:
(1)我没有找到看门口能单独使用内部晶振的设置啊,我整个系统都使用是外部晶振的情况下能单独把看门狗设置成内部晶振?求指导。
(2)上述手册显示,当外部晶振MISS后,会自动切换到内置晶振工作啊。这样我还需要你的第二步操作吗?
谢谢