SNIU028D February 2016 – September 2020 UCD3138 , UCD3138064 , UCD3138064A , UCD3138128 , UCD3138A , UCD3138A64
Address 00050004 – DPWM 3 Control Register 1
Address 00070004 – DPWM 2 Control Register 1
Address 000A0004 – DPWM 1 Control Register 1
Address 000D0004 – DPWM 0 Control Register 1
31 | 30 | 29 | 28 | 27 | 24 |
PRESET_EN | SYNC_FET _EN | BURST_EN | CLA_DUTY _ADJ_EN | SYNC_OUT_DIV_SEL |
R/W-0 | R/W-0 | R/W-0 | R/W-0 | R/W-0000 |
23 | 21 | 20 | 19 | 18 | 17 | 16 |
CLA_SCALE | EXT_SYNC _EN | CBC_BSIDE _ACTIVE EN | AUTO_MODE _SEL | EVENT_UP_SEL |
R/W-000 | R/W-0 | R/W-0 | R/W-0 | R/W-01 |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
CHECK _OVERRIDE | GLOBAL _PERIOD_EN | PWM_B_OE | PWM_A_OE | GPIO_B_VAL | GPIO_B_EN | GPIO_A_VAL | GPIO_A_EN |
R/W-1 | R/W-0 | R/W-0 | R/W-0 | R/W-0 | R/W-0 | R/W-0 | R/W-0 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
PWM_HR _MULTI_OUT _EN | SFRAME_EN | PWM_B_PROT _DIS | PWM_A_PROT _DIS | HIRES_SCALE | ALL_PHASE _CLK_ENA | HIRES_DIS |
R/W-0 | R/W-0 | R/W-0 | R/W-0 | R/W-00 | R/W-1 | R/W-0 |
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31 | PRESET_EN | R/W | 0 | Counter Preset Enable 0 = Counter reset to 0 upon detection of sync (Default) 1 = Counter preset to Preset Count Value upon detection of sync |
30 | SYNC_FET_EN | R/W | 0 | SyncFET Mode Enabled 0 = SyncFET Mode Disabled (Default) 1 = SyncFET Mode Enabled (Default) |
29 | BURST_EN | R/W | 0 | Burst (Light Load) Mode Detection Enable 0 = Burst Mode (Light Load) Detection disabled (Default) 1 = Burst Mode (Light Load) Detection enabled |
28 | CLA_DUTY_ADJ _EN | R/W | 0 | Enables CLA Duty Adjust from Current/Flux Balancing 0 = CLA Duty Adjust not enabled (Default) 1 = CLA Duty Adjust enabled |
27-24 | SYNC_OUT_DIV _SEL | R/W | 0000 | Sets the divider for generating the Sync Out pulse. 0000 = Sync Out generated on every switching cycle (Default) 0001 = Sync Out generated once every 2 switching cycles 0010 = Sync Out generated once every 3 switching cycles ………. 1111 = Sync Out generated once every 16 switching cycles |
23-21 | CLA_SCALE | R/W | 000 | Scaling for CLA Input Data 000 = CLA Value (Default) 001 = CLA Value multiplied by 2 010 = CLA Value divided by 2 011 = CLA Value multiplied by 4 100 = CLA Value divided by 4 101 = CLA Value multiplied by 8 110 = CLA Value divided by 8 111 = CLA Value |
20 | EXT_SYNC_EN | R/W | 0 | Slave DPWM to external sync 0 = DPWM not synchronized to external sync (Default) 1 = Slave DPWM to external sync |
19 | CBC_BSIDE _ACTIVE_EN | R/W | 0 | Sets if CBC responds to Fault CBC when PWM-B is active, only available in Multi and Reson modes 0 = Response to Fault CBC when PWM-A active (Default) 1 = Response to Fault CBC when PWM-A or PWM-B active |
18 | AUTO_MODE _SEL | R/W | 0 | Auto Switching Mode Select 0 = Auto Switching Mode disabled (Default) 1 = Auto Switching Mode enabled |
17-16 | EVENT_UP_SEL | R/W | 01 | Update End Period Mode 00 = Events updated anytime 01 = Events updated at End of Period (Default) 10 = Events updated at count value equal to Sample Trigger 2 register 11 = Events updated at End of Period and Sample Trigger 2 position |
15 | CHECK _OVERRIDE | R/W | 0 | PWM Check Override 0 = DPWM checks mathematical settings within module, correct placement of Event settings/period settings. Invalid configurations are not allowed. 1 = Overrides checking for invalid configurations and turns off PWM mathematical checking functions (Default) |
14 | GLOBAL_PERIOD _ENGLOBAL _PERIOD_EN | R/W | 0 | 0 = Event calculations use DPWM Period register (Default) 1 = Event calculations use Global Period register |
13 | PWM_B_OE | R/W | 0 | Direction for PWM B pin 0 = PWM B configured as output (Default) 1 = PWM B configured as input |
12 | PWM_A_OE | R/W | 0 | Direction for PWM A pin 0 = PWM A configured as output (Default) 1 = PWM A configured as input |
11 | GPIO_B_VAL | R/W | 0 | Sets value of PWM B output in GPIO mode 0 = PWM B driven low in GPIO mode (Default) 1 = PWM B driven high in GPIO mode |
10 | GPIO_B_EN | R/W | 0 | Enables GPIO mode for PWM B output 0 = PWM B in DPWM mode (Default) 1 = PWM B in GPIO mode |
9 | GPIO_A_VAL | R/W | 0 | Sets value of PWM A output in GPIO mode 0 = PWM A driven low in GPIO mode (Default) 1 = PWM A driven high in GPIO mode |
8 | GPIO_A_EN | R/W | 0 | Enables GPIO mode for PWM A output 0 = PWM A in DPWM mode (Default) 1 = PWM A in GPIO mode |
7 | PWM_HR_MULTI _OUT_EN | R/W | 0 | Control bit for Hi-Res Block 0 = Disabled (Default) 1 = Enabled |
6 | SFRAME_EN | R/W | 0 | PWM Single Step Frame Mode Enable 0 = Disable Single Frame Mode (Default) 1 = Enable Single Step Frame Mode. One EADC sample is requested, CLA then Filters, then one PWM duty cycle performed, then wait on Single Frame Trigger toggle before advancing to next frame. |
5 | PWM_B_PROT _DIS | R/W | 0 | PWM B Asynchronous Protection Disable 0 = Allows asynchronous protection to turn off PWM B Output (Default) 1 = Disables asynchronous protection from turning off PWM B Output |
4 | PWM_A_PROT _DIS | R/W | 0 | PWM A Asynchronous Protection Disable 0 = Allows asynchronous protection to turn off PWM A Output (Default) 1 = Disables asynchronous protection from turning off PWM A Output |
3-2 | HIRES_SCALE | R/W | 00 | Determines resolution of high resolution steps 00 = Resolution of 16 phases. Full resolution enabled. Resolution step = PCLK/16 (Default) 11 = Resolution of 2 phases. Resolution step = PCLK/2 10 = Resolution of 4 phases. Resolution step = PCLK/4 01 = Resolution of 8 phases. Resolution step = PCLK/8 00 = Resolution of 16 phases. Full Resolution enabled. Resolution step = PCLK/16 |
1 | ALL_PHASE_CLK _ENA | R/W | 1 | High Speed Oscillator Phase Enable 0 = Enables only required phases of clock when needed 1 = Enables all phases of high resolution clock from oscillator (Default) |
0 | HIRES_DIS | R/W | 0 | PWM High Resolution Disable 0 = Enable High Resolution logic (Default) 1 = Disable High Resolution logic |