\n

BPWM

Peripheral Memory Blocks

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

address_offset : 0x7C Bytes (0x0)
size : 0x4 byte (0x0)
mem_usage : registers
protection : not protected

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

Registers

BPWM_CLKPSC (CLKPSC)

BPWM_CMPDAT0 (CMPDAT0)

BPWM_CNT0 (CNT0)

BPWM_PERIOD1 (PERIOD1)

BPWM_CMPDAT1 (CMPDAT1)

BPWM_CNT1 (CNT1)

BPWM_CLKDIV (CLKDIV)

BPWM_INTEN (INTEN)

BPWM_INTSTS (INTSTS)

BPWM_POEN (POEN)

BPWM_CTL (CTL)

BPWM_PERIOD0 (PERIOD0)


BPWM_CLKPSC (CLKPSC)

Basic PWM Pre-scalar Register
address_offset : 0x0 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

BPWM_CLKPSC BPWM_CLKPSC 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 CLKPSC01 DTI01

CLKPSC01 : Clock Prescaler\nClock input is divided by (CLKPSC01 + 1) before it is fed to the corresponding PWM-timer\n
bits : 0 - 7 (8 bit)
access : read-write

DTI01 : Dead-zone Interval for Pair of Channel 0 and Channel 1\nThese 8-bit determine the Dead-zone length.\n
bits : 16 - 23 (8 bit)
access : read-write


BPWM_CMPDAT0 (CMPDAT0)

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

BPWM_CMPDAT0 BPWM_CMPDAT0 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 CMP

CMP : PWM Comparator Register\nCMP determines the PWM duty.\nNote: Any write to PERIOD will take effect in next PWM cycle.
bits : 0 - 15 (16 bit)
access : read-write


BPWM_CNT0 (CNT0)

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

BPWM_CNT0 BPWM_CNT0 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 CNT

CNT : PWM Data Register\nUser can monitor CNT to know the current value in 16-bit counter.
bits : 0 - 15 (16 bit)
access : read-only


BPWM_PERIOD1 (PERIOD1)

Basic PWM Period Counter Register 1
address_offset : 0x18 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

BPWM_PERIOD1 BPWM_PERIOD1 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

BPWM_CMPDAT1 (CMPDAT1)

Basic PWM Comparator Register 1
address_offset : 0x1C Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

BPWM_CMPDAT1 BPWM_CMPDAT1 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

BPWM_CNT1 (CNT1)

Basic PWM Data Register 1
address_offset : 0x20 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

BPWM_CNT1 BPWM_CNT1 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

BPWM_CLKDIV (CLKDIV)

Basic PWM Clock Source Divider Select Register
address_offset : 0x4 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

BPWM_CLKDIV BPWM_CLKDIV 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 CLKDIV0 CLKDIV1

CLKDIV0 : PWM Timer 0 Clock Source Divider Selection\nSelect clock source divider for PWM timer 0.\n(Table is the same as CLKDIV1)
bits : 0 - 2 (3 bit)
access : read-write

CLKDIV1 : PWM Timer 1 Clock Source Divider Selection\nSelect clock source divider for PWM timer 1.\n
bits : 4 - 6 (3 bit)
access : read-write

Enumeration:

#000 : 0

1/2

#001 : 1

1/4

#010 : 2

1/8

#011 : 3

1/16

#100 : 4

1

End of enumeration elements list.


BPWM_INTEN (INTEN)

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

BPWM_INTEN BPWM_INTEN 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 PIEN0 PIEN1 DIEN0 DIEN1 PINTTYPE

PIEN0 : BPWM Channel 0 Period Interrupt Enable Control\n
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

BPWM Channel 0 Period Interrupt Disabled

#1 : 1

BPWM Channel 0 Period Interrupt Enabled

End of enumeration elements list.

PIEN1 : BPWM Channel 1 Period Interrupt Enable Control\n
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

BPWM Channel 1 Period Interrupt Disabled

#1 : 1

BPWM Channel 1 Period Interrupt Enabled

End of enumeration elements list.

DIEN0 : BPWM Channel 0 Duty Interrupt Enable Control\n
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

BPWM Channel 0 Duty Interrupt Disabled

#1 : 1

BPWM Channel 0 Duty Interrupt Enabled

End of enumeration elements list.

DIEN1 : BPWM Channel 1 Duty Interrupt Enable Control\n
bits : 9 - 9 (1 bit)
access : read-write

Enumeration:

#0 : 0

BPWM Channel 1 Duty Interrupt Disabled

#1 : 1

BPWM Channel 1 Duty Interrupt Enabled

End of enumeration elements list.

PINTTYPE : BPWM Interrupt Period Type Selection\nNote: This bit is effective when BPWM in Center-aligned type only.
bits : 16 - 16 (1 bit)
access : read-write

Enumeration:

#0 : 0

PIFn will be set if BPWM counter underflow

#1 : 1

PIFn will be set if BPWM counter matches PERIODn register

End of enumeration elements list.


BPWM_INTSTS (INTSTS)

Basic PWM Interrupt Indication Register
address_offset : 0x44 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

BPWM_INTSTS BPWM_INTSTS 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 PIF0 PIF1 DIF0 DIF1

PIF0 : BPWM Channel 0 Period Interrupt Status\nThis bit is set by hardware when BPWM0 counter reaches the requirement of interrupt (depend on PINTTYPE bit of PWM_INTEN register), software can write 1 to clear this bit to 0.
bits : 0 - 0 (1 bit)
access : read-write

PIF1 : BPWM Channel 1 Period Interrupt Status\nThis bit is set by hardware when BPWM1 counter reaches the requirement of interrupt (depend on PINTTYPE bit of PWM_INTEN register), software can write 1 to clear this bit to 0.
bits : 1 - 1 (1 bit)
access : read-write

DIF0 : BPWM Channel 0 Duty Interrupt Flag\nFlag is set by hardware when channel 0 BPWM counter down count and reaches BPWM_CMPDAT 0, software can clear this bit by writing a one to it.\nNote: If CMP equal to PERIOD, this flag is not working in Edge-aligned type selection
bits : 8 - 8 (1 bit)
access : read-write

DIF1 : BPWM Channel 1 Duty Interrupt Flag\nFlag is set by hardware when channel 1 BPWM counter down count and reaches BPWM_CMPDAT 1, software can clear this bit by writing a one to it.\nNote: If CMP equal to PERIOD, this flag is not working in Edge-aligned type selection
bits : 9 - 9 (1 bit)
access : read-write


BPWM_POEN (POEN)

Basic PWM Output Enable
address_offset : 0x7C Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

BPWM_POEN BPWM_POEN 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 POEN0 POEN1

POEN0 : Channel 0 Output Enable Register\nNote: The corresponding GPIO pin must also be switched to BPWM function
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

BPWM channel 0 output to pin Disabled

#1 : 1

BPWM channel 0 output to pin Enabled

End of enumeration elements list.

POEN1 : Channel 1 Output Enable Register\nNote: The corresponding GPIO pin must also be switched to BPWM function
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

BPWM channel 1 output to pin Disabled

#1 : 1

BPWM channel 1 output to pin Enabled

End of enumeration elements list.


BPWM_CTL (CTL)

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

BPWM_CTL BPWM_CTL 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 CNTEN0 PINV0 CMPINV0 CNTMODE0 DTCNT01 CNTEN1 PINV1 CMPINV1 CNTMODE1 CNTTYPE01

CNTEN0 : PWM-timer 0 Enable Control\n
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

The corresponding PWM-Timer stops running

#1 : 1

The corresponding PWM-Timer starts running

End of enumeration elements list.

PINV0 : PWM-timer 0 Output Polar Inverse Enable Control\n
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

PWM0 output polar inverse Disabled

#1 : 1

PWM0 output polar inverse Enabled

End of enumeration elements list.

CMPINV0 : PWM-timer 0 Output Inverter Enable Control\n
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

Inverter Disabled

#1 : 1

Inverter Enabled

End of enumeration elements list.

CNTMODE0 : PWM-timer 0 Auto-reload/One-shot Mode\nNote: If there is a transition at this bit, it will cause BPWM_PERIOD0 and BPWM_CMPDAT0 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.

DTCNT01 : Dead-zone 0 Generator Enable Control\nNote: When Dead-zone generator is enabled, the pair of PWM0 and PWM1 becomes a complementary pair.
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

Dead-zone 0 Generator Disabled

#1 : 1

Dead-zone 0 Generator Enabled

End of enumeration elements list.

CNTEN1 : PWM-timer 1 Enable Control\n
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

Corresponding PWM-Timer Stopped

#1 : 1

Corresponding PWM-Timer Start Running

End of enumeration elements list.

PINV1 : PWM-timer 1 Output Polar Inverse Enable Control\n
bits : 9 - 9 (1 bit)
access : read-write

Enumeration:

#0 : 0

PWM1 output polar inverse Disabled

#1 : 1

PWM1 output polar inverse Enabled

End of enumeration elements list.

CMPINV1 : PWM-timer 1 Output Inverter Enable Control\n
bits : 10 - 10 (1 bit)
access : read-write

Enumeration:

#0 : 0

Inverter Disabled

#1 : 1

Inverter Enabled

End of enumeration elements list.

CNTMODE1 : PWM-timer 1 Auto-reload/One-shot Mode\nNote: If there is a transition at this bit, it will cause BPWM_PERIOD1 and BPWM_CMPDAT1 be cleared.
bits : 11 - 11 (1 bit)
access : read-write

Enumeration:

#0 : 0

One-shot mode

#1 : 1

Auto-reload mode

End of enumeration elements list.

CNTTYPE01 : PWM01 Aligned Type Selection\n
bits : 30 - 30 (1 bit)
access : read-write

Enumeration:

#0 : 0

Edge-aligned type

#1 : 1

Center-aligned type

End of enumeration elements list.


BPWM_PERIOD0 (PERIOD0)

Basic PWM Period Counter Register 0
address_offset : 0xC Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

BPWM_PERIOD0 BPWM_PERIOD0 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 PERIOD

PERIOD : Basic PWM Period Counter Register\nPERIOD data determines the PWM period.\nFor Edge-aligned type:\nNote: Any write to PERIOD will take effect in next PWM cycle.\nNote: When PWM operating at Center-aligned type, PERIOD value should be set between 0x0000 to 0xFFFE. If PERIOD equal to 0xFFFF, the PWM will work unpredictable.\nNote: When PERIOD value is set to 0, PWM output is always high.
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.