![EVOC EC5-1812CLDNA(B) Скачать руководство пользователя страница 26](http://html1.mh-extra.com/html/evoc/ec5-1812cldna-b/ec5-1812cldna-b_manual_2446415026.webp)
Appendix
- 22 -
EC5-1812CLDNA(B)
/*
offset 0x65
register 0x65,Watch Dog timeout
bit[7]WDT timeout value Unit Select
0=MInutes(default)
1=Seconds
*/
b.
Select to time by second with the following words:
;suppose it is under WDT programming mode
WRITEREG(0x65,0x80)
(4)
Enable/Disable
WDT
;suppose it is under WDT programming mode
WRITEREG(0x66, TIME-OUT-VALUE)
;// offset 0x66
//write-in preset time
TIME-OUT-VALUE
Note: the range of TIME-OUT-VALUE is from 1 to 255, the unit is “second” or
“minute”. If TIME-OUT-VALUE is zero, WDT is disabled.
Start WDT when TIME-OUT-VALUE is non-zero value only.
(5)
Exit WDT Programming Mode
Outportb (0x2e, 0x00);