\n

PWMA

Peripheral Memory Blocks

address_offset : 0x0 Bytes (0x0)
size : 0x24 byte (0x0)
mem_usage : registers
protection :

address_offset : 0x40 Bytes (0x0)
size : 0x8 byte (0x0)
mem_usage : registers
protection :

address_offset : 0x50 Bytes (0x0)
size : 0x4 byte (0x0)
mem_usage : registers
protection :

address_offset : 0x58 Bytes (0x0)
size : 0x10 byte (0x0)
mem_usage : registers
protection :

address_offset : 0x78 Bytes (0x0)
size : 0x8 byte (0x0)
mem_usage : registers
protection :

Registers

PPR

CMR0

PDR0

CNR1

CMR1

PDR1

CSR

PIER

PIFR

CCR0

CRLR0

CFLR0

CRLR1

CFLR1

CAPENR

POE

PCR

CNR0


PPR

PWM Prescaler Register
address_offset : 0x0 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

PPR PPR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CP01 DZI01

CP01 : Clock Pre-scaler Clock input is divided by (CP01 + 1). If CP01 = 0, then the pre-scaler output clock will be stopped. This implies PWM counter 0 and 1 will also be stopped.
bits : 0 - 7 (8 bit)
access : read-write

DZI01 : Dead Zone Interval Register For Pair Of PWM0 And PWM1 These 8 bits determine dead zone length. The unit time of dead zone length is that from clock selector 0.
bits : 16 - 23 (8 bit)
access : read-write


CMR0

PWM Comparator Register 0
address_offset : 0x10 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CMR0 CMR0 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CMR

CMR : PWM Comparator Register CMR determines the PWM duty cycle. PWM frequency = PWM01_CLK/(prescale+1)*(clock divider)/(CNR+1) Duty Cycle = (CMR+1)/(CNR+1). CMR > = CNR: PWM output is always high. CMR < CNR: PWM low width = (CNR-CMR) unit PWM high width = (CMR+1) unit. CMR = 0: PWM low width = (CNR) unit PWM high width = 1 unit (Unit = one PWM clock cycle) Note: Any write to CMR will take effect in next PWM cycle.
bits : 0 - 15 (16 bit)
access : read-write


PDR0

PWM Data Register 0
address_offset : 0x14 Bytes (0x0)
size : -1 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

PDR0 PDR0 read-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 PDR

PDR : PWM Data Register Reports the current value of the 16-bit down counter.
bits : 0 - 15 (16 bit)
access : read-only


CNR1


address_offset : 0x18 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CNR1 CNR1 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

CMR1


address_offset : 0x1C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CMR1 CMR1 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

PDR1


address_offset : 0x20 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

PDR1 PDR1 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

CSR

PWM Clock Select Register
address_offset : 0x4 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CSR CSR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CSR0 CSR1

CSR0 : Timer 0 Clock Source Selection (Table is as CSR1)
bits : 0 - 2 (3 bit)
access : read-write

CSR1 : Timer 1 Clock Source Selection Value : Input clock divided by 0 : 2 1 : 4 2 : 8 3 : 16 4 : 1
bits : 4 - 6 (3 bit)
access : read-write


PIER

PWM Interrupt Enable Register
address_offset : 0x40 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

PIER PIER read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 PWMIE0 PWMIE1

PWMIE0 : PWM Timer 0 Interrupt Enable
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

PWMIE1 : PWM Timer 1 Interrupt Enable
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.


PIFR

PWM Interrupt Flag Register
address_offset : 0x44 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

PIFR PIFR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 PWMIF0 PWMIF1

PWMIF0 : PWM Timer 0 Interrupt Flag Flag is set by hardware when PWM0 down counter reaches zero, software can clear this bit by writing '1' to it.
bits : 0 - 0 (1 bit)
access : read-write

PWMIF1 : PWM Timer 1 Interrupt Flag Flag is set by hardware when PWM1 down counter reaches zero, software can clear this bit by writing '1' to it.
bits : 1 - 1 (1 bit)
access : read-write


CCR0

Capture Control Register 0
address_offset : 0x50 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CCR0 CCR0 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 INV0 CRL_IE0 CFL_IE0 CAPCH0EN CAPIF0 CRLRI0 CFLRI0 INV1 CRL_IE1 CFL_IE1 CAPCH1EN CAPIF1 CRLRI1 CFLRI1

INV0 : Channel 0 Inverter ON/OFF
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Inverter OFF

#1 : 1

Inverter ON. Reverse the input signal from GPIO before Capture timer

End of enumeration elements list.

CRL_IE0 : Channel 0 Rising Latch Interrupt Enable ON/OFF When enabled, capture block generates an interrupt on rising edge of input.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable rising latch interrupt

#1 : 1

Enable rising latch interrupt

End of enumeration elements list.

CFL_IE0 : Channel 0 Falling Latch Interrupt Enable ON/OFF When enabled, capture block generates an interrupt on falling edge of input.
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable falling latch interrupt

#1 : 1

Enable falling latch interrupt

End of enumeration elements list.

CAPCH0EN : Capture Channel 0 transition Enable/Disable When enabled, Capture function latches the PMW-counter to CRLR (Rising latch) and CFLR (Falling latch) registers on input edge transition. When disabled, Capture function is inactive as is interrupt.
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable capture function on channel 0

#1 : 1

Enable capture function on channel 0

End of enumeration elements list.

CAPIF0 : Capture0 Interrupt Indication Flag If channel 0 rising latch interrupt is enabled (CRL_IE0 = 1), a rising transition at input channel 0 will result in CAPIF0 to high Similarly, a falling transition will cause CAPIF0 to be set high if channel 0 falling latch interrupt is enabled (CFL_IE0 = 1). This flag is cleared by software writing a '1' to it.
bits : 4 - 4 (1 bit)
access : read-write

CRLRI0 : CRLR0 Latched Indicator Bit When input channel 0 has a rising transition, CRLR0 was latched with the value of PWM down-counter and this bit is set by hardware, software can clear this bit by writing a zero to it.
bits : 6 - 6 (1 bit)
access : read-write

CFLRI0 : CFLR0 Latched Indicator Bit When input channel 0 has a falling transition, CFLR0 was latched with the value of PWM down-counter and this bit is set by hardware, software can clear this bit by writing a zero to it.
bits : 7 - 7 (1 bit)
access : read-write

INV1 : Channel 1 Inverter ON/OFF
bits : 16 - 16 (1 bit)
access : read-write

Enumeration:

#0 : 0

Inverter OFF

#1 : 1

Inverter ON. Reverse the input signal from GPIO before Capture timer

End of enumeration elements list.

CRL_IE1 : Channel 1 Rising Latch Interrupt Enable When enabled, capture block generates an interrupt on rising edge of input.
bits : 17 - 17 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable rising edge latch interrupt

#1 : 1

Enable rising edge latch interrupt

End of enumeration elements list.

CFL_IE1 : Channel 1 Falling Latch Interrupt Enable When enabled, capture block generates an interrupt on falling edge of input.
bits : 18 - 18 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable falling edge latch interrupt

#1 : 1

Enable falling edge latch interrupt

End of enumeration elements list.

CAPCH1EN : Capture Channel 1 Transition Enable/Disable When enabled, Capture function latches the PMW-counter to CRLR (Rising latch) and CFLR (Falling latch) registers on input edge transition. When disabled, Capture function is inactive as is interrupt.
bits : 19 - 19 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable capture function on channel 1

#1 : 1

Enable capture function on channel 1

End of enumeration elements list.

CAPIF1 : Capture1 Interrupt Indication Flag If channel 1 rising latch interrupt is enabled (CRL_IE1 = 1), a rising transition at input channel 1 will result in CAPIF1 to high Similarly, a falling transition will cause CAPIF1 to be set high if channel 1 falling latch interrupt is enabled (CFL_IE1 = 1). This flag is cleared by software writing a '1' to it.
bits : 20 - 20 (1 bit)
access : read-write

CRLRI1 : CRLR1 Latched Indicator Bit When input channel 1 has a rising transition, CRLR1 was latched with the value of PWM down-counter and this bit is set by hardware, software can clear this bit by writing a zero to it.
bits : 22 - 22 (1 bit)
access : read-write

CFLRI1 : CFLR1 Latched Indicator Bit When input channel 1 has a falling transition, CFLR1 was latched with the value of PWM down-counter and this bit is set by hardware, software can clear this bit by writing a zero to it.
bits : 23 - 23 (1 bit)
access : read-write


CRLR0

Capture Rising Latch Register (Channel 0)
address_offset : 0x58 Bytes (0x0)
size : -1 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

CRLR0 CRLR0 read-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CRLR

CRLR : Capture Rising Latch Register In Capture mode, this register is latched with the value of the PWM counter on a rising edge of the input signal.
bits : 0 - 15 (16 bit)
access : read-only


CFLR0

Capture Falling Latch Register (Channel 0)
address_offset : 0x5C Bytes (0x0)
size : -1 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

CFLR0 CFLR0 read-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CFLR

CFLR : Capture Falling Latch Register In Capture mode, this register is latched with the value of the PWM counter on a falling edge of the input signal.
bits : 0 - 15 (16 bit)
access : read-only


CRLR1


address_offset : 0x60 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CRLR1 CRLR1 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

CFLR1


address_offset : 0x64 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CFLR1 CFLR1 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

CAPENR

Capture Input Enable Register
address_offset : 0x78 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CAPENR CAPENR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CAPENR

CAPENR : Capture Input Enable Register 0 : OFF (GPA[13:12] pin input disconnected from Capture block) 1 : ON (GPA[13:12] pin, if in PWM alternative function, will be configured as an input and fed to capture function) CAPENR[1:0] Bit 10 Bit x1 : Capture channel 0 is from GPA [12] Bit 1x : Capture channel 1 is from GPA [13]
bits : 0 - 3 (4 bit)
access : read-write


POE

PWM Output Enable Register for PWM0~PWM1
address_offset : 0x7C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

POE POE read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 PWM0 PWM1

PWM0 : PWM0 Output Enable Register Note: The corresponding GPIO pin also must be switched to PWM function (refer to GPA_ALT Table 57)
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable PWM0 output to pin

#1 : 1

Enable PWM0 output to pin

End of enumeration elements list.

PWM1 : PWM1 Output Enable Register Note: The corresponding GPIO pin also must be switched to PWM function (refer to GPA_ALT Table 57)
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable PWM1 output to pin

#1 : 1

Enable PWM1 output to pin

End of enumeration elements list.


PCR

PWM Control Register
address_offset : 0x8 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

PCR PCR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CH0EN CH0INV CH0MOD DZEN01 CH1EN CH1INV CH1MOD

CH0EN : PWM-Timer 0 Enable/Disable Start Run
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Stop PWM-Timer 0 Running

#1 : 1

Enable PWM-Timer 0 Start/Run

End of enumeration elements list.

CH0INV : PWM-Timer 0 Output Inverter ON/OFF
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

Inverter OFF

#1 : 1

Inverter ON

End of enumeration elements list.

CH0MOD : PWM-Timer 0 Auto-reload/One-Shot Mode Note: A rising transition of this bit will cause CNR0 and CMR0 to be cleared.
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

One-Shot Mode

#1 : 1

Auto-reload Mode

End of enumeration elements list.

DZEN01 : Dead-Zone 0 Generator Enable/Disable Note: When Dead-Zone Generator is enabled, the pair of PWM0 and PWM1 become a complementary pair.
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

CH1EN : PWM-Timer 1 Enable/Disable Start Run
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

Stop PWM-Timer 1

#1 : 1

Enable PWM-Timer 1 Start/Run

End of enumeration elements list.

CH1INV : PWM-Timer 1 Output Inverter ON/OFF
bits : 10 - 10 (1 bit)
access : read-write

Enumeration:

#0 : 0

Inverter OFF

#1 : 1

Inverter ON

End of enumeration elements list.

CH1MOD : PWM-Timer 1 Auto-reload/One-Shot Mode Note: A rising transition of this bit will cause CNR1 and CMR1 to be cleared.
bits : 11 - 11 (1 bit)
access : read-write

Enumeration:

#0 : 0

One-Shot Mode

#1 : 1

Auto-load Mode

End of enumeration elements list.


CNR0

PWM Counter Register 0
address_offset : 0xC Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CNR0 CNR0 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CNR

CNR : PWM Counter/Timer Reload Value CNR determines the PWM period. PWM frequency = PWM01_CLK/(prescale+1)*(clock divider)/(CNR+1) Duty ratio = (CMR+1)/(CNR+1). CMR > = CNR: PWM output is always high. CMR < CNR: PWM low width = (CNR-CMR) unit PWM high width = (CMR+1) unit. CMR = 0: PWM low width = (CNR) unit PWM high width = 1 unit (Unit = one PWM clock cycle) Note: Any write to CNR will take effect in next PWM cycle.
bits : 0 - 15 (16 bit)
access : read-write



Is something missing? Is something wrong? can you help correct it ? Please contact us at info@chipselect.org !

This website is sponsored by EmbeetleEmbeetle, an IDE designed from scratch for embedded software developers.