UG-498
ADuCM320 Hardware Reference Manual
Rev. C | Page 180 of 196
REGISTER SUMMARY: PWM
Table 268. PWM Register Summary
Address
Name
Description
Reset
RW
0x40024000
PWMCON0
PWM control register
0x0012
RW
0x40024004
PWMCON1
ADC conversion start and trip control register
0x0000
RW
0x40024008
PWMICLR
Hardware trip configuration register
0x0000
RW1C
0x40024010
PWM0COM0
Compare Register 0 for PWM0 and PWM1
0x0000
RW
0x40024014
PWM0COM1
Compare Register 1 for PWM0 and PWM1
0x0000
RW
0x40024018
PWM0COM2
Compare Register 2 for PWM0 and PWM1
0x0000
RW
0x4002401C
PWM0LEN
Period value register for PWM0 and PWM1
0x0000
RW
0x40024020
PWM1COM0
Compare Register 0 for PWM2 and PWM3
0x0000
RW
0x40024024
PWM1COM1
Compare Register 1 for PWM2 and PWM3
0x0000
RW
0x40024028
PWM1COM2
Compare Register 2 for PWM2 and PWM3
0x0000
RW
0x4002402C
PWM1LEN
Period value register for PWM2 and PWM3
0x0000
RW
0x40024030
PWM2COM0
Compare Register 0 for PWM4 and PWM5
0x0000
RW
0x40024034
PWM2COM1
Compare Register 1 for PWM4 and PWM5
0x0000
RW
0x40024038
PWM2COM2
Compare Register 2 for PWM4 and PWM5
0x0000
RW
0x4002403C
PWM2LEN
Period value register for PWM4 and PWM5
0x0000
RW
0x40024040
PWM3COM0
Compare Register 0 for PWM6 and PWM7
0x0000
RW
0x40024044
PWM3COM1
Compare Register 1 for PWM6 and PWM7
0x0000
RW
0x40024048
PWM3COM2
Compare Register 2 for PWM6 and PWM7
0x0000
RW
0x4002404C
PWM3LEN
Period value register for PWM6 and PWM7
0x0000
RW
REGISTER DETAILS: PWM
PWM Control Register
Address: 0x40024000, Reset: 0x0012, Name: PWMCON0
Table 269. Bit Descriptions for PWMCON0
Bits
Bit Name
Description
Reset
Access
15
SYNC
Set to enable PWM synchronization from the SYNC pin of the PWM.
0x0
RW
0: Ignore transition from the SYNC pin
1: All PWM counters are reset on the next clock cycle after detection of a
falling edge from SYNC pin
14
PWM7INV
Set to invert PWM7 output.
0x0
RW
13
PWM5INV
Set to invert PWM5 output.
0x0
RW
12
PWM3INV
Set to invert PWM3 output.
0x0
RW
11
PWM1INV
Set to invert PWM1 output.
0x0
RW
10
PWMIEN
Set to enable interrupts for PWM.
0x0
RW
9
ENA
When HOFF=0 and HMODE=1, this serves as enable for Pair 0 and Pair 1.
0x0
RW
0: disable Pair 0 and Pair 1
1: enable Pair 0 and Pair 1
[8:6]
PWMCMP
PWM clock prescaler. Sets HCLK divider.
0x0
RW
000: HCLK/2
001: HCLK/4
010: HCLK/8
011: HCLK/16
100: HCLK/32
101: HCLK/64
110: HCLK/128
111: HCLK/256
5
POINV
Set to invert PWM outputs for Pair 0 and Pair 1 when PWM is in H-bridge mode. 0x0
RW
4
HOFF
Set to turn off the high-side for Pair 0 and Pair 1 when PWM is in H-bridge
mode.
0x1
RW