LPC11xx: proper WDT update

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC11xx: proper WDT update

769 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by trazoni on Fri Mar 04 09:52:05 MST 2011
The user manual recommends:

"Interrupts should be disabled during the feed sequence. An abort condition will occur if an
interrupt happens during the feed sequence." (see page 278).

However, the current sample code (wdt.c in driver folder) does not follow this suggestion.

So, what is right  (and what is an "abort condition")?
0 项奖励
回复
2 回复数

757 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by trazoni on Mon Mar 07 02:14:31 MST 2011
You may be right. The sample code itself doesn´t make any use of WDTFeed(), so there´s no telling how it is meant to be used. But it would be certainly nice to have some comment in the code or header if disabling all interrupts is a required precondition.
As the additional ISR-jitter is very small and doesn´t matter in my application, I will add the disabling/enabling function to "my" WDTFeed-function.
0 项奖励
回复

757 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by igorsk on Fri Mar 04 10:46:20 MST 2011
I guess the samples assume that interrupts are already disabled.
0 项奖励
回复