Регистры Allwinner H616

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


PCCR23
9.9.5. PWM23 Clock Configuration Register - адрес: 0x300a024 (смещение: 0x0024)

Контроллер ШИМ: список регистров



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

  Unused

Bits 31 : 9

  PWM23_CLK_SRC_SEL

Bits 8 : 7
R/W
0x0

Select PWM23 clock source
00: OSC24M
01: APB1
Others: Reserved


  PWM23_CLK_SRC_BYPASS_TO_PWM3

Bit 6
R/W
0x0

Bypass PWM23 clock source to PWM3 output
0: not bypass
1: bypass


  PWM23_CLK_SRC_BYPASS_TO_PWM2

Bit 5
R/W
0x0

Bypass PWM23 clock source to PWM2 output
0: not bypass
1: bypass


  PWM23_CLK_GATING

Bit 4
R/W
0x0

Gating clock for PWM23
0: Mask
1: Pass


  PWM23_CLK_DIV_M

Bits 3 : 0
R/W
0x0

PWM23 clock divide M
0000: /1
0001: /2
0010: /4
0011: /8
0100: /16
0101: /32
0110: /64
0111: /128
1000: /256
others: /



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

md 300a024 1



Bit fields structure

typedef union  pccr23
{
  struct
  {
   unsigned pwm23_clk_div_m : 4;
   unsigned pwm23_clk_gating : 1;
   unsigned pwm23_clk_src_bypass_to_pwm2 : 1;
   unsigned pwm23_clk_src_bypass_to_pwm3 : 1;
   unsigned pwm23_clk_src_sel : 2;
   unsigned unused0 : 23;
  } b;
   unsigned long w;
} PCCR23
   

Allwinner H616 Manual