\n
address_offset : 0x0 Bytes (0x0)
size : 0x24 byte (0x0)
mem_usage : registers
protection : not protected
address_offset : 0x50 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
address_offset : 0x58 Bytes (0x0)
size : 0x10 byte (0x0)
mem_usage : registers
protection : not protected
address_offset : 0x78 Bytes (0x0)
size : 0x8 byte (0x0)
mem_usage : registers
protection : not protected
Basic PWM Pre-scalar Register
address_offset : 0x0 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CP01 : Clock Prescaler\nClock input is divided by (CP01 + 1) before it is fed to the corresponding PWM-timer\n
bits : 0 - 7 (8 bit)
access : read-write
DZI01 : 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
Basic PWM Comparator Register 0
address_offset : 0x10 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
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
Basic PWM Data Register 0
address_offset : 0x14 Bytes (0x0)
access : read-only
reset_value : 0x0
reset_Mask : 0x0
PDR : PWM Data Register\nUser can monitor PDR to know the current value in 16-bit counter.
bits : 0 - 15 (16 bit)
access : read-only
address_offset : 0x18 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
address_offset : 0x1C Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
address_offset : 0x20 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
Basic PWM Clock Source Divider Select Register
address_offset : 0x4 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
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.
Basic PWM Interrupt Enable Register
address_offset : 0x40 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
BPWMPIE0 : BPWM Channel 0 Period Interrupt Enable Bit \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.
BPWMPIE1 : BPWM Channel 1 Period Interrupt Enable Bit\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.
BPWMDIE0 : BPWM Channel 0 Duty Interrupt Enable Bit\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.
BPWMDIE1 : BPWM Channel 1 Duty Interrupt Enable Bit\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.
INTTYPE : BPWM Interrupt Period Type Selection Bit\nNote: This bit is effective when BPWM in Center-aligned type only.
bits : 16 - 16 (1 bit)
access : read-write
Enumeration:
#0 : 0
BPWMIFn will be set if BPWM counter underflow
#1 : 1
BPWMIFn will be set if BPWM counter matches PERIODn register
End of enumeration elements list.
Basic PWM Interrupt Indication Register
address_offset : 0x44 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
BPWMPIF0 : BPWM Channel 0 Period Interrupt Status\nThis bit is set by hardware when BPWM0 counter reaches the requirement of interrupt (depend on INTTYPE bit of PWM_INTEN register), software can write 1 to clear this bit to 0.
bits : 0 - 0 (1 bit)
access : read-write
BPWMPIF1 : BPWM Channel 1 Period Interrupt Status\nThis bit is set by hardware when BPWM1 counter reaches the requirement of interrupt (depend on INTTYPE bit of PWM_INTEN register), software can write 1 to clear this bit to 0.
bits : 1 - 1 (1 bit)
access : read-write
BPWMDIF0 : BPWM Channel 0 Duty Interrupt Flag\nFlag is set by hardware when channel 0 BPWM counter down count and reaches CMP0, 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
BPWMDIF1 : BPWM Channel 1 Duty Interrupt Flag\nFlag is set by hardware when channel 1 BPWM counter down count and reaches CMP1, 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
Basic PWM Capture Control Register
address_offset : 0x50 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
INV0 : Channel 0 Inverter Enable Bit\n
bits : 0 - 0 (1 bit)
access : read-write
Enumeration:
#0 : 0
Inverter Disabled
#1 : 1
Inverter Enabled. Reverse the input signal from GPIO before fed to Capture timer
End of enumeration elements list.
CRL_IE0 : Channel 0 Rising Latch Interrupt Enable Bit\nWhen Enabled, if Capture detects BPWM channel 0 has rising transition, Capture will issue an Interrupt.
bits : 1 - 1 (1 bit)
access : read-write
Enumeration:
#0 : 0
Rising latch interrupt Disabled
#1 : 1
Rising latch interrupt Enabled
End of enumeration elements list.
CFL_IE0 : Channel 0 Falling Latch Interrupt Enable BIt\nWhen Enabled, if Capture detects BPWM channel 0 has falling transition, Capture will issue an Interrupt.
bits : 2 - 2 (1 bit)
access : read-write
Enumeration:
#0 : 0
Falling latch interrupt Disabled
#1 : 1
Falling latch interrupt Enabled
End of enumeration elements list.
CAPCH0EN : Channel 0 Capture Function Enable Bit\nWhen Enabled, Capture latched the BPWM-counter value and saved to CRLR (Rising latch) and CFLR (Falling latch).\nWhen Disabled, Capture does not update CRLR and CFLR, and disable BPWM channel 0 Interrupt.
bits : 3 - 3 (1 bit)
access : read-write
Enumeration:
#0 : 0
Capture function on BPWM channel 0 Disabled
#1 : 1
Capture function on BPWM channel 0 Enabled
End of enumeration elements list.
CAPIF0 : Channel 0 Capture Interrupt Indication Flag\nWrite 1 to clear this bit to 0.
bits : 4 - 4 (1 bit)
access : read-write
CRLRI0 : BPWM_CAPDRL0Latched Indicator Bit\nWhen BPWM input channel 0 has a rising transition, BPWM_CAPDRL0 was latched with the value of BPWM down-counter and this bit is set by hardware.\nSoftware can write 1 to clear this bit to 0.
bits : 6 - 6 (1 bit)
access : read-write
CFLRI0 : BPWM_CAPDRL0 Latched Indicator Bit\nWhen BPWM input channel 0 has a falling transition, BPWM_CAPDRL0 was latched with the value of BPWM down-counter and this bit is set by hardware.\nSoftware can write 1 to clear this bit to0.
bits : 7 - 7 (1 bit)
access : read-write
INV1 : Channel 1 Inverter Enable Bit\n
bits : 16 - 16 (1 bit)
access : read-write
Enumeration:
#0 : 0
Inverter Disabled
#1 : 1
Inverter Enabled. Reverse the input signal from GPIO before fed to Capture timer
End of enumeration elements list.
CRL_IE1 : Channel 1 Rising Latch Interrupt Enable Bit\nWhen Enabled, if Capture detects BPWM channel 1 has rising transition, Capture will issue an Interrupt.
bits : 17 - 17 (1 bit)
access : read-write
Enumeration:
#0 : 0
Rising latch interrupt Disabled
#1 : 1
Rising latch interrupt Enabled
End of enumeration elements list.
CFL_IE1 : Channel 1 Falling Latch Interrupt Enable\nWhen Enabled, if Capture detects BPWM channel 1 has falling transition, Capture will issue an Interrupt.
bits : 18 - 18 (1 bit)
access : read-write
Enumeration:
#0 : 0
Falling latch interrupt Disabled
#1 : 1
Falling latch interrupt Enabled
End of enumeration elements list.
CAPCH1EN : Channel 1 Capture Function Enable Bit\nWhen Enabled, Capture latched the BPWM-counter and saved to CRLR (Rising latch) and CFLR (Falling latch).\nWhen Disabled, Capture does not update CRLR and CFLR, and disable PWM channel 1 Interrupt.
bits : 19 - 19 (1 bit)
access : read-write
Enumeration:
#0 : 0
Capture function on BPWM channel 1 Disabled
#1 : 1
Capture function on BPWM channel 1 Enabled
End of enumeration elements list.
CAPIF1 : Channel 1 Capture Interrupt Indication Flag\nWrite 1 to clear this bit to 0.
bits : 20 - 20 (1 bit)
access : read-write
CRLRI1 : CRLR1 Latched Indicator Bit\nWhen BPWM input channel 1 has a rising transition, CRLR1 was latched with the value of BPWM down-counter and this bit is set by hardware.\nSoftware can write 1 to clear this bit to0.
bits : 22 - 22 (1 bit)
access : read-write
CFLRI1 : CFLR1 Latched Indicator Bit\nWhen BPWM input channel 1 has a falling transition, CFLR1 was latched with the value of BPWM down-counter and this bit is set by hardware.\nSoftware can write 1 to clear this bit to 0
bits : 23 - 23 (1 bit)
access : read-write
Basic PWM Capture Rising Latch Register (Channel 0)
address_offset : 0x58 Bytes (0x0)
access : read-only
reset_value : 0x0
reset_Mask : 0x0
CRLR : Capture Rising Latch Register\nLatch the BPWM counter when Channel 0/1 has rising transition.
bits : 0 - 15 (16 bit)
access : read-only
Basic PWM Capture Falling Latch Register (Channel 0)
address_offset : 0x5C Bytes (0x0)
access : read-only
reset_value : 0x0
reset_Mask : 0x0
CFLR : Capture Falling Latch Register\nLatch the BPWM counter when Channel 0/1 has Falling transition.
bits : 0 - 15 (16 bit)
access : read-only
address_offset : 0x60 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
address_offset : 0x64 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
Basic PWM Capture Input Enable Register
address_offset : 0x78 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CINEN0 : Channel 0 Capture Input Enable Bit\n
bits : 0 - 0 (1 bit)
access : read-write
Enumeration:
#0 : 0
BPWM Channel 0 capture input path Disabled. The input of BPWM channel 0 capture function is always regarded as 0
#1 : 1
BPWM Channel 0 capture input path Enabled. The input of BPWM channel 0 capture function comes from correlative multifunction pin if GPIO multi-function is set as PWM20
End of enumeration elements list.
CINEN1 : Channel 1 Capture Input Enable Bit\n
bits : 1 - 1 (1 bit)
access : read-write
Enumeration:
#0 : 0
BPWM Channel 1 capture input path Disabled. The input of BPWM channel 1 capture function is always regarded as 0
#1 : 1
BPWM Channel 1 capture input path Enabled. The input of BPWM channel 1 capture function comes from correlative multifunction pin if GPIO multi-function is set as PWM21
End of enumeration elements list.
Basic PWM Output Enable
address_offset : 0x7C Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
POE0 : 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.
POE1 : 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.
Basic PWM Control Register
address_offset : 0x8 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CH0EN : PWM-timer 0 Enable Bit\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.
CH0PINV : PWM-timer 0 Output Polar Inverse Enable Bit\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.
CH0INV : PWM-timer 0 Output Inverter Enable Bit\n
bits : 2 - 2 (1 bit)
access : read-write
Enumeration:
#0 : 0
Inverter Disabled
#1 : 1
Inverter Enabled
End of enumeration elements list.
CH0MOD : PWM-timer 0 Auto-reload/One-shot Mode\nNote: If there is a transition at this bit, it will cause PWM_PERIOD0 and CMP0 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 Bit\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 Generato Disabled
#1 : 1
Dead-zone 0 Generato Enabled
End of enumeration elements list.
CH1EN : PWM-timer 1 Enable Bit\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.
CH1PINV : PWM-timer 1 Output Polar Inverse Enable Bit\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.
CH1INV : PWM-timer 1 Output Inverter Enable\n
bits : 10 - 10 (1 bit)
access : read-write
Enumeration:
#0 : 0
Inverter Disabled
#1 : 1
Inverter Enabled
End of enumeration elements list.
CH1MOD : PWM-timer 1 Auto-reload/One-shot Mode\nNote: If there is a transition at this bit, it will cause PERIOD1 and CMP1 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.
PWM01TYPE : PWM01 Aligned Type Selection Bit \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.
Basic PWM Period Counter Register 0
address_offset : 0xC Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
PERIOD : Basic PWM Period Counter Register\nPERIOD data determines the PWM period.\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 Embeetle, an IDE designed from scratch for embedded software developers.