Регистры Allwinner H616

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


PER
9.9.5. PWM Enable Register - адрес: 0x300a040 (смещение: 0x0040)

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



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

  Unused

Bits 31 : 5

  PWM4_EN

Bit 4
R/W
0x0

When enable PWM, the 16-bit up-counter starts working and PWM channel4 is permitted to output PWM waveform.
0: PWM disable
1: PWM enable


  PWM3_EN

Bit 3
R/W
0x0

When enable PWM, the 16-bit up-counter starts working and PWM channel3 is permitted to output PWM waveform.
0: PWM disable
1: PWM enable


  PWM2_EN

Bit 2
R/W
0x0

When enable PWM, the 16-bit up-counter starts working and PWM channel2 is permitted to output PWM waveform.

0: PWM disable
1: PWM enable


  PWM1_EN

Bit 1
R/W
0x0

When enable PWM, the 16-bit up-counter starts working and PWM channel1 is permitted to output PWM waveform.

0: PWM disable
1: PWM enable


  Unused

Bit 0


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

md 300a040 1



Bit fields structure

typedef union  per
{
  struct
  {
   unsigned unused0 : 1;
   unsigned pwm1_en : 1;
   unsigned pwm2_en : 1;
   unsigned pwm3_en : 1;
   unsigned pwm4_en : 1;
   unsigned unused1 : 27;
  } b;
   unsigned long w;
} PER
   

Allwinner H616 Manual