The 55 registers of PWM (PWM), from 0xBF82A000, with their reset value and every field. The PIC32MK0128MCA028 has 767 registers in 65 peripherals, one page each.
Most PIC32 SFRs have three more registers right after them: CLR at +4, SET at +8 and INV at +C (T1CONCLR, T1CONSET, T1CONINV), which clear, set or flip just the bits written as 1, in one write.
PWM PWM
PTCONPWM Primary Time Base Control Register
Address
0xBF82A000
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
Field
Bits
What it does
PTEN
15
PWM Module Enable bit
0 PWM module is disabled
1 PWM module is enabled
PTSIDL
13
PWM Time Base Stop in Idle Mode bit
0 PWM time base runs in CPU Idle mode
1 PWM time base halts in CPU Idle mode
SESTAT
12
Special Event Interrupt Status bit
0 Special Event Interrupt is not pending
1 Special Event Interrupt is pending
SEIEN
11
Special Event Interrupt Enable bit
0 Special Event Interrupt is disabled
1 Special Event Interrupt is enabled
PWMRDY
10
PWM Module Status bit
0 PWM module is not ready
1 PWM module is ready and operation has begun
PCLKDIV
6:4
Primary PWM Input Clock Prescaler bits
0 Divide by 1
1 Divide by 2
2 Divide by 4
3 Divide by 8
4 Divide by 16
5 Divide by 32
6 Divide by 64
7 Divide by 128
SEVTPS
3:0
PWM Special Event Trigger Output Postscaler Select bits
0 1:1 postscaler generates Special Event trigger at every compare match event
1 1:2 postscaler generates Special Event trigger at every second compare match event
2 1:3 postscaler generates Special Event trigger at every 3rd compare match event
3 1:4 postscaler generates Special Event trigger at every 4th compare match event
4 1:5 postscaler generates Special Event trigger at every 5th compare match event
5 1:6 postscaler generates Special Event trigger at every 6th compare match event
6 1:7 postscaler generates Special Event trigger at every 7th compare match event
7 1:8 postscaler generates Special Event trigger at every 8th compare match event
8 1:9 postscaler generates Special Event trigger at every 9th compare match event
9 1:10 postscaler generates Special Event trigger at every 10th compare match event
10 1:11 postscaler generates Special Event trigger at every 11th compare match event
11 1:12 postscaler generates Special Event trigger at every 12th compare match event
12 1:13 postscaler generates Special Event trigger at every 13th compare match event
13 1:14 postscaler generates Special Event trigger at every 14th compare match event
14 1:15 postscaler generates Special Event trigger at every 15th compare match event
15 1:16 postscaler generates Special Event trigger at every 16th compare match event
PTPERPrimary Master Time Base Period Register
Address
0xBF82A010
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
Field
Bits
What it does
PTPER
15:0
Primary Master Time Base Period Value bits
8 Minimum value
SEVTCMPPWM Primary Special Event Compare Register
Address
0xBF82A020
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
Field
Bits
What it does
SEVTCMP
15:0
Special Event Compare Count Value bits
0 trigger at period boundary
STCONSecondary Master Time Base Control Register
Address
0xBF82A040
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
Field
Bits
What it does
SSESTAT
12
Secondary Special Event Interrupt Status bit
0 Secondary Special Event Interrupt is not pending
1 Secondary Special Event Interrupt is pending
SSEIEN
11
Secondary Special Event Interrupt Enable bit
0 Secondary Special Event Interrupt is disabled
1 Secondary Special Event Interrupt is enabled
SCLKDIV
6:4
Secondary PWM Input Clock Prescaler
0 Divide by 1
1 Divide by 2
2 Divide by 4
3 Divide by 8
4 Divide by 16
5 Divide by 32
6 Divide by 64
7 Divide by 128
SEVTPS
3:0
PWM Secondary Special Event Trigger Output Postscaler Select bits
0 1:1 Postscale
1 1:2 Postscale
2 1:3 Postscale
3 1:4 Postscale
4 1:5 Postscale
5 1:6 Postscale
6 1:7 Postscale
7 1:8 Postscale
8 1:9 Postscale
9 1:10 Postscale
10 1:11 Postscale
11 1:12 Postscale
12 1:13 Postscale
13 1:14 Postscale
14 1:15 Postscale
15 1:16 Postscale
SSEVTCMPPWM Secondary Special Event Compare Register
Address
0xBF82A060
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
Field
Bits
What it does
SSEVTCMP
15:0
Secondary Special Event Compare Value bits
0 Trigger at period boundary
CHOPPWM Chop Clock Generator Register
Address
0xBF82A080
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
Field
Bits
What it does
CHPCLKEN
15
Enable Chop Clock Generator bit
0 Chop clock generator is disabled
1 Chop clock generator is enabled
CHOPCLK
9:0
Chop Clock Divider bits
0 Minimum value
PWMKEYPWM Unlock Register
Address
0xBF82A090
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
Field
Bits
What it does
PWMKEY
15:0
PWMCON1PWM Control Register x (x = 1 through 12)
Address
0xBF82A0C0
Reset
0x00000000
Access
read/write
Size
32-bit
19 fields
Field
Bits
What it does
CLIF
30
Current-Limit Status bit
0 Current limit has not occurred
1 Current limit has occurred
TRGIF
29
Trigger Interrupt Status bit
0 Trigger interrupt is not pending
1 Trigger interrupt is pending
PWMLIF
28
PWML Interrupt Status bit
0 PWM Interrupt has not occurred
1 PWM Timer equal to 0x4 interrupt has occurred
PWMHIF
27
PWMH Interrupt Status bit
0 PWM period match interrupt has not occurred
1 PWM period match interrupt has occurred
FLTIEN
23
Fault Interrupt Enable bit
0 Fault interrupt is disabled
1 Fault interrupt is enabled. If FLTIF is 1 an interrupt event will be generated
CLIEN
22
Current-Limit Interrupt Enable bit
0 Current-limit interrupt is disabled
1 Current-limit interrupt is enabled. If CLIF is 1 an interrupt event will be generated
TRGIEN
21
Primary Trigger Interrupt Enable bit
0 A primary trigger event interrupts request is disabled
1 A primary trigger event generates an interrupt request
PWMLIEN
20
PWM Low Phase Interrupt Enable bit
0 PWM Period event interrupt request is disabled
1 When the PWM Timer is equal to 0x4, the PWMLIF flag is 1 and generates an interrupt request
PWMHIEN
19
PWM High Phase Interrupt Enable bit
0 PWM Period event interrupt request is disabled
1 When the PWM Period matches the value in the PWM timer
FLTSTAT
15
Fault Interrupt Status bit (This bit is cleared by setting FLTIEN to 0)
0 No fault interrupt is pending
1 Fault interrupt is pending
CLTSTAT
14
Current-Limit Interrupt Status bit (This bit is cleared by setting CLIEN to 0)
0 PTPER/STPER register provides timing for this PWM generator based on the MTBS bit
1 PHASEx registers provide time base period for this PWM generator
DTC
7:6
Dead Time Control bits
0 Positive dead time actively applied for all output modes
1 Negative dead time actively applied for Complementary Output mode(5)
2 Dead time function is disabled
3 Dead Time Compensation mode enabled
DTCP
5
Dead Time Compensation Polarity bit
0 (If DTCMPx pin is 0)PWMxH is shortened, and PWMxL is lengthened / (If DTCMPx pin is 1)PWMxL is shortened, and PWMxH is lengthened
1 (If DTCMPx pin is 0)PWMxL is shortened, and PWMxH is lengthened / (If DTCMPx pin is 1)PWMxH is shortened, and PWMxL is lengthened
PTDIR
4
PWM Timer Direction bit
0 PWM timer is incrementing
1 PWM timer is decrementing
MTBS
3
Master Time Base Select bit
0 Primary master time base is the clock source for the MCPWM module
1 Secondary master time base is the clock source for the MCPWM module
XPRES
1
External PWM Reset Control bit
0 External pins do not affect PWM time base
1 Current-limit source resets primary local time base for this PWM generator if it is in Independent Time Base mode and the PWM module enters the deassertion portion of the duty cycle
FLTIF
31
Fault Interrupt Flag bit
0 Fault interrupt has not occurred
1 Fault interrupt has occurred
IOCON1PWMx I/O Control Register x (x = 1 through 12)
Address
0xBF82A0D0
Reset
0x00000000
Access
read/write
Size
32-bit
18 fields
Field
Bits
What it does
CLSRC
29:26
Current-Limit Control Signal Source select bit for PWM Generator x
0 FLT1
1 FLT2
2 FLT3
3 FLT4
4 FLT5
5 FLT6
6 FLT7
7 FLT8
8 Comparator 1
9 Comparator 2
10 Comparator 3
11 Comparator 4
12 Comparator 5
15 FLT15
CLPOL
25
Current-Limit Polarity bits for PWM Generator x
0 The selected current-limit source is active-high
1 The selected current-limit source is active-low
CLMOD
24
Current-Limit Mode Enable bit for PWM Generator x
0 Current-limit function is disabled
1 Current-limit function is enabled
FLTSRC
22:19
Fault Control Signal Source Select bits for PWM Generator x
0 PTPER/STPER register provides timing for this PWM generator based on the MTBS bit
1 PHASEx registers provide time base period for this PWM generator
DTC
7:6
Dead Time Control bits
0 Positive dead time actively applied for all output modes
1 Negative dead time actively applied for Complementary Output mode(5)
2 Dead time function is disabled
3 Dead Time Compensation mode enabled
DTCP
5
Dead Time Compensation Polarity bit
0 (If DTCMPx pin is 0)PWMxH is shortened, and PWMxL is lengthened / (If DTCMPx pin is 1)PWMxL is shortened, and PWMxH is lengthened
1 (If DTCMPx pin is 0)PWMxL is shortened, and PWMxH is lengthened / (If DTCMPx pin is 1)PWMxH is shortened, and PWMxL is lengthened
PTDIR
4
PWM Timer Direction bit
0 PWM timer is incrementing
1 PWM timer is decrementing
MTBS
3
Master Time Base Select bit
0 Primary master time base is the clock source for the MCPWM module
1 Secondary master time base is the clock source for the MCPWM module
XPRES
1
External PWM Reset Control bit
0 External pins do not affect PWM time base
1 Current-limit source resets primary local time base for this PWM generator if it is in Independent Time Base mode and the PWM module enters the deassertion portion of the duty cycle
FLTIF
31
Fault Interrupt Flag bit
0 Fault interrupt has not occurred
1 Fault interrupt has occurred
IOCON2PWMx I/O Control Register x (x = 1 through 12)
Address
0xBF82A1D0
Reset
0x00000000
Access
read/write
Size
32-bit
18 fields
Field
Bits
What it does
CLSRC
29:26
Current-Limit Control Signal Source select bit for PWM Generator x
0 FLT1
1 FLT2
2 FLT3
3 FLT4
4 FLT5
5 FLT6
6 FLT7
7 FLT8
8 Comparator 1
9 Comparator 2
10 Comparator 3
11 Comparator 4
12 Comparator 5
15 FLT15
CLPOL
25
Current-Limit Polarity bits for PWM Generator x
0 The selected current-limit source is active-high
1 The selected current-limit source is active-low
CLMOD
24
Current-Limit Mode Enable bit for PWM Generator x
0 Current-limit function is disabled
1 Current-limit function is enabled
FLTSRC
22:19
Fault Control Signal Source Select bits for PWM Generator x
0 PTPER/STPER register provides timing for this PWM generator based on the MTBS bit
1 PHASEx registers provide time base period for this PWM generator
DTC
7:6
Dead Time Control bits
0 Positive dead time actively applied for all output modes
1 Negative dead time actively applied for Complementary Output mode(5)
2 Dead time function is disabled
3 Dead Time Compensation mode enabled
DTCP
5
Dead Time Compensation Polarity bit
0 (If DTCMPx pin is 0)PWMxH is shortened, and PWMxL is lengthened / (If DTCMPx pin is 1)PWMxL is shortened, and PWMxH is lengthened
1 (If DTCMPx pin is 0)PWMxL is shortened, and PWMxH is lengthened / (If DTCMPx pin is 1)PWMxH is shortened, and PWMxL is lengthened
PTDIR
4
PWM Timer Direction bit
0 PWM timer is incrementing
1 PWM timer is decrementing
MTBS
3
Master Time Base Select bit
0 Primary master time base is the clock source for the MCPWM module
1 Secondary master time base is the clock source for the MCPWM module
XPRES
1
External PWM Reset Control bit
0 External pins do not affect PWM time base
1 Current-limit source resets primary local time base for this PWM generator if it is in Independent Time Base mode and the PWM module enters the deassertion portion of the duty cycle
FLTIF
31
Fault Interrupt Flag bit
0 Fault interrupt has not occurred
1 Fault interrupt has occurred
IOCON3PWMx I/O Control Register x (x = 1 through 12)
Address
0xBF82A2D0
Reset
0x00000000
Access
read/write
Size
32-bit
18 fields
Field
Bits
What it does
CLSRC
29:26
Current-Limit Control Signal Source select bit for PWM Generator x
0 FLT1
1 FLT2
2 FLT3
3 FLT4
4 FLT5
5 FLT6
6 FLT7
7 FLT8
8 Comparator 1
9 Comparator 2
10 Comparator 3
11 Comparator 4
12 Comparator 5
15 FLT15
CLPOL
25
Current-Limit Polarity bits for PWM Generator x
0 The selected current-limit source is active-high
1 The selected current-limit source is active-low
CLMOD
24
Current-Limit Mode Enable bit for PWM Generator x
0 Current-limit function is disabled
1 Current-limit function is enabled
FLTSRC
22:19
Fault Control Signal Source Select bits for PWM Generator x
0 PTPER/STPER register provides timing for this PWM generator based on the MTBS bit
1 PHASEx registers provide time base period for this PWM generator
DTC
7:6
Dead Time Control bits
0 Positive dead time actively applied for all output modes
1 Negative dead time actively applied for Complementary Output mode(5)
2 Dead time function is disabled
3 Dead Time Compensation mode enabled
DTCP
5
Dead Time Compensation Polarity bit
0 (If DTCMPx pin is 0)PWMxH is shortened, and PWMxL is lengthened / (If DTCMPx pin is 1)PWMxL is shortened, and PWMxH is lengthened
1 (If DTCMPx pin is 0)PWMxL is shortened, and PWMxH is lengthened / (If DTCMPx pin is 1)PWMxH is shortened, and PWMxL is lengthened
PTDIR
4
PWM Timer Direction bit
0 PWM timer is incrementing
1 PWM timer is decrementing
MTBS
3
Master Time Base Select bit
0 Primary master time base is the clock source for the MCPWM module
1 Secondary master time base is the clock source for the MCPWM module
XPRES
1
External PWM Reset Control bit
0 External pins do not affect PWM time base
1 Current-limit source resets primary local time base for this PWM generator if it is in Independent Time Base mode and the PWM module enters the deassertion portion of the duty cycle
FLTIF
31
Fault Interrupt Flag bit
0 Fault interrupt has not occurred
1 Fault interrupt has occurred
IOCON4PWMx I/O Control Register x (x = 1 through 12)
Address
0xBF82A3D0
Reset
0x00000000
Access
read/write
Size
32-bit
18 fields
Field
Bits
What it does
CLSRC
29:26
Current-Limit Control Signal Source select bit for PWM Generator x
0 FLT1
1 FLT2
2 FLT3
3 FLT4
4 FLT5
5 FLT6
6 FLT7
7 FLT8
8 Comparator 1
9 Comparator 2
10 Comparator 3
11 Comparator 4
12 Comparator 5
15 FLT15
CLPOL
25
Current-Limit Polarity bits for PWM Generator x
0 The selected current-limit source is active-high
1 The selected current-limit source is active-low
CLMOD
24
Current-Limit Mode Enable bit for PWM Generator x
0 Current-limit function is disabled
1 Current-limit function is enabled
FLTSRC
22:19
Fault Control Signal Source Select bits for PWM Generator x