| Signal | Symbol | PIO controller | Description |
|---|---|---|---|
| PWM3 | (AT91C_PB30_PWM3 ) | PIOB Periph: B Bit: 30 | PWM Channel 3 |
| PWM3 | (AT91C_PB22_PWM3 ) | PIOB Periph: A Bit: 22 | PWM Channel 3 |
| Function | Description |
|---|---|
| AT91F_PWMC_CH3_CfgPIO | Configure PIO controllers to drive PWMC_CH3 signals |
| Signal | Symbol | PIO controller | Description |
|---|---|---|---|
| PWM2 | (AT91C_PB21_PWM2 ) | PIOB Periph: A Bit: 21 | PWM Channel 2 |
| PWM2 | (AT91C_PB29_PWM2 ) | PIOB Periph: B Bit: 29 | PWM Channel 2 |
| Function | Description |
|---|---|
| AT91F_PWMC_CH2_CfgPIO | Configure PIO controllers to drive PWMC_CH2 signals |
| Signal | Symbol | PIO controller | Description |
|---|---|---|---|
| PWM1 | (AT91C_PB28_PWM1 ) | PIOB Periph: B Bit: 28 | PWM Channel 1 |
| PWM1 | (AT91C_PB20_PWM1 ) | PIOB Periph: A Bit: 20 | PWM Channel 1 |
| Function | Description |
|---|---|
| AT91F_PWMC_CH1_CfgPIO | Configure PIO controllers to drive PWMC_CH1 signals |
| Signal | Symbol | PIO controller | Description |
|---|---|---|---|
| PWM0 | (AT91C_PB27_PWM0 ) | PIOB Periph: B Bit: 27 | PWM Channel 0 |
| PWM0 | (AT91C_PB19_PWM0 ) | PIOB Periph: A Bit: 19 | PWM Channel 0 |
| Function | Description |
|---|---|
| AT91F_PWMC_CH0_CfgPIO | Configure PIO controllers to drive PWMC_CH0 signals |
| Offset | Field | Description |
|---|---|---|
| 0x0 | PWMC_CMR | Channel Mode Register |
| 0x4 | PWMC_CDTYR | Channel Duty Cycle Register |
| 0x8 | PWMC_CPRDR | Channel Period Register |
| 0xC | PWMC_CCNTR | Channel Counter Register |
| 0x10 | PWMC_CUPDR | Channel Update Register |
| 0x14 | PWMC_Reserved[3] (PWMC_RESERVED) | Reserved |
| Offset | Name | Description | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 3..0 | PWMC_CPRE AT91C_PWMC_CPRE | Channel Pre-scaler : PWMC_CLKx
| ||||||||||||||||||||||||||||||||||||||||||
| 8 | PWMC_CALG AT91C_PWMC_CALG | Channel Alignment 0: The period is left aligned. 1: The period is center aligned. | ||||||||||||||||||||||||||||||||||||||||||
| 9 | PWMC_CPOL AT91C_PWMC_CPOL | Channel Polarity 0: The period starts by a low level. 1: The period starts by a high level. | ||||||||||||||||||||||||||||||||||||||||||
| 10 | PWMC_CPD AT91C_PWMC_CPD | Channel Update Period 0: Writting to the PWMC_CUPDx will notify the duty cycle at the next period start event. 1: Writting to the PWMC_CUPDx will notify the period at the next period start event. |
| Offset | Name | Description |
|---|---|---|
| 31..0 | PWMC_CDTY AT91C_PWMC_CDTY | Channel Duty Cycle Defines the waveform duty cycle. THis value must be defined between 0 and CPRD(PWMC_CPRx). |
| Offset | Name | Description |
|---|---|---|
| 31..0 | PWMC_CPRD AT91C_PWMC_CPRD | Channel Period If the waveform is left aligned, its period is CPRD*TMCK. If the waveform is center aligned, its period is 2*CPRD*TMCK. |
| Offset | Name | Description |
|---|---|---|
| 31..0 | PWMC_CCNT AT91C_PWMC_CCNT | Channel Counter Internal Counter Value. |
| Offset | Name | Description |
|---|---|---|
| 31..0 | PWMC_CUPD AT91C_PWMC_CUPD | Channel Update This register is a double buffer for the period or the duty cycle (CUP in PWMC_CMRx). It prevents from unexpected waveform when modifying waveform period or duty cycle. |