Регистры Allwinner H616

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


PCCR01
9.9.5. PWM01 Clock Configuration Register - адрес: 0x300a020 (смещение: 0x0020)

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



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

  Unused

Bits 31 : 9

  PWM01_CLK_SRC

Bits 8 : 7
R/W
0x0

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


  PWM01_CLK_SRC_BYPASS_TO_PWM1

Bit 6
R/W
0x0

Bypass PWM01 clock source to PWM1 output
0: not bypass
1: bypass


  Unused

Bit 5

  PWM01_CLK_GATING

Bit 4
R/W
0x0

Gating clock for PWM01
0: Mask
1: Pass


  PWM01_CLK_DIV_M

Bits 3 : 0
R/W
0x0

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



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

md 300a020 1



Bit fields structure

typedef union  pccr01
{
  struct
  {
   unsigned pwm01_clk_div_m : 4;
   unsigned pwm01_clk_gating : 1;
   unsigned unused0 : 1;
   unsigned pwm01_clk_src_bypass_to_pwm1 : 1;
   unsigned pwm01_clk_src : 2;
   unsigned unused1 : 23;
  } b;
   unsigned long w;
} PCCR01
   

Allwinner H616 Manual