Регистры Allwinner H616

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


DCXO_CTRL_REG
3.13.5. DCXO Control Register - адрес: 0x7000160 (смещение: 0x0160)

Часы реального времени RTC: список регистров



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

  DCXO_FANOUT_ENB

Bit 31
R/W
0x0

0: enable DCXO wake up function
1: disable DCXO wake up function


  Unused

Bits 30 : 28

  DCXO_ICTRL

Bits 27 : 24
R/W
0x8

DCXO current control value


  Unused

Bit 23

  DCXO_TRIM

Bits 22 : 16
R/W
0x3F

DCXO cap array value
Capacity cell is 55fF


  Unused

Bits 15 : 13

  DCXO_BG

Bits 12 : 8
R/W
0x10

DCXO bandgap output voltage


  DCXO_LDO_INRUSHB

Bit 7
R/W
0x1

DCXO LDO driving capacity signal, active high


  XTAL_MODE

Bit 6
R/W
0x1

Xtal mode enable signal, active high
0: For external clk input mode
1: For normal mode


  DCXO_RFCLK_ENHANCE

Bits 5 : 4
R/W
0x3

DCXO rfclk enhance
Enhance driving capacity of output OUT_RF_REFCLK, 0x0 for 5pF, 0x1 for
10pF, 0x2 for 15pF, 0x3 for 20pF.


  Unused

Bits 3 : 2

  DCXO_EN

Bit 1
R/W
0x1

DCXO enable
1: Enable
0: Disable


  CLK16M_RC_EN

Bit 0
R/W
0x1

1: Enable
0: Disable
The related register configuration is necessary to ensure the reset debounce
circuit has a stable clock source.

The first time SoC starts up, by default, the reset debounce circuit of SoC
uses 32K divided by RC16M. In power-off, software reads the related bit to
ensure whether EXT32K is working normally, if it is normal, first switch the
clock source of debounce circuit to EXT32K, then close RC16M.
Without EXT32K scenario or external RTC scenario, software confirms firstly
whether EXT32K is working normally before switching, or software does not
close RC16M.



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

md 7000160 1



Bit fields structure

typedef union  dcxo_ctrl_reg
{
  struct
  {
   unsigned clk16m_rc_en : 1;
   unsigned dcxo_en : 1;
   unsigned unused0 : 2;
   unsigned dcxo_rfclk_enhance : 2;
   unsigned xtal_mode : 1;
   unsigned dcxo_ldo_inrushb : 1;
   unsigned dcxo_bg : 5;
   unsigned unused1 : 3;
   unsigned dcxo_trim : 7;
   unsigned unused2 : 1;
   unsigned dcxo_ictrl : 4;
   unsigned unused3 : 3;
   unsigned dcxo_fanout_enb : 1;
  } b;
   unsigned long w;
} DCXO_CTRL_REG
   

Allwinner H616 Manual