LPC11xx: proper WDT update

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC11xx: proper WDT update

747件の閲覧回数
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 返答(返信)

735件の閲覧回数
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 件の賞賛
返信

735件の閲覧回数
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 件の賞賛
返信