AAEON EMB-CV2 User Manual
Page 67
M i n i - I T X
E M B - C V 2
Appendix A Programming the Watchdog Timer
A-6
A.2 W83627DHG Watchdog Timer Initial Program
LDN
Register Bit
Description
WDT
Timer
value
0x07 0xF6
Bit
[7-0]
00h: Time-out Disable
01h: Time-out occurs after 1 minute only.
02h: Time-out occurs after 2 second/minutes
03h: Time-out occurs after 3 second/minutes
……………………….......................................
FFh: Time-out occurs after 255
second/minutes
(The deviation is approx 1 second.)
WDT
Unit
0x07 0xF5
Bit3
Select WDTO# count mode.
0: Second Mode.
1: Minute Mode.
************************************************************************************
#include
#include
#define SIOIndex
0x2E //Modify for project support 2E/4E
#define SIOData
0x2F //Modify for project support 2F/4F
#define void AaeonWDTConfig(void);
#define void AaeonWDTEnable(Byte Timer, boolean Unit);
void Main(){
// Procedure : AaeonWDTConfig
// This procudure will enable the WDT counting.
AaeonWDTConfig (void);
// Procedure : AaeonWDTEnable
// (byte)Timer
: Time of WDT timer.(0x00~0xFF)
// (boolean)Unit
: Select time unit(0: second, 1: minute).
AaeonWDTEnable(Byte Timer, boolean Unit);
}