83
//--------------------------------------------------------------------------------------------------------
#define GPIO1X_INPUT_DATA 0x12 // GPIO1X Input
#define GPIO3X_INPUT_DATA 0x42 // GPIO3X Input
//--------------------------------------------------------------------------------------------------------
#define GPIO2X_OUTPUT_DATA 0x21 // GPIO2X Output
//--------------------------------------------------------------------------------------------------------
#define GPIO1X_PULSE_CONTROL 0x13 // GPIO1x Level/Pulse Control Register
// 0:Level Mode
// 1:Pulse Mode
#define GPIO1X_PULSE_WIDTH_CONTROL 0x14 // GPIO1x Pulse Width Control Register
#define GP1_PSWIDTH_500US 0x00 // When select Pulse mode: 500 us.
#define GP1_PSWIDTH_1MS 0x01 // When select Pulse mode: 1 ms.
#define GP1_PSWIDTH_20MS 0x02 // When select Pulse mode: 20 ms.
#define GP1_PSWIDTH_100MS 0x03 // When select Pulse mode: 100 ms.
//--------------------------------------------------------------------------------------------------------
#define GPIO2X_PULSE_CONTROL 0x23 // GPIO2x Level/Pulse Control Register
// 0:Level Mode
// 1:Pulse Mode
#define GPIO2X_PULSE_WIDTH_CONTROL 0x24 // GPIO2x Pulse Width Control Register
#define GP2_PSWIDTH_500US 0x00 // When select Pulse mode: 500 us.
#define GP2_PSWIDTH_1MS 0x01 // When select Pulse mode: 1 ms.
#define GP2_PSWIDTH_20MS 0x02 // When select Pulse mode: 20 ms.
#define GP2_PSWIDTH_100MS 0x03 // When select Pulse mode: 100 ms.
//--------------------------------------------------------------------------------------------------------
#define GPIO3X_PULSE_CONTROL 0x43 // GPIO3x Level/Pulse Control Register
// 0:Level Mode
// 1:Pulse Mode
#define GPIO3X_Output_Data 0x41 // GPIO3x Output Data Register
#define GPIO3X_PULSE_WIDTH_CONTROL 0x44 // GPIO3x Pulse Width Control Register
#define GP3_PSWIDTH_500US 0x00 // When select Pulse mode: 500 us.
#define GP3_PSWIDTH_1MS 0x01 // When select Pulse mode: 1 ms.
#define GP3_PSWIDTH_20MS 0x02 // When select Pulse mode: 20 ms.
#define GP3_PSWIDTH_100MS 0x03 // When select Pulse mode: 100 ms.
//--------------------------------------------------------------------------------------------------------
#define WDT_TIMER_RANGE 0x37 // 0-255 (secord or minute program by WDT_UNIT)
#define WDT_CONFIGURATION 0x36 // Configure WDT Function
#define WDT_TIMEOUT_FLAG 0x40 // When watchdog timeout.this bit will be set to 1.
#define WDT_ENABLE 0x20 // Enable watchdog timer
#define WDT_PULSE 0x10 // Configure WDT output mode
// 0:Level Mode
// 1:Pulse Mode
#define WDT_UNIT 0x08 // Watchdog unit select.
// 0:Select second.
// 1:Select minute.
#define WDT_LEVEL 0x04 // When select level output mode:
// 0:Level low
// 1:Level high
#define WDT_PSWIDTH_1MS 0x00 // When select Pulse mode: 1 ms.
#define WDT_PSWIDTH_20MS 0x01 // When select Pulse mode: 20 ms.
#define WDT_PSWIDTH_100MS 0x02 // When select Pulse mode: 100 ms.
#define WDT_PSWIDTH_4000MS 0x03 // When select Pulse mode: 4 s.