Module rp2040_pac::pwm::ch

source ·
Expand description

Cluster Cluster CH%s, containing CH*_CC, CH*_CSR, CH*_CTR, CH*_DIV, CH*_TOP

Modules§

  • Counter compare values
  • Control and status register
  • Direct access to the PWM counter
  • INT and FRAC form a fixed-point fractional number.
    Counting rate is system clock frequency divided by this number.
    Fractional division uses simple 1st-order sigma-delta.
  • Counter wrap value

Structs§

  • Register block

Type Aliases§

  • CC (rw) register accessor: Counter compare values
  • CSR (rw) register accessor: Control and status register
  • CTR (rw) register accessor: Direct access to the PWM counter
  • DIV (rw) register accessor: INT and FRAC form a fixed-point fractional number.
    Counting rate is system clock frequency divided by this number.
    Fractional division uses simple 1st-order sigma-delta.
  • TOP (rw) register accessor: Counter wrap value