CH32V003 WatchDog Datasheet

From Waveshare Wiki
Jump to: navigation, search

Introduction

  • This WatchDog primarily communicates through I2C, and it's easy to operate and user-friendly.

Register Table

  • The slave address of the chip: 0x67
  • Watchdog ON/OFF function (0x01)
Register R/W BIT7 BIT6 BIT5 BIT4 BIT3 BIT2 BIT1 BIT0
WATCH_ON_OFF(0x01) R/W
-
11: watchdog on
10: watchdog off
  • Set timeout duration, unit: seconds (0x02).
Register R/W BIT15 BIT14 BIT13 BIT12 BIT11 BIT10 BIT9 BIT8 BIT7 BIT6 BIT5 BIT4 BIT3 BIT2 BIT1 BIT0
WATCH_TIME(0x02) R/W
Bit[0:15] Time Interval: 0~65535
  • Return the remain time, unit: seconds (0x03)
Register R/W BIT15 BIT14 BIT13 BIT12 BIT11 BIT10 BIT9 BIT8 BIT7 BIT6 BIT5 BIT4 BIT3 BIT2 BIT1 BIT0
WATCH_REMAIN_TIME(0x03) R
Bit[0:15] Time interval: 0~65535
  • LED status indicator switch and timeout flag, timeout: indicates a system anomaly, where the watchdog has not been fed for an extended period, resulting in a system reset.
Register R/W BIT7 BIT6 BIT5 BIT4 BIT3 BIT2 BIT1 BIT0
WATCH_STATE(0x04) R/W
-
1: indicator ON
0: indicator OFF
-
11: Timed out
10: Not timed out
  • Software version number, 0x01 by default
Register R/W BIT7 BIT6 BIT5 BIT4 BIT3 BIT2 BIT1 BIT0
WATCH_FwVersion(0x05) R 0 0 0 0 0 0 0 1