Регистры Allwinner H616

Сокращения  |  Дерево шин  |  Карта памяти


WDOG_MODE_REG
3.6.5. Watchdog Mode Register - адрес: 0x30090b8 (смещение: 0x00B8)

Таймер: список регистров



31 ||||||||||||||||| 16
15 ||||||||||||||||| 00

  Unused

Bits 31 : 8

  WDOG_INTV_VALUE

Bits 7 : 4
R/W
0x0

Watchdog Interval Value
Watchdog clock source is OSC24M/750. If the clock source is turned off,
Watchdog will not work.
0000: 16000 cycles (0.5s)
0001: 32000 cycles (1s)
0010: 64000 cycles (2s)
0011: 96000 cycles (3s)
0100: 128000 cycles (4s)
0101: 160000 cycles (5s)
0110: 192000 cycles (6s)
0111: 256000 cycles (8s)
1000: 320000 cycles (10s)
1001: 384000 cycles (12s)
1010: 448000 cycles (14s)
1011: 512000 cycles (16s)
Others: Reserved


  Unused

Bits 3 : 1

  WDOG_EN

Bit 0
R/W1S
0x0

Watchdog Enable
0: No effect
1: Enable the Watchdog



Команда U-Boot для чтения регистра

md 30090b8 1



Bit fields structure

typedef union  wdog_mode_reg
{
  struct
  {
   unsigned wdog_en : 1;
   unsigned unused0 : 3;
   unsigned wdog_intv_value : 4;
   unsigned unused1 : 24;
  } b;
   unsigned long w;
} WDOG_MODE_REG
   

Allwinner H616 Manual