SPRUJ53B April   2024  – September 2024 TMS320F28P550SJ , TMS320F28P559SJ-Q1

 

  1.   1
  2.   Read This First
    1.     About This Manual
    2.     Notational Conventions
    3.     Glossary
    4.     Related Documentation From Texas Instruments
    5.     Support Resources
    6.     Trademarks
  3. C2000™ Microcontrollers Software Support
    1. 1.1 Introduction
    2. 1.2 C2000Ware Structure
    3. 1.3 Documentation
    4. 1.4 Devices
    5. 1.5 Libraries
    6. 1.6 Code Composer Studio™ Integrated Development Environment (IDE)
    7. 1.7 SysConfig and PinMUX Tool
  4. C28x Processor
    1. 2.1 Introduction
    2. 2.2 C28X Related Collateral
    3. 2.3 Features
    4. 2.4 Floating-Point Unit (FPU)
    5. 2.5 Trigonometric Math Unit (TMU)
    6. 2.6 VCRC Unit
  5. System Control and Interrupts
    1. 3.1  Introduction
      1. 3.1.1 SYSCTL Related Collateral
      2. 3.1.2 LOCK Protection on System Configuration Registers
      3. 3.1.3 EALLOW Protection
    2. 3.2  Power Management
    3. 3.3  Device Identification and Configuration Registers
    4. 3.4  Resets
      1. 3.4.1  Reset Sources
      2. 3.4.2  External Reset (XRS)
      3. 3.4.3  Simulate External Reset (SIMRESET.XRS)
      4. 3.4.4  Power-On Reset (POR)
      5. 3.4.5  Brown-Out Reset (BOR)
      6. 3.4.6  Debugger Reset (SYSRS)
      7. 3.4.7  Simulate CPU Reset (SIMRESET)
      8. 3.4.8  Watchdog Reset (WDRS)
      9. 3.4.9  NMI Watchdog Reset (NMIWDRS)
      10. 3.4.10 DCSM Safe Code Copy Reset (SCCRESET)
    5. 3.5  Peripheral Interrupts
      1. 3.5.1 Interrupt Concepts
      2. 3.5.2 Interrupt Architecture
        1. 3.5.2.1 Peripheral Stage
        2. 3.5.2.2 PIE Stage
        3. 3.5.2.3 CPU Stage
      3. 3.5.3 Interrupt Entry Sequence
      4. 3.5.4 Configuring and Using Interrupts
        1. 3.5.4.1 Enabling Interrupts
        2. 3.5.4.2 Handling Interrupts
        3. 3.5.4.3 Disabling Interrupts
        4. 3.5.4.4 Nesting Interrupts
        5. 3.5.4.5 Vector Address Validity Check
      5. 3.5.5 PIE Channel Mapping
      6. 3.5.6 PIE Interrupt Priority
        1. 3.5.6.1 Channel Priority
        2. 3.5.6.2 Group Priority
      7. 3.5.7 System Error
      8. 3.5.8 Vector Tables
    6. 3.6  Exceptions and Non-Maskable Interrupts
      1. 3.6.1 Configuring and Using NMIs
      2. 3.6.2 Emulation Considerations
      3. 3.6.3 NMI Sources
        1. 3.6.3.1 Missing Clock Detection
        2. 3.6.3.2 RAM Uncorrectable Error
        3. 3.6.3.3 Flash Uncorrectable ECC Error
        4. 3.6.3.4 Software-Forced Error
        5. 3.6.3.5 ERAD NMI
      4. 3.6.4 Illegal Instruction Trap (ITRAP)
      5. 3.6.5 ERRORSTS Pin
    7. 3.7  Clocking
      1. 3.7.1  Clock Sources
        1. 3.7.1.1 Primary Internal Oscillator (INTOSC2)
        2. 3.7.1.2 Backup Internal Oscillator (INTOSC1)
        3. 3.7.1.3 Auxiliary Clock Input (AUXCLKIN)
        4. 3.7.1.4 External Oscillator (XTAL)
      2. 3.7.2  Derived Clocks
        1. 3.7.2.1 Oscillator Clock (OSCCLK)
        2. 3.7.2.2 System PLL Output Clock (PLLRAWCLK)
      3. 3.7.3  Device Clock Domains
        1. 3.7.3.1 System Clock (PLLSYSCLK)
        2. 3.7.3.2 CPU Clock (CPUCLK)
        3. 3.7.3.3 CPU Subsystem Clock (SYSCLK and PERx.SYSCLK)
        4. 3.7.3.4 Low-Speed Peripheral Clock (LSPCLK and PERx.LSPCLK)
        5. 3.7.3.5 USB Bit Clock
        6. 3.7.3.6 CAN Bit Clock
        7. 3.7.3.7 CLB Clock
        8. 3.7.3.8 LIN Clock
        9. 3.7.3.9 CPU Timer2 Clock (TIMER2CLK)
      4. 3.7.4  XCLKOUT
      5. 3.7.5  Clock Connectivity
      6. 3.7.6  Clock Source and PLL Setup
      7. 3.7.7  Using an External Crystal or Resonator
        1. 3.7.7.1 X1/X2 Precondition Circuit
      8. 3.7.8  Using an External Oscillator
      9. 3.7.9  Choosing PLL Settings
      10. 3.7.10 System Clock Setup
      11. 3.7.11 SYS PLL Bypass
      12. 3.7.12 Clock (OSCCLK) Failure Detection
        1. 3.7.12.1 Missing Clock Detection
    8. 3.8  32-Bit CPU Timers 0/1/2
    9. 3.9  Watchdog Timer
      1. 3.9.1 Servicing the Watchdog Timer
      2. 3.9.2 Minimum Window Check
      3. 3.9.3 Watchdog Reset or Watchdog Interrupt Mode
      4. 3.9.4 Watchdog Operation in Low-Power Modes
      5. 3.9.5 Emulation Considerations
    10. 3.10 Low-Power Modes
      1. 3.10.1 Clock-Gating Low-Power Modes
      2. 3.10.2 IDLE
      3. 3.10.3 STANDBY
      4. 3.10.4 HALT
    11. 3.11 Memory Controller Module
      1. 3.11.1 Functional Description
        1. 3.11.1.1  Dedicated RAM (Mx RAM)
        2. 3.11.1.2  Local Shared RAM (LSx RAM)
        3. 3.11.1.3  Global Shared RAM (GSx RAM)
        4. 3.11.1.4  CAN Message RAM
        5. 3.11.1.5  CLA-CPU Message RAM
        6. 3.11.1.6  CLA-DMA Message RAM
        7. 3.11.1.7  Access Arbitration
        8. 3.11.1.8  Access Protection
          1. 3.11.1.8.1 CPU Fetch Protection
          2. 3.11.1.8.2 CPU Write Protection
          3. 3.11.1.8.3 CPU Read Protection
          4. 3.11.1.8.4 CLA Fetch Protection
          5. 3.11.1.8.5 CLA Write Protection
          6. 3.11.1.8.6 CLA Read Protection
          7. 3.11.1.8.7 DMA Write Protection
          8. 3.11.1.8.8 NPU Write Protection
        9. 3.11.1.9  Memory Error Detection, Correction, and Error Handling
          1. 3.11.1.9.1 Error Detection and Correction
          2. 3.11.1.9.2 Error Handling
        10. 3.11.1.10 Application Test Hooks for Error Detection and Correction
        11. 3.11.1.11 RAM Initialization
    12. 3.12 JTAG
      1. 3.12.1 JTAG Noise and TAP_STATUS
    13. 3.13 Live Firmware Update
      1. 3.13.1 LFU Background
      2. 3.13.2 LFU Switchover Steps
      3. 3.13.3 Device Features Supporting LFU
        1. 3.13.3.1 Multi-Bank Flash
        2. 3.13.3.2 PIE Vector Table Swap
        3. 3.13.3.3 LS0/LS1 RAM Memory Swap
          1. 3.13.3.3.1 Applicability to CLA LFU
      4. 3.13.4 LFU Switchover
      5. 3.13.5 LFU Resources
    14. 3.14 System Control Register Configuration Restrictions
    15. 3.15 Software
      1. 3.15.1  SYSCTL Registers to Driverlib Functions
      2. 3.15.2  CPUTIMER Registers to Driverlib Functions
      3. 3.15.3  MEMCFG Registers to Driverlib Functions
      4. 3.15.4  PIE Registers to Driverlib Functions
      5. 3.15.5  NMI Registers to Driverlib Functions
      6. 3.15.6  XINT Registers to Driverlib Functions
      7. 3.15.7  WWD Registers to Driverlib Functions
      8. 3.15.8  SYSCTL Examples
        1. 3.15.8.1 Missing clock detection (MCD)
        2. 3.15.8.2 XCLKOUT (External Clock Output) Configuration
      9. 3.15.9  TIMER Examples
        1. 3.15.9.1 CPU Timers
        2. 3.15.9.2 CPU Timers
      10. 3.15.10 MEMCFG Examples
        1. 3.15.10.1 Correctable & Uncorrectable Memory Error Handling
      11. 3.15.11 INTERRUPT Examples
        1. 3.15.11.1 External Interrupts (ExternalInterrupt)
        2. 3.15.11.2 Multiple interrupt handling of I2C, SCI & SPI Digital Loopback
        3. 3.15.11.3 CPU Timer Interrupt Software Prioritization
        4. 3.15.11.4 EPWM Real-Time Interrupt
      12. 3.15.12 LPM Examples
        1. 3.15.12.1 Low Power Modes: Device Idle Mode and Wakeup using GPIO
        2. 3.15.12.2 Low Power Modes: Device Idle Mode and Wakeup using Watchdog
        3. 3.15.12.3 Low Power Modes: Device Standby Mode and Wakeup using GPIO
        4. 3.15.12.4 Low Power Modes: Device Standby Mode and Wakeup using Watchdog
        5. 3.15.12.5 Low Power Modes: Halt Mode and Wakeup using GPIO
        6. 3.15.12.6 Low Power Modes: Halt Mode and Wakeup
      13. 3.15.13 WATCHDOG Examples
        1. 3.15.13.1 Watchdog
    16. 3.16 SYSCTRL Registers
      1. 3.16.1  SYSCTRL Base Address Table
      2. 3.16.2  CPUTIMER_REGS Registers
      3. 3.16.3  PIE_CTRL_REGS Registers
      4. 3.16.4  NMI_INTRUPT_REGS Registers
      5. 3.16.5  XINT_REGS Registers
      6. 3.16.6  SYNC_SOC_REGS Registers
      7. 3.16.7  DMA_CLA_SRC_SEL_REGS Registers
      8. 3.16.8  LFU_REGS Registers
      9. 3.16.9  DEV_CFG_REGS Registers
      10. 3.16.10 CLK_CFG_REGS Registers
      11. 3.16.11 CPU_SYS_REGS Registers
      12. 3.16.12 SYS_STATUS_REGS Registers
      13. 3.16.13 PERIPH_AC_REGS Registers
      14. 3.16.14 MEM_CFG_REGS Registers
      15. 3.16.15 ACCESS_PROTECTION_REGS Registers
      16. 3.16.16 MEMORY_ERROR_REGS Registers
      17. 3.16.17 TEST_ERROR_REGS Registers
      18. 3.16.18 UID_REGS Registers
  6. ROM Code and Peripheral Booting
    1. 4.1 Introduction
      1. 4.1.1 ROM Related Collateral
    2. 4.2 Device Boot Sequence
    3. 4.3 Device Boot Modes
      1. 4.3.1 Default Boot Modes
      2. 4.3.2 Custom Boot Modes
    4. 4.4 Device Boot Configurations
      1. 4.4.1 Configuring Boot Mode Pins
      2. 4.4.2 Configuring Boot Mode Table Options
      3. 4.4.3 Boot Mode Example Use Cases
        1. 4.4.3.1 Zero Boot Mode Select Pins
        2. 4.4.3.2 One Boot Mode Select Pin
        3. 4.4.3.3 Three Boot Mode Select Pins
    5. 4.5 Device Boot Flow Diagrams
      1. 4.5.1 Boot Flow
      2. 4.5.2 Emulation Boot Flow
      3. 4.5.3 Standalone Boot Flow
    6. 4.6 Device Reset and Exception Handling
      1. 4.6.1 Reset Causes and Handling
      2. 4.6.2 Exceptions and Interrupts Handling
    7. 4.7 Boot ROM Description
      1. 4.7.1  Boot ROM Configuration Registers
        1. 4.7.1.1 Flash Write Protection
        2. 4.7.1.2 MPOST Configuration
      2. 4.7.2  Entry Points
      3. 4.7.3  Wait Points
      4. 4.7.4  Secure Flash Boot
        1. 4.7.4.1 Secure Flash CPU1 Linker File Example
      5. 4.7.5  Firmware Update (FWU) Flash Boot
      6. 4.7.6  Memory Maps
        1. 4.7.6.1 Boot ROM Memory Maps
        2. 4.7.6.2 CLA Data ROM Memory Maps
        3. 4.7.6.3 Reserved RAM Memory Maps
      7. 4.7.7  ROM Tables
      8. 4.7.8  Boot Modes and Loaders
        1. 4.7.8.1 Boot Modes
          1. 4.7.8.1.1 Flash Boot
          2. 4.7.8.1.2 RAM Boot
          3. 4.7.8.1.3 Wait Boot
        2. 4.7.8.2 Bootloaders
          1. 4.7.8.2.1 SCI Boot Mode
          2. 4.7.8.2.2 SPI Boot Mode
          3. 4.7.8.2.3 I2C Boot Mode
          4. 4.7.8.2.4 Parallel Boot Mode
          5. 4.7.8.2.5 CAN Boot Mode (MCAN in non-FD mode)
          6. 4.7.8.2.6 CAN-FD Boot Mode
          7. 4.7.8.2.7 USB Boot Mode
      9. 4.7.9  GPIO Assignments
      10. 4.7.10 Secure ROM Function APIs
      11. 4.7.11 Clock Initializations
      12. 4.7.12 Boot Status Information
        1. 4.7.12.1 Booting Status
        2. 4.7.12.2 Boot Mode and MPOST (Memory Power On Self-Test) Status
      13. 4.7.13 ROM Version
    8. 4.8 Application Notes for Using the Bootloaders
      1. 4.8.1 Bootloader Data Stream Structure
        1. 4.8.1.1 Data Stream Structure 8-bit
      2. 4.8.2 The C2000 Hex Utility
        1. 4.8.2.1 HEX2000.exe Command Syntax
    9. 4.9 Software
      1. 4.9.1 BOOT Examples
  7. Dual Code Security Module (DCSM)
    1. 5.1 Introduction
      1. 5.1.1 DCSM Related Collateral
    2. 5.2 Functional Description
      1. 5.2.1 CSM Passwords
      2. 5.2.2 Emulation Code Security Logic (ECSL)
      3. 5.2.3 CPU Secure Logic
      4. 5.2.4 Execute-Only Protection
      5. 5.2.5 Password Lock
      6. 5.2.6 JTAGLOCK
      7. 5.2.7 Link Pointer and Zone Select
      8. 5.2.8 C Code Example to Get Zone Select Block Addr for Zone1
    3. 5.3 Flash and OTP Erase/Program
    4. 5.4 Secure Copy Code
    5. 5.5 SecureCRC
    6. 5.6 CSM Impact on Other On-Chip Resources
    7. 5.7 Incorporating Code Security in User Applications
      1. 5.7.1 Environments That Require Security Unlocking
      2. 5.7.2 CSM Password Match Flow
      3. 5.7.3 C Code Example to Unsecure C28x Zone1
      4. 5.7.4 C Code Example to Resecure C28x Zone1
      5. 5.7.5 Environments That Require ECSL Unlocking
      6. 5.7.6 ECSL Password Match Flow
      7. 5.7.7 ECSL Disable Considerations for any Zone
        1. 5.7.7.1 C Code Example to Disable ECSL for C28x Zone1
      8. 5.7.8 Device Unique ID
    8. 5.8 Software
      1. 5.8.1 DCSM Registers to Driverlib Functions
      2. 5.8.2 DCSM Examples
        1. 5.8.2.1 Empty DCSM Tool Example
    9. 5.9 DCSM Registers
      1. 5.9.1 DCSM Base Address Table
      2. 5.9.2 DCSM_Z1_REGS Registers
      3. 5.9.3 DCSM_Z2_REGS Registers
      4. 5.9.4 DCSM_COMMON_REGS Registers
      5. 5.9.5 DCSM_Z1_OTP Registers
      6. 5.9.6 DCSM_Z2_OTP Registers
  8. Flash Module
    1. 6.1  Introduction to Flash and OTP Memory
      1. 6.1.1 FLASH Related Collateral
      2. 6.1.2 Features
      3. 6.1.3 Flash Tools
      4. 6.1.4 Default Flash Configuration
    2. 6.2  Flash Bank, OTP, and Pump
    3. 6.3  Flash Wrapper
    4. 6.4  Flash and OTP Memory Performance
    5. 6.5  Flash Read Interface
      1. 6.5.1 C28x-Flash Read Interface
        1. 6.5.1.1 Standard Read Mode
        2. 6.5.1.2 Prefetch Mode
        3. 6.5.1.3 Data Cache
        4. 6.5.1.4 Flash Read Operation
    6. 6.6  Flash Erase and Program
      1. 6.6.1 Erase
      2. 6.6.2 Program
      3. 6.6.3 Verify
    7. 6.7  Error Correction Code (ECC) Protection
      1. 6.7.1 Single-Bit Data Error
      2. 6.7.2 Uncorrectable Error
      3. 6.7.3 Mechanism to Check the Correctness of ECC Logic
    8. 6.8  Reserved Locations Within Flash and OTP
    9. 6.9  Migrating an Application from RAM to Flash
    10. 6.10 Procedure to Change the Flash Control Registers
    11. 6.11 Software
      1. 6.11.1 FLASH Registers to Driverlib Functions
      2. 6.11.2 FLASH Examples
        1. 6.11.2.1 Flash Programming with AutoECC, DataAndECC, DataOnly and EccOnly
        2. 6.11.2.2 Flash Programming with AutoECC, DataAndECC, DataOnly and EccOnly
    12. 6.12 FLASH Registers
      1. 6.12.1 FLASH Base Address Table
      2. 6.12.2 FLASH_CTRL_REGS Registers
      3. 6.12.3 FLASH_ECC_REGS Registers
  9. Control Law Accelerator (CLA)
    1. 7.1 Introduction
      1. 7.1.1 Features
      2. 7.1.2 CLA Related Collateral
      3. 7.1.3 Block Diagram
    2. 7.2 CLA Interface
      1. 7.2.1 CLA Memory
      2. 7.2.2 CLA Memory Bus
      3. 7.2.3 Shared Peripherals and EALLOW Protection
      4. 7.2.4 CLA Tasks and Interrupt Vectors
    3. 7.3 CLA, DMA, and CPU Arbitration
      1. 7.3.1 CLA Message RAM
      2. 7.3.2 CLA Program Memory
      3. 7.3.3 CLA Data Memory
      4. 7.3.4 Peripheral Registers (ePWM, HRPWM, Comparator)
    4. 7.4 CLA Configuration and Debug
      1. 7.4.1 Building a CLA Application
      2. 7.4.2 Typical CLA Initialization Sequence
      3. 7.4.3 Debugging CLA Code
        1. 7.4.3.1 Breakpoint Support (MDEBUGSTOP)
      4. 7.4.4 CLA Illegal Opcode Behavior
      5. 7.4.5 Resetting the CLA
    5. 7.5 Pipeline
      1. 7.5.1 Pipeline Overview
      2. 7.5.2 CLA Pipeline Alignment
        1. 7.5.2.1 Code Fragment For MBCNDD, MCCNDD, or MRCNDD
        2.       359
        3. 7.5.2.2 Code Fragment for Loading MAR0 or MAR1
        4.       361
        5. 7.5.2.3 ADC Early Interrupt to CLA Response
      3. 7.5.3 Parallel Instructions
        1. 7.5.3.1 Math Operation with Parallel Load
        2. 7.5.3.2 Multiply with Parallel Add
      4. 7.5.4 CLA Task Execution Latency
    6. 7.6 Software
      1. 7.6.1 CLA Registers to Driverlib Functions
      2. 7.6.2 CLA Examples
        1. 7.6.2.1 CLA arcsine(x) using a lookup table (cla_asin_cpu01)
        2. 7.6.2.2 CLA arcsine(x) using a lookup table (cla_asin_cpu01)
        3. 7.6.2.3 CLA arctangent(x) using a lookup table (cla_atan_cpu01)
        4. 7.6.2.4 CLA background nesting task
        5. 7.6.2.5 Controlling PWM output using CLA
        6. 7.6.2.6 Just-in-time ADC sampling with CLA
        7. 7.6.2.7 Optimal offloading of control algorithms to CLA
        8. 7.6.2.8 Handling shared resources across C28x and CLA
    7. 7.7 Instruction Set
      1. 7.7.1 Instruction Descriptions
      2. 7.7.2 Addressing Modes and Encoding
      3. 7.7.3 Instructions
        1.       MABSF32 MRa, MRb
        2.       MADD32 MRa, MRb, MRc
        3.       MADDF32 MRa, #16FHi, MRb
        4.       MADDF32 MRa, MRb, #16FHi
        5.       MADDF32 MRa, MRb, MRc
        6.       MADDF32 MRd, MRe, MRf||MMOV32 mem32, MRa
        7.       MADDF32 MRd, MRe, MRf ||MMOV32 MRa, mem32
        8.       MAND32 MRa, MRb, MRc
        9.       MASR32 MRa, #SHIFT
        10.       MBCNDD 16BitDest [, CNDF]
        11.       MCCNDD 16BitDest [, CNDF]
        12.       MCMP32 MRa, MRb
        13.       MCMPF32 MRa, MRb
        14.       MCMPF32 MRa, #16FHi
        15.       MDEBUGSTOP
        16.       MEALLOW
        17.       MEDIS
        18.       MEINVF32 MRa, MRb
        19.       MEISQRTF32 MRa, MRb
        20.       MF32TOI16 MRa, MRb
        21.       MF32TOI16R MRa, MRb
        22.       MF32TOI32 MRa, MRb
        23.       MF32TOUI16 MRa, MRb
        24.       MF32TOUI16R MRa, MRb
        25.       MF32TOUI32 MRa, MRb
        26.       MFRACF32 MRa, MRb
        27.       MI16TOF32 MRa, MRb
        28.       MI16TOF32 MRa, mem16
        29.       MI32TOF32 MRa, mem32
        30.       MI32TOF32 MRa, MRb
        31.       MLSL32 MRa, #SHIFT
        32.       MLSR32 MRa, #SHIFT
        33.       MMACF32 MR3, MR2, MRd, MRe, MRf ||MMOV32 MRa, mem32
        34.       MMAXF32 MRa, MRb
        35.       MMAXF32 MRa, #16FHi
        36.       MMINF32 MRa, MRb
        37.       MMINF32 MRa, #16FHi
        38.       MMOV16 MARx, MRa, #16I
        39.       MMOV16 MARx, mem16
        40.       MMOV16 mem16, MARx
        41.       MMOV16 mem16, MRa
        42.       MMOV32 mem32, MRa
        43.       MMOV32 mem32, MSTF
        44.       MMOV32 MRa, mem32 [, CNDF]
        45.       MMOV32 MRa, MRb [, CNDF]
        46.       MMOV32 MSTF, mem32
        47.       MMOVD32 MRa, mem32
        48.       MMOVF32 MRa, #32F
        49.       MMOVI16 MARx, #16I
        50.       MMOVI32 MRa, #32FHex
        51.       MMOVIZ MRa, #16FHi
        52.       MMOVZ16 MRa, mem16
        53.       MMOVXI MRa, #16FLoHex
        54.       MMPYF32 MRa, MRb, MRc
        55.       MMPYF32 MRa, #16FHi, MRb
        56.       MMPYF32 MRa, MRb, #16FHi
        57.       MMPYF32 MRa, MRb, MRc||MADDF32 MRd, MRe, MRf
        58.       MMPYF32 MRd, MRe, MRf ||MMOV32 MRa, mem32
        59.       MMPYF32 MRd, MRe, MRf ||MMOV32 mem32, MRa
        60.       MMPYF32 MRa, MRb, MRc ||MSUBF32 MRd, MRe, MRf
        61.       MNEGF32 MRa, MRb[, CNDF]
        62.       MNOP
        63.       MOR32 MRa, MRb, MRc
        64.       MRCNDD [CNDF]
        65.       MSETFLG FLAG, VALUE
        66.       MSTOP
        67.       MSUB32 MRa, MRb, MRc
        68.       MSUBF32 MRa, MRb, MRc
        69.       MSUBF32 MRa, #16FHi, MRb
        70.       MSUBF32 MRd, MRe, MRf ||MMOV32 MRa, mem32
        71.       MSUBF32 MRd, MRe, MRf ||MMOV32 mem32, MRa
        72.       MSWAPF MRa, MRb [, CNDF]
        73.       MTESTTF CNDF
        74.       MUI16TOF32 MRa, mem16
        75.       MUI16TOF32 MRa, MRb
        76.       MUI32TOF32 MRa, mem32
        77.       MUI32TOF32 MRa, MRb
        78.       MXOR32 MRa, MRb, MRc
    8. 7.8 CLA Registers
      1. 7.8.1 CLA Base Address Table
      2. 7.8.2 CLA_ONLY_REGS Registers
      3. 7.8.3 CLA_SOFTINT_REGS Registers
      4. 7.8.4 CLA_REGS Registers
  10. Neural-network Processing Unit (NPU)
    1. 8.1 Introduction
      1. 8.1.1 NPU Related Collateral
  11. Dual-Clock Comparator (DCC)
    1. 9.1 Introduction
      1. 9.1.1 Features
      2. 9.1.2 Block Diagram
    2. 9.2 Module Operation
      1. 9.2.1 Configuring DCC Counters
      2. 9.2.2 Single-Shot Measurement Mode
      3. 9.2.3 Continuous Monitoring Mode
      4. 9.2.4 Error Conditions
    3. 9.3 Interrupts
    4. 9.4 Software
      1. 9.4.1 DCC Registers to Driverlib Functions
      2. 9.4.2 DCC Examples
        1. 9.4.2.1 DCC Single shot Clock measurement
        2. 9.4.2.2 DCC Single shot Clock verification
        3. 9.4.2.3 DCC Continuous clock monitoring
        4. 9.4.2.4 DCC Continuous clock monitoring
        5. 9.4.2.5 DCC Detection of clock failure
    5. 9.5 DCC Registers
      1. 9.5.1 DCC Base Address Table
      2. 9.5.2 DCC_REGS Registers
  12. 10General-Purpose Input/Output (GPIO)
    1. 10.1  Introduction
      1. 10.1.1 GPIO Related Collateral
    2. 10.2  Configuration Overview
    3. 10.3  Digital Inputs on ADC Pins (AIOs)
    4. 10.4  Digital Inputs and Outputs on ADC Pins (AGPIOs)
    5. 10.5  Digital General-Purpose I/O Control
    6. 10.6  Input Qualification
      1. 10.6.1 No Synchronization (Asynchronous Input)
      2. 10.6.2 Synchronization to SYSCLKOUT Only
      3. 10.6.3 Qualification Using a Sampling Window
    7. 10.7  USB Signals
    8. 10.8  PMBUS and I2C Signals
    9. 10.9  GPIO and Peripheral Muxing
      1. 10.9.1 GPIO Muxing
      2. 10.9.2 Peripheral Muxing
    10. 10.10 Internal Pullup Configuration Requirements
    11. 10.11 Software
      1. 10.11.1 GPIO Registers to Driverlib Functions
      2. 10.11.2 GPIO Examples
        1. 10.11.2.1 Device GPIO Setup
        2. 10.11.2.2 Device GPIO Toggle
        3. 10.11.2.3 Device GPIO Interrupt
        4. 10.11.2.4 External Interrupt (XINT)
      3. 10.11.3 LED Examples
    12. 10.12 GPIO Registers
      1. 10.12.1 GPIO Base Address Table
      2. 10.12.2 GPIO_CTRL_REGS Registers
      3. 10.12.3 GPIO_DATA_REGS Registers
      4. 10.12.4 GPIO_DATA_READ_REGS Registers
  13. 11Crossbar (X-BAR)
    1. 11.1 Input X-BAR and CLB Input X-BAR
      1. 11.1.1 CLB Input X-BAR
    2. 11.2 ePWM , CLB, and GPIO Output X-BAR
      1. 11.2.1 ePWM X-BAR
        1. 11.2.1.1 ePWM X-BAR Architecture
      2. 11.2.2 CLB X-BAR
        1. 11.2.2.1 CLB X-BAR Architecture
      3. 11.2.3 GPIO Output X-BAR
        1. 11.2.3.1 GPIO Output X-BAR Architecture
      4. 11.2.4 X-BAR Flags
    3. 11.3 Software
      1. 11.3.1 INPUTXBAR Registers to Driverlib Functions
      2. 11.3.2 EPWMXBAR Registers to Driverlib Functions
      3. 11.3.3 CLBXBAR Registers to Driverlib Functions
      4. 11.3.4 OUTPUTXBAR Registers to Driverlib Functions
      5. 11.3.5 XBAR Registers to Driverlib Functions
    4. 11.4 XBAR Registers
      1. 11.4.1 XBAR Base Address Table
      2. 11.4.2 INPUT_XBAR_REGS Registers
      3. 11.4.3 XBAR_REGS Registers
      4. 11.4.4 EPWM_XBAR_REGS Registers
      5. 11.4.5 CLB_XBAR_REGS Registers
      6. 11.4.6 OUTPUT_XBAR_REGS Registers
      7. 11.4.7 OUTPUT_XBAR_REGS Registers
  14. 12Direct Memory Access (DMA)
    1. 12.1 Introduction
      1. 12.1.1 Features
      2. 12.1.2 Block Diagram
    2. 12.2 Architecture
      1. 12.2.1 Peripheral Interrupt Event Trigger Sources
      2. 12.2.2 DMA Bus
    3. 12.3 Address Pointer and Transfer Control
    4. 12.4 Pipeline Timing and Throughput
    5. 12.5 CPU and CLA Arbitration
    6. 12.6 Channel Priority
      1. 12.6.1 Round-Robin Mode
      2. 12.6.2 Channel 1 High-Priority Mode
    7. 12.7 Overrun Detection Feature
    8. 12.8 Software
      1. 12.8.1 DMA Registers to Driverlib Functions
      2. 12.8.2 DMA Examples
        1. 12.8.2.1 DMA GSRAM Transfer (dma_ex1_gsram_transfer)
        2. 12.8.2.2 DMA GSRAM Transfer (dma_ex2_gsram_transfer)
    9. 12.9 DMA Registers
      1. 12.9.1 DMA Base Address Table
      2. 12.9.2 DMA_REGS Registers
      3. 12.9.3 DMA_CH_REGS Registers
  15. 13Embedded Real-time Analysis and Diagnostic (ERAD)
    1. 13.1 Introduction
      1. 13.1.1 ERAD Related Collateral
    2. 13.2 Enhanced Bus Comparator Unit
      1. 13.2.1 Enhanced Bus Comparator Unit Operations
      2. 13.2.2 Event Masking and Exporting
    3. 13.3 System Event Counter Unit
      1. 13.3.1 System Event Counter Modes
        1. 13.3.1.1 Counting Active Levels Versus Edges
        2. 13.3.1.2 Max Mode
        3. 13.3.1.3 Cumulative Mode
        4. 13.3.1.4 Input Signal Selection
      2. 13.3.2 Reset on Event
      3. 13.3.3 Operation Conditions
    4. 13.4 ERAD Ownership, Initialization and Reset
    5. 13.5 ERAD Programming Sequence
      1. 13.5.1 Hardware Breakpoint and Hardware Watch Point Programming Sequence
      2. 13.5.2 Timer and Counter Programming Sequence
    6. 13.6 Cyclic Redundancy Check Unit
      1. 13.6.1 CRC Unit Qualifier
      2. 13.6.2 CRC Unit Programming Sequence
    7. 13.7 Program Counter Trace
      1. 13.7.1 Functional Block Diagram
      2. 13.7.2 Trace Qualification Modes
        1. 13.7.2.1 Trace Qualifier Input Signals
      3. 13.7.3 Trace Memory
      4. 13.7.4 Trace Input Signal Conditioning
      5. 13.7.5 PC Trace Software Operation
      6. 13.7.6 Trace Operation in Debug Mode
    8. 13.8 Software
      1. 13.8.1 ERAD Registers to Driverlib Functions
      2. 13.8.2 ERAD Examples
        1. 13.8.2.1  ERAD Profiling Interrupts
        2. 13.8.2.2  ERAD Profile Function
        3. 13.8.2.3  ERAD Profile Function
        4. 13.8.2.4  ERAD HWBP Monitor Program Counter
        5. 13.8.2.5  ERAD HWBP Monitor Program Counter
        6. 13.8.2.6  ERAD Profile Function
        7. 13.8.2.7  ERAD HWBP Stack Overflow Detection
        8. 13.8.2.8  ERAD HWBP Stack Overflow Detection
        9. 13.8.2.9  ERAD Stack Overflow
        10. 13.8.2.10 ERAD Profile Interrupts CLA
        11. 13.8.2.11 ERAD Profiling Interrupts
        12. 13.8.2.12 ERAD Profiling Interrupts
        13. 13.8.2.13 ERAD MEMORY ACCESS RESTRICT
        14. 13.8.2.14 ERAD INTERRUPT ORDER
        15. 13.8.2.15 ERAD AND CLB
        16. 13.8.2.16 ERAD PWM PROTECTION
    9. 13.9 ERAD Registers
      1. 13.9.1 ERAD Base Address Table
      2. 13.9.2 ERAD_GLOBAL_REGS Registers
      3. 13.9.3 ERAD_HWBP_REGS Registers
      4. 13.9.4 ERAD_COUNTER_REGS Registers
      5. 13.9.5 ERAD_CRC_GLOBAL_REGS Registers
      6. 13.9.6 ERAD_CRC_REGS Registers
      7. 13.9.7 PCTRACE_REGS Registers
      8. 13.9.8 PCTRACE_BUFFER_REGS Registers
  16. 14Analog Subsystem
    1. 14.1 Introduction
      1. 14.1.1 Features
      2. 14.1.2 Block Diagram
    2. 14.2 Optimizing Power-Up Time
    3. 14.3 Digital Inputs on ADC Pins (AIOs)
    4. 14.4 Digital Inputs and Outputs on ADC Pins (AGPIOs)
    5. 14.5 Analog Pins and Internal Connections
    6. 14.6 Software
      1. 14.6.1 ASYSCTL Registers to Driverlib Functions
    7. 14.7 ASBSYS Registers
      1. 14.7.1 ASBSYS Base Address Table
      2. 14.7.2 ANALOG_SUBSYS_REGS Registers
  17. 15Analog-to-Digital Converter (ADC)
    1. 15.1  Introduction
      1. 15.1.1 ADC Related Collateral
      2. 15.1.2 Features
      3. 15.1.3 Block Diagram
    2. 15.2  ADC Configurability
      1. 15.2.1 Clock Configuration
      2. 15.2.2 Resolution
      3. 15.2.3 Voltage Reference
        1. 15.2.3.1 External Reference Mode
        2. 15.2.3.2 Internal Reference Mode
        3. 15.2.3.3 Ganged References
        4. 15.2.3.4 Selecting Reference Mode
      4. 15.2.4 Signal Mode
      5. 15.2.5 Expected Conversion Results
      6. 15.2.6 Interpreting Conversion Results
    3. 15.3  SOC Principle of Operation
      1. 15.3.1 SOC Configuration
      2. 15.3.2 Trigger Operation
        1. 15.3.2.1 Global Software Trigger
        2. 15.3.2.2 Trigger Repeaters
          1. 15.3.2.2.1 Oversampling Mode
          2. 15.3.2.2.2 Undersampling Mode
          3. 15.3.2.2.3 Trigger Phase Delay
          4. 15.3.2.2.4 Re-trigger Spread
          5. 15.3.2.2.5 Trigger Repeater Configuration
            1. 15.3.2.2.5.1 Register Shadow Updates
          6. 15.3.2.2.6 Re-Trigger Logic
          7. 15.3.2.2.7 Multi-Path Triggering Behavior
      3. 15.3.3 ADC Acquisition (Sample and Hold) Window
      4. 15.3.4 Sample Capacitor Reset
      5. 15.3.5 ADC Input Models
      6. 15.3.6 Channel Selection
        1. 15.3.6.1 External Channel Selection
          1. 15.3.6.1.1 External Channel Selection Timing
    4. 15.4  SOC Configuration Examples
      1. 15.4.1 Single Conversion from ePWM Trigger
      2. 15.4.2 Oversampled Conversion from ePWM Trigger
      3. 15.4.3 Multiple Conversions from CPU Timer Trigger
      4. 15.4.4 Software Triggering of SOCs
    5. 15.5  ADC Conversion Priority
    6. 15.6  Burst Mode
      1. 15.6.1 Burst Mode Example
      2. 15.6.2 Burst Mode Priority Example
    7. 15.7  EOC and Interrupt Operation
      1. 15.7.1 Interrupt Overflow
      2. 15.7.2 Continue to Interrupt Mode
      3. 15.7.3 Early Interrupt Configuration Mode
    8. 15.8  Post-Processing Blocks
      1. 15.8.1 PPB Offset Correction
      2. 15.8.2 PPB Error Calculation
      3. 15.8.3 PPB Result Delta Calculation
      4. 15.8.4 PPB Limit Detection and Zero-Crossing Detection
        1. 15.8.4.1 PPB Digital Trip Filter
      5. 15.8.5 PPB Sample Delay Capture
      6. 15.8.6 PPB Oversampling
        1. 15.8.6.1 Accumulation, Minimum, Maximum, and Average Functions
        2. 15.8.6.2 Outlier Rejection
    9. 15.9  Opens/Shorts Detection Circuit (OSDETECT)
      1. 15.9.1 Implementation
      2. 15.9.2 Detecting an Open Input Pin
      3. 15.9.3 Detecting a Shorted Input Pin
    10. 15.10 Power-Up Sequence
    11. 15.11 ADC Calibration
      1. 15.11.1 ADC Zero Offset Calibration
    12. 15.12 ADC Timings
      1. 15.12.1 ADC Timing Diagrams
      2. 15.12.2 Post-Processing Block Timings
    13. 15.13 Additional Information
      1. 15.13.1 Ensuring Synchronous Operation
        1. 15.13.1.1 Basic Synchronous Operation
        2. 15.13.1.2 Synchronous Operation with Multiple Trigger Sources
        3. 15.13.1.3 Synchronous Operation with Uneven SOC Numbers
        4. 15.13.1.4 Non-overlapping Conversions
      2. 15.13.2 Choosing an Acquisition Window Duration
      3. 15.13.3 Achieving Simultaneous Sampling
      4. 15.13.4 Result Register Mapping
      5. 15.13.5 Internal Temperature Sensor
      6. 15.13.6 Designing an External Reference Circuit
      7. 15.13.7 ADC-DAC Loopback Testing
      8. 15.13.8 Internal Test Mode
      9. 15.13.9 ADC Gain and Offset Calibration
    14. 15.14 Software
      1. 15.14.1 ADC Registers to Driverlib Functions
      2. 15.14.2 ADC Examples
        1. 15.14.2.1  ADC Software Triggering
        2. 15.14.2.2  ADC ePWM Triggering
        3. 15.14.2.3  ADC Temperature Sensor Conversion
        4. 15.14.2.4  ADC Synchronous SOC Software Force (adc_soc_software_sync)
        5. 15.14.2.5  ADC Continuous Triggering (adc_soc_continuous)
        6. 15.14.2.6  ADC Continuous Conversions Read by DMA (adc_soc_continuous_dma)
        7. 15.14.2.7  ADC PPB Offset (adc_ppb_offset)
        8. 15.14.2.8  ADC PPB Limits (adc_ppb_limits)
        9. 15.14.2.9  ADC PPB Delay Capture (adc_ppb_delay)
        10. 15.14.2.10 ADC ePWM Triggering Multiple SOC
        11. 15.14.2.11 ADC Burst Mode
        12. 15.14.2.12 ADC Burst Mode Oversampling
        13. 15.14.2.13 ADC SOC Oversampling
        14. 15.14.2.14 ADC PPB PWM trip (adc_ppb_pwm_trip)
        15. 15.14.2.15 ADC Trigger Repeater Oversampling
        16. 15.14.2.16 ADC Trigger Repeater Undersampling
    15. 15.15 ADC Registers
      1. 15.15.1 ADC Base Address Table
      2. 15.15.2 ADC_RESULT_REGS Registers
      3. 15.15.3 ADC_REGS Registers
  18. 16Buffered Digital-to-Analog Converter (DAC)
    1. 16.1 Introduction
      1. 16.1.1 DAC Related Collateral
      2. 16.1.2 Features
      3. 16.1.3 Block Diagram
    2. 16.2 Using the DAC
      1. 16.2.1 Initialization Sequence
      2. 16.2.2 DAC Offset Adjustment
      3. 16.2.3 EPWMSYNCPER Signal
    3. 16.3 Lock Registers
    4. 16.4 Software
      1. 16.4.1 DAC Registers to Driverlib Functions
      2. 16.4.2 DAC Examples
        1. 16.4.2.1 Buffered DAC Enable
        2. 16.4.2.2 Buffered DAC Random
        3. 16.4.2.3 Buffered DAC Sine (buffdac_sine)
    5. 16.5 DAC Registers
      1. 16.5.1 DAC Base Address Table
      2. 16.5.2 DAC_REGS Registers
  19. 17Comparator Subsystem (CMPSS)
    1. 17.1 Introduction
      1. 17.1.1 CMPSS Related Collateral
      2. 17.1.2 Features
      3. 17.1.3 Block Diagram
    2. 17.2 Comparator
    3. 17.3 Reference DAC
    4. 17.4 Ramp Generator
      1. 17.4.1 Ramp Generator Overview
      2. 17.4.2 Ramp Generator Behavior
      3. 17.4.3 Ramp Generator Behavior at Corner Cases
    5. 17.5 Digital Filter
      1. 17.5.1 Filter Initialization Sequence
    6. 17.6 Using the CMPSS
      1. 17.6.1 LATCHCLR, EPWMSYNCPER, and EPWMBLANK Signals
      2. 17.6.2 Synchronizer, Digital Filter, and Latch Delays
      3. 17.6.3 Calibrating the CMPSS
      4. 17.6.4 Enabling and Disabling the CMPSS Clock
    7. 17.7 CMPSS DAC Output
    8. 17.8 Software
      1. 17.8.1 CMPSS Registers to Driverlib Functions
      2. 17.8.2 CMPSS Examples
        1. 17.8.2.1 CMPSS Asynchronous Trip
        2. 17.8.2.2 CMPSS Digital Filter Configuration
    9. 17.9 CMPSS Registers
      1. 17.9.1 CMPSS Base Address Table
      2. 17.9.2 CMPSS_REGS Registers
  20. 18Programmable Gain Amplifier (PGA)
    1. 18.1  Programmable Gain Amplifier (PGA) Overview
      1. 18.1.1 Features
      2. 18.1.2 Block Diagram
    2. 18.2  Linear Output Range
    3. 18.3  Gain Values
    4. 18.4  Modes of Operation
      1. 18.4.1 Buffer Mode
      2. 18.4.2 Standalone Mode
      3. 18.4.3 Non-inverting Mode
      4. 18.4.4 Subtractor Mode
    5. 18.5  External Filtering
      1. 18.5.1 Low-Pass Filter Using Internal Filter Resistor and External Capacitor
      2. 18.5.2 Single Pole Low-Pass Filter Using Internal Gain Resistor and External Capacitor
    6. 18.6  Error Calibration
      1. 18.6.1 Offset Error
      2. 18.6.2 Gain Error
    7. 18.7  Chopping Feature
    8. 18.8  Enabling and Disabling the PGA Clock
    9. 18.9  Lock Register
    10. 18.10 Analog Front-End Integration
      1. 18.10.1 Buffered DAC
      2. 18.10.2 Analog-to-Digital Converter (ADC)
        1. 18.10.2.1 Unfiltered Acquisition Window
        2. 18.10.2.2 Filtered Acquisition Window
      3. 18.10.3 Comparator Subsystem (CMPSS)
      4. 18.10.4 PGA_NEG_SHARED Feature
      5. 18.10.5 Alternate Functions
    11. 18.11 Examples
      1. 18.11.1 Non-Inverting Amplifier Using Non-Inverting Mode
      2. 18.11.2 Buffer Mode
      3. 18.11.3 Low-Side Current Sensing
      4. 18.11.4 Bidirectional Current Sensing
    12. 18.12 Software
      1. 18.12.1 PGA Registers to Driverlib Functions
      2. 18.12.2 PGA Examples
        1. 18.12.2.1 PGA DAC-ADC External Loopback Example
    13. 18.13 PGA Registers
      1. 18.13.1 PGA Base Address Table
      2. 18.13.2 PGA_REGS Registers
  21. 19Enhanced Pulse Width Modulator (ePWM)
    1. 19.1  Introduction
      1. 19.1.1 EPWM Related Collateral
      2. 19.1.2 Submodule Overview
    2. 19.2  Configuring Device Pins
    3. 19.3  ePWM Modules Overview
    4. 19.4  Time-Base (TB) Submodule
      1. 19.4.1 Purpose of the Time-Base Submodule
      2. 19.4.2 Controlling and Monitoring the Time-Base Submodule
      3. 19.4.3 Calculating PWM Period and Frequency
        1. 19.4.3.1 Time-Base Period Shadow Register
        2. 19.4.3.2 Time-Base Clock Synchronization
        3. 19.4.3.3 Time-Base Counter Synchronization
        4. 19.4.3.4 ePWM SYNC Selection
      4. 19.4.4 Phase Locking the Time-Base Clocks of Multiple ePWM Modules
      5. 19.4.5 Simultaneous Writes to TBPRD and CMPx Registers Between ePWM Modules
      6. 19.4.6 Time-Base Counter Modes and Timing Waveforms
      7. 19.4.7 Global Load
        1. 19.4.7.1 Global Load Pulse Pre-Scalar
        2. 19.4.7.2 One-Shot Load Mode
        3. 19.4.7.3 One-Shot Sync Mode
    5. 19.5  Counter-Compare (CC) Submodule
      1. 19.5.1 Purpose of the Counter-Compare Submodule
      2. 19.5.2 Controlling and Monitoring the Counter-Compare Submodule
      3. 19.5.3 Operational Highlights for the Counter-Compare Submodule
      4. 19.5.4 Count Mode Timing Waveforms
    6. 19.6  Action-Qualifier (AQ) Submodule
      1. 19.6.1 Purpose of the Action-Qualifier Submodule
      2. 19.6.2 Action-Qualifier Submodule Control and Status Register Definitions
      3. 19.6.3 Action-Qualifier Event Priority
      4. 19.6.4 AQCTLA and AQCTLB Shadow Mode Operations
      5. 19.6.5 Configuration Requirements for Common Waveforms
    7. 19.7  Dead-Band Generator (DB) Submodule
      1. 19.7.1 Purpose of the Dead-Band Submodule
      2. 19.7.2 Dead-band Submodule Additional Operating Modes
      3. 19.7.3 Operational Highlights for the Dead-Band Submodule
    8. 19.8  PWM Chopper (PC) Submodule
      1. 19.8.1 Purpose of the PWM Chopper Submodule
      2. 19.8.2 Operational Highlights for the PWM Chopper Submodule
      3. 19.8.3 Waveforms
        1. 19.8.3.1 One-Shot Pulse
        2. 19.8.3.2 Duty Cycle Control
    9. 19.9  Trip-Zone (TZ) Submodule
      1. 19.9.1 Purpose of the Trip-Zone Submodule
      2. 19.9.2 Operational Highlights for the Trip-Zone Submodule
        1. 19.9.2.1 Trip-Zone Configurations
      3. 19.9.3 Generating Trip Event Interrupts
    10. 19.10 Event-Trigger (ET) Submodule
      1. 19.10.1 Operational Overview of the ePWM Event-Trigger Submodule
    11. 19.11 Digital Compare (DC) Submodule
      1. 19.11.1 Purpose of the Digital Compare Submodule
      2. 19.11.2 Enhanced Trip Action Using CMPSS
      3. 19.11.3 Using CMPSS to Trip the ePWM on a Cycle-by-Cycle Basis
      4. 19.11.4 Operation Highlights of the Digital Compare Submodule
        1. 19.11.4.1 Digital Compare Events
        2. 19.11.4.2 Event Filtering
        3. 19.11.4.3 Valley Switching
    12. 19.12 ePWM Crossbar (X-BAR)
    13. 19.13 Applications to Power Topologies
      1. 19.13.1  Overview of Multiple Modules
      2. 19.13.2  Key Configuration Capabilities
      3. 19.13.3  Controlling Multiple Buck Converters With Independent Frequencies
      4. 19.13.4  Controlling Multiple Buck Converters With Same Frequencies
      5. 19.13.5  Controlling Multiple Half H-Bridge (HHB) Converters
      6. 19.13.6  Controlling Dual 3-Phase Inverters for Motors (ACI and PMSM)
      7. 19.13.7  Practical Applications Using Phase Control Between PWM Modules
      8. 19.13.8  Controlling a 3-Phase Interleaved DC/DC Converter
      9. 19.13.9  Controlling Zero Voltage Switched Full Bridge (ZVSFB) Converter
      10. 19.13.10 Controlling a Peak Current Mode Controlled Buck Module
      11. 19.13.11 Controlling H-Bridge LLC Resonant Converter
    14. 19.14 Register Lock Protection
    15. 19.15 High-Resolution Pulse Width Modulator (HRPWM)
      1. 19.15.1 Operational Description of HRPWM
        1. 19.15.1.1 Controlling the HRPWM Capabilities
        2. 19.15.1.2 HRPWM Source Clock
        3. 19.15.1.3 Configuring the HRPWM
        4. 19.15.1.4 Configuring High-Resolution in Deadband Rising-Edge and Falling-Edge Delay
        5. 19.15.1.5 Principle of Operation
          1. 19.15.1.5.1 Edge Positioning
          2. 19.15.1.5.2 Scaling Considerations
          3. 19.15.1.5.3 Duty Cycle Range Limitation
          4. 19.15.1.5.4 High-Resolution Period
            1. 19.15.1.5.4.1 High-Resolution Period Configuration
        6. 19.15.1.6 Deadband High-Resolution Operation
        7. 19.15.1.7 Scale Factor Optimizing Software (SFO)
        8. 19.15.1.8 HRPWM Examples Using Optimized Assembly Code
          1. 19.15.1.8.1 #Defines for HRPWM Header Files
          2. 19.15.1.8.2 Implementing a Simple Buck Converter
            1. 19.15.1.8.2.1 HRPWM Buck Converter Initialization Code
            2. 19.15.1.8.2.2 HRPWM Buck Converter Run-Time Code
          3. 19.15.1.8.3 Implementing a DAC Function Using an R+C Reconstruction Filter
            1. 19.15.1.8.3.1 PWM DAC Function Initialization Code
            2. 19.15.1.8.3.2 PWM DAC Function Run-Time Code
      2. 19.15.2 SFO Library Software - SFO_TI_Build_V8.lib
        1. 19.15.2.1 Scale Factor Optimizer Function - int SFO()
        2. 19.15.2.2 Software Usage
          1. 19.15.2.2.1 A Sample of How to Add "Include" Files
          2.        925
          3. 19.15.2.2.2 Declaring an Element
          4.        927
          5. 19.15.2.2.3 Initializing With a Scale Factor Value
          6.        929
          7. 19.15.2.2.4 SFO Function Calls
    16. 19.16 Software
      1. 19.16.1 EPWM Registers to Driverlib Functions
      2. 19.16.2 HRPWM Registers to Driverlib Functions
      3. 19.16.3 EPWM Examples
        1. 19.16.3.1  ePWM Trip Zone
        2. 19.16.3.2  ePWM Up Down Count Action Qualifier
        3. 19.16.3.3  ePWM Synchronization
        4. 19.16.3.4  ePWM Digital Compare
        5. 19.16.3.5  ePWM Digital Compare Event Filter Blanking Window
        6. 19.16.3.6  ePWM Valley Switching
        7. 19.16.3.7  ePWM Digital Compare Edge Filter
        8. 19.16.3.8  ePWM Deadband
        9. 19.16.3.9  ePWM DMA
        10. 19.16.3.10 ePWM Chopper
        11. 19.16.3.11 EPWM Configure Signal
        12. 19.16.3.12 Realization of Monoshot mode
        13. 19.16.3.13 EPWM Action Qualifier (epwm_up_aq)
      4. 19.16.4 HRPWM Examples
        1. 19.16.4.1 HRPWM Duty Control with SFO
        2. 19.16.4.2 HRPWM Slider
        3. 19.16.4.3 HRPWM Period Control
        4. 19.16.4.4 HRPWM Duty Control with UPDOWN Mode
        5. 19.16.4.5 HRPWM Slider Test
        6. 19.16.4.6 HRPWM Duty Up Count
        7. 19.16.4.7 HRPWM Period Up-Down Count
    17. 19.17 EPWM Registers
      1. 19.17.1 EPWM Base Address Table
      2. 19.17.2 EPWM_REGS Registers
  22. 20Enhanced Capture (eCAP)
    1. 20.1 Introduction
      1. 20.1.1 Features
      2. 20.1.2 ECAP Related Collateral
    2. 20.2 Description
    3. 20.3 Configuring Device Pins for the eCAP
    4. 20.4 Capture and APWM Operating Mode
    5. 20.5 Capture Mode Description
      1. 20.5.1  Event Prescaler
      2. 20.5.2  Edge Polarity Select and Qualifier
      3. 20.5.3  Continuous/One-Shot Control
      4. 20.5.4  32-Bit Counter and Phase Control
      5. 20.5.5  CAP1-CAP4 Registers
      6. 20.5.6  eCAP Synchronization
        1. 20.5.6.1 Example 1 - Using SWSYNC with ECAP Module
      7. 20.5.7  Interrupt Control
      8. 20.5.8  DMA Interrupt
      9. 20.5.9  Shadow Load and Lockout Control
      10. 20.5.10 APWM Mode Operation
    6. 20.6 Application of the eCAP Module
      1. 20.6.1 Example 1 - Absolute Time-Stamp Operation Rising-Edge Trigger
      2. 20.6.2 Example 2 - Absolute Time-Stamp Operation Rising- and Falling-Edge Trigger
      3. 20.6.3 Example 3 - Time Difference (Delta) Operation Rising-Edge Trigger
      4. 20.6.4 Example 4 - Time Difference (Delta) Operation Rising- and Falling-Edge Trigger
    7. 20.7 Application of the APWM Mode
      1. 20.7.1 Example 1 - Simple PWM Generation (Independent Channels)
    8. 20.8 Software
      1. 20.8.1 ECAP Registers to Driverlib Functions
      2. 20.8.2 ECAP Examples
        1. 20.8.2.1 eCAP APWM Example
        2. 20.8.2.2 eCAP Capture PWM Example
        3. 20.8.2.3 eCAP APWM Phase-shift Example
    9. 20.9 ECAP Registers
      1. 20.9.1 ECAP Base Address Table
      2. 20.9.2 ECAP_REGS Registers
  23. 21Enhanced Quadrature Encoder Pulse (eQEP)
    1. 21.1  Introduction
      1. 21.1.1 EQEP Related Collateral
    2. 21.2  Configuring Device Pins
    3. 21.3  Description
      1. 21.3.1 EQEP Inputs
      2. 21.3.2 Functional Description
      3. 21.3.3 eQEP Memory Map
    4. 21.4  Quadrature Decoder Unit (QDU)
      1. 21.4.1 Position Counter Input Modes
        1. 21.4.1.1 Quadrature Count Mode
        2. 21.4.1.2 Direction-Count Mode
        3. 21.4.1.3 Up-Count Mode
        4. 21.4.1.4 Down-Count Mode
      2. 21.4.2 eQEP Input Polarity Selection
      3. 21.4.3 Position-Compare Sync Output
    5. 21.5  Position Counter and Control Unit (PCCU)
      1. 21.5.1 Position Counter Operating Modes
        1. 21.5.1.1 Position Counter Reset on Index Event (QEPCTL[PCRM] = 00)
        2. 21.5.1.2 Position Counter Reset on Maximum Position (QEPCTL[PCRM] = 01)
        3. 21.5.1.3 Position Counter Reset on the First Index Event (QEPCTL[PCRM] = 10)
        4. 21.5.1.4 Position Counter Reset on Unit Time-out Event (QEPCTL[PCRM] = 11)
      2. 21.5.2 Position Counter Latch
        1. 21.5.2.1 Index Event Latch
        2. 21.5.2.2 Strobe Event Latch
      3. 21.5.3 Position Counter Initialization
      4. 21.5.4 eQEP Position-compare Unit
    6. 21.6  eQEP Edge Capture Unit
    7. 21.7  eQEP Watchdog
    8. 21.8  eQEP Unit Timer Base
    9. 21.9  QMA Module
      1. 21.9.1 Modes of Operation
        1. 21.9.1.1 QMA Mode-1 (QMACTRL[MODE] = 1)
        2. 21.9.1.2 QMA Mode-2 (QMACTRL[MODE] = 2)
      2. 21.9.2 Interrupt and Error Generation
    10. 21.10 eQEP Interrupt Structure
    11. 21.11 Software
      1. 21.11.1 EQEP Registers to Driverlib Functions
      2. 21.11.2 EQEP Examples
        1. 21.11.2.1 Frequency Measurement Using eQEP
        2. 21.11.2.2 Position and Speed Measurement Using eQEP
        3. 21.11.2.3 Frequency Measurement Using eQEP via unit timeout interrupt
        4. 21.11.2.4 Motor speed and direction measurement using eQEP via unit timeout interrupt
    12. 21.12 EQEP Registers
      1. 21.12.1 EQEP Base Address Table
      2. 21.12.2 EQEP_REGS Registers
  24. 22Serial Peripheral Interface (SPI)
    1. 22.1 Introduction
      1. 22.1.1 Features
      2. 22.1.2 SPI Related Collateral
      3. 22.1.3 Block Diagram
    2. 22.2 System-Level Integration
      1. 22.2.1 SPI Module Signals
      2. 22.2.2 Configuring Device Pins
        1. 22.2.2.1 GPIOs Required for High-Speed Mode
      3. 22.2.3 SPI Interrupts
      4. 22.2.4 DMA Support
    3. 22.3 SPI Operation
      1. 22.3.1  Introduction to Operation
      2. 22.3.2  Controller Mode
      3. 22.3.3  Peripheral Mode
      4. 22.3.4  Data Format
        1. 22.3.4.1 Transmission of Bit from SPIRXBUF
      5. 22.3.5  Baud Rate Selection
        1. 22.3.5.1 Baud Rate Determination
        2. 22.3.5.2 Baud Rate Calculation in Non-High Speed Mode (HS_MODE = 0)
      6. 22.3.6  SPI Clocking Schemes
      7. 22.3.7  SPI FIFO Description
      8. 22.3.8  SPI DMA Transfers
        1. 22.3.8.1 Transmitting Data Using SPI with DMA
        2. 22.3.8.2 Receiving Data Using SPI with DMA
      9. 22.3.9  SPI High-Speed Mode
      10. 22.3.10 SPI 3-Wire Mode Description
    4. 22.4 Programming Procedure
      1. 22.4.1 Initialization Upon Reset
      2. 22.4.2 Configuring the SPI
      3. 22.4.3 Configuring the SPI for High-Speed Mode
      4. 22.4.4 Data Transfer Example
      5. 22.4.5 SPI 3-Wire Mode Code Examples
        1. 22.4.5.1 3-Wire Controller Mode Transmit
        2.       1074
          1. 22.4.5.2.1 3-Wire Controller Mode Receive
        3.       1076
          1. 22.4.5.2.1 3-Wire Peripheral Mode Transmit
        4.       1078
          1. 22.4.5.2.1 3-Wire Peripheral Mode Receive
      6. 22.4.6 SPI STEINV Bit in Digital Audio Transfers
    5. 22.5 Software
      1. 22.5.1 SPI Registers to Driverlib Functions
      2. 22.5.2 SPI Examples
        1. 22.5.2.1 SPI Digital Loopback
        2. 22.5.2.2 SPI Digital Loopback with FIFO Interrupts
        3. 22.5.2.3 SPI Digital External Loopback without FIFO Interrupts
        4. 22.5.2.4 SPI Digital External Loopback with FIFO Interrupts
        5. 22.5.2.5 SPI Digital Loopback with DMA
        6. 22.5.2.6 SPI EEPROM
        7. 22.5.2.7 SPI DMA EEPROM
    6. 22.6 SPI Registers
      1. 22.6.1 SPI Base Address Table
      2. 22.6.2 SPI_REGS Registers
  25. 23Serial Communications Interface (SCI)
    1. 23.1  Introduction
      1. 23.1.1 Features
      2. 23.1.2 SCI Related Collateral
      3. 23.1.3 Block Diagram
    2. 23.2  Architecture
    3. 23.3  SCI Module Signal Summary
    4. 23.4  Configuring Device Pins
    5. 23.5  Multiprocessor and Asynchronous Communication Modes
    6. 23.6  SCI Programmable Data Format
    7. 23.7  SCI Multiprocessor Communication
      1. 23.7.1 Recognizing the Address Byte
      2. 23.7.2 Controlling the SCI TX and RX Features
      3. 23.7.3 Receipt Sequence
    8. 23.8  Idle-Line Multiprocessor Mode
      1. 23.8.1 Idle-Line Mode Steps
      2. 23.8.2 Block Start Signal
      3. 23.8.3 Wake-Up Temporary (WUT) Flag
        1. 23.8.3.1 Sending a Block Start Signal
      4. 23.8.4 Receiver Operation
    9. 23.9  Address-Bit Multiprocessor Mode
      1. 23.9.1 Sending an Address
    10. 23.10 SCI Communication Format
      1. 23.10.1 Receiver Signals in Communication Modes
      2. 23.10.2 Transmitter Signals in Communication Modes
    11. 23.11 SCI Port Interrupts
      1. 23.11.1 Break Detect
    12. 23.12 SCI Baud Rate Calculations
    13. 23.13 SCI Enhanced Features
      1. 23.13.1 SCI FIFO Description
      2. 23.13.2 SCI Auto-Baud
      3. 23.13.3 Autobaud-Detect Sequence
    14. 23.14 Software
      1. 23.14.1 SCI Registers to Driverlib Functions
      2. 23.14.2 SCI Examples
        1. 23.14.2.1 Tune Baud Rate via UART Example
        2. 23.14.2.2 SCI FIFO Digital Loop Back
        3. 23.14.2.3 SCI Digital Loop Back with Interrupts
        4. 23.14.2.4 SCI Echoback
        5. 23.14.2.5 stdout redirect example
    15. 23.15 SCI Registers
      1. 23.15.1 SCI Base Address Table
      2. 23.15.2 SCI_REGS Registers
  26. 24Universal Serial Bus (USB) Controller
    1. 24.1 Introduction
      1. 24.1.1 Features
      2. 24.1.2 USB Related Collateral
      3. 24.1.3 Block Diagram
        1. 24.1.3.1 Signal Description
        2. 24.1.3.2 VBus Recommendations
    2. 24.2 Functional Description
      1. 24.2.1 Operation as a Device
        1. 24.2.1.1 Control and Configurable Endpoints
          1. 24.2.1.1.1 IN Transactions as a Device
          2. 24.2.1.1.2 Out Transactions as a Device
          3. 24.2.1.1.3 Scheduling
          4. 24.2.1.1.4 Additional Actions
          5. 24.2.1.1.5 Device Mode Suspend
          6. 24.2.1.1.6 Start of Frame
          7. 24.2.1.1.7 USB Reset
          8. 24.2.1.1.8 Connect/Disconnect
      2. 24.2.2 Operation as a Host
        1. 24.2.2.1 Endpoint Registers
        2. 24.2.2.2 IN Transactions as a Host
        3. 24.2.2.3 OUT Transactions as a Host
        4. 24.2.2.4 Transaction Scheduling
        5. 24.2.2.5 USB Hubs
        6. 24.2.2.6 Babble
        7. 24.2.2.7 Host SUSPEND
        8. 24.2.2.8 USB RESET
        9. 24.2.2.9 Connect/Disconnect
      3. 24.2.3 DMA Operation
      4. 24.2.4 Address/Data Bus Bridge
    3. 24.3 Initialization and Configuration
      1. 24.3.1 Pin Configuration
      2. 24.3.2 Endpoint Configuration
    4. 24.4 USB Global Interrupts
    5. 24.5 Software
      1. 24.5.1 USB Registers to Driverlib Functions
      2. 24.5.2 USB Examples
        1. 24.5.2.1  USB CDC serial example
        2. 24.5.2.2  USB HID Mouse Device
        3. 24.5.2.3  USB Device Keyboard
        4. 24.5.2.4  USB Generic Bulk Device
        5. 24.5.2.5  USB HID Mouse Host
        6. 24.5.2.6  USB HID Keyboard Host
        7. 24.5.2.7  USB Mass Storage Class Host
        8. 24.5.2.8  USB Dual Detect
        9. 24.5.2.9  USB Throughput Bulk Device Example (usb_ex9_throughput_dev_bulk)
        10. 24.5.2.10 USB HUB Host example
    6. 24.6 USB Registers
      1. 24.6.1 USB Base Address Table
      2. 24.6.2 USB_REGS Registers
  27. 25Fast Serial Interface (FSI)
    1. 25.1 Introduction
      1. 25.1.1 FSI Related Collateral
      2. 25.1.2 FSI Features
    2. 25.2 System-level Integration
      1. 25.2.1 CPU Interface
      2. 25.2.2 Signal Description
        1. 25.2.2.1 Configuring Device Pins
      3. 25.2.3 FSI Interrupts
        1. 25.2.3.1 Transmitter Interrupts
        2. 25.2.3.2 Receiver Interrupts
        3. 25.2.3.3 Configuring Interrupts
        4. 25.2.3.4 Handling Interrupts
      4. 25.2.4 CLA Task Triggering
      5. 25.2.5 DMA Interface
      6. 25.2.6 External Frame Trigger Mux
    3. 25.3 FSI Functional Description
      1. 25.3.1  Introduction to Operation
      2. 25.3.2  FSI Transmitter Module
        1. 25.3.2.1 Initialization
        2. 25.3.2.2 FSI_TX Clocking
        3. 25.3.2.3 Transmitting Frames
          1. 25.3.2.3.1 Software Triggered Frames
          2. 25.3.2.3.2 Externally Triggered Frames
          3. 25.3.2.3.3 Ping Frame Generation
            1. 25.3.2.3.3.1 Automatic Ping Frames
            2. 25.3.2.3.3.2 Software Triggered Ping Frame
            3. 25.3.2.3.3.3 Externally Triggered Ping Frame
          4. 25.3.2.3.4 Transmitting Frames with DMA
        4. 25.3.2.4 Transmit Buffer Management
        5. 25.3.2.5 CRC Submodule
        6. 25.3.2.6 Conditions in Which the Transmitter Must Undergo a Soft Reset
        7. 25.3.2.7 Reset
      3. 25.3.3  FSI Receiver Module
        1. 25.3.3.1  Initialization
        2. 25.3.3.2  FSI_RX Clocking
        3. 25.3.3.3  Receiving Frames
          1. 25.3.3.3.1 Receiving Frames with DMA
        4. 25.3.3.4  Ping Frame Watchdog
        5. 25.3.3.5  Frame Watchdog
        6. 25.3.3.6  Delay Line Control
        7. 25.3.3.7  Buffer Management
        8. 25.3.3.8  CRC Submodule
        9. 25.3.3.9  Using the Zero Bits of the Receiver Tag Registers
        10. 25.3.3.10 Conditions in Which the Receiver Must Undergo a Soft Reset
        11. 25.3.3.11 FSI_RX Reset
      4. 25.3.4  Frame Format
        1. 25.3.4.1 FSI Frame Phases
        2. 25.3.4.2 Frame Types
          1. 25.3.4.2.1 Ping Frames
          2. 25.3.4.2.2 Error Frames
          3. 25.3.4.2.3 Data Frames
        3. 25.3.4.3 Multi-Lane Transmission
      5. 25.3.5  Flush Sequence
      6. 25.3.6  Internal Loopback
      7. 25.3.7  CRC Generation
      8. 25.3.8  ECC Module
      9. 25.3.9  Tag Matching
      10. 25.3.10 User Data Filtering (UDATA Matching)
      11. 25.3.11 TDM Configurations
      12. 25.3.12 FSI Trigger Generation
      13. 25.3.13 FSI-SPI Compatibility Mode
        1. 25.3.13.1 Available SPI Modes
          1. 25.3.13.1.1 FSITX as SPI Controller, Transmit Only
            1. 25.3.13.1.1.1 Initialization
            2. 25.3.13.1.1.2 Operation
          2. 25.3.13.1.2 FSIRX as SPI Peripheral, Receive Only
            1. 25.3.13.1.2.1 Initialization
            2. 25.3.13.1.2.2 Operation
          3. 25.3.13.1.3 FSITX and FSIRX Emulating a Full Duplex SPI Controller
            1. 25.3.13.1.3.1 Initialization
            2. 25.3.13.1.3.2 Operation
    4. 25.4 FSI Programing Guide
      1. 25.4.1 Establishing the Communication Link
        1. 25.4.1.1 Establishing the Communication Link from the Main Device
        2. 25.4.1.2 Establishing the Communication Link from the Remote Device
      2. 25.4.2 Register Protection
      3. 25.4.3 Emulation Mode
    5. 25.5 Software
      1. 25.5.1 FSI Registers to Driverlib Functions
      2. 25.5.2 FSI Examples
        1. 25.5.2.1 FSI Loopback:CPU Control
        2. 25.5.2.2 FSI DMA frame transfers:DMA Control
        3. 25.5.2.3 FSI data transfer by external trigger
        4. 25.5.2.4 FSI data transfers upon CPU Timer event
        5. 25.5.2.5 FSI and SPI communication(fsi_ex6_spi_main_tx)
        6. 25.5.2.6 FSI and SPI communication(fsi_ex7_spi_remote_rx)
        7. 25.5.2.7 FSI P2Point Connection:Rx Side
        8. 25.5.2.8 FSI P2Point Connection:Tx Side
    6. 25.6 FSI Registers
      1. 25.6.1 FSI Base Address Table
      2. 25.6.2 FSI_TX_REGS Registers
      3. 25.6.3 FSI_RX_REGS Registers
  28. 26Inter-Integrated Circuit Module (I2C)
    1. 26.1 Introduction
      1. 26.1.1 I2C Related Collateral
      2. 26.1.2 Features
      3. 26.1.3 Features Not Supported
      4. 26.1.4 Functional Overview
      5. 26.1.5 Clock Generation
      6. 26.1.6 I2C Clock Divider Registers (I2CCLKL and I2CCLKH)
        1. 26.1.6.1 Formula for the Controller Clock Period
    2. 26.2 Configuring Device Pins
    3. 26.3 I2C Module Operational Details
      1. 26.3.1  Input and Output Voltage Levels
      2. 26.3.2  Selecting Pullup Resistors
      3. 26.3.3  Data Validity
      4. 26.3.4  Operating Modes
      5. 26.3.5  I2C Module START and STOP Conditions
      6. 26.3.6  Non-repeat Mode versus Repeat Mode
      7. 26.3.7  Serial Data Formats
        1. 26.3.7.1 7-Bit Addressing Format
        2. 26.3.7.2 10-Bit Addressing Format
        3. 26.3.7.3 Free Data Format
        4. 26.3.7.4 Using a Repeated START Condition
      8. 26.3.8  Clock Synchronization
      9. 26.3.9  Clock Stretching
      10. 26.3.10 Arbitration
      11. 26.3.11 Digital Loopback Mode
      12. 26.3.12 NACK Bit Generation
    4. 26.4 Interrupt Requests Generated by the I2C Module
      1. 26.4.1 Basic I2C Interrupt Requests
      2. 26.4.2 I2C FIFO Interrupts
    5. 26.5 Resetting or Disabling the I2C Module
    6. 26.6 Software
      1. 26.6.1 I2C Registers to Driverlib Functions
      2. 26.6.2 I2C Examples
        1. 26.6.2.1  C28x-I2C Library source file for FIFO interrupts
        2. 26.6.2.2  C28x-I2C Library source file for FIFO interrupts
        3. 26.6.2.3  C28x-I2C Library source file for FIFO using polling
        4. 26.6.2.4  I2C Digital Loopback with FIFO Interrupts
        5. 26.6.2.5  I2C EEPROM
        6. 26.6.2.6  I2C Digital External Loopback with FIFO Interrupts
        7. 26.6.2.7  I2C EEPROM
        8. 26.6.2.8  I2C controller target communication using FIFO interrupts
        9. 26.6.2.9  I2C EEPROM
        10. 26.6.2.10 I2C Extended Clock Stretching Controller TX
        11. 26.6.2.11 I2C Extended Clock Stretching Target RX
    7. 26.7 I2C Registers
      1. 26.7.1 I2C Base Address Table
      2. 26.7.2 I2C_REGS Registers
  29. 27Power Management Bus Module (PMBus)
    1. 27.1 Introduction
      1. 27.1.1 PMBUS Related Collateral
      2. 27.1.2 Features
      3. 27.1.3 Block Diagram
    2. 27.2 Configuring Device Pins
    3. 27.3 Target Mode Operation
      1. 27.3.1 Configuration
      2. 27.3.2 Message Handling
        1. 27.3.2.1  Quick Command
        2. 27.3.2.2  Send Byte
        3. 27.3.2.3  Receive Byte
        4. 27.3.2.4  Write Byte and Write Word
        5. 27.3.2.5  Read Byte and Read Word
        6. 27.3.2.6  Process Call
        7. 27.3.2.7  Block Write
        8. 27.3.2.8  Block Read
        9. 27.3.2.9  Block Write-Block Read Process Call
        10. 27.3.2.10 Alert Response
        11. 27.3.2.11 Extended Command
        12. 27.3.2.12 Group Command
    4. 27.4 Controller Mode Operation
      1. 27.4.1 Configuration
      2. 27.4.2 Message Handling
        1. 27.4.2.1  Quick Command
        2. 27.4.2.2  Send Byte
        3. 27.4.2.3  Receive Byte
        4. 27.4.2.4  Write Byte and Write Word
        5. 27.4.2.5  Read Byte and Read Word
        6. 27.4.2.6  Process Call
        7. 27.4.2.7  Block Write
        8. 27.4.2.8  Block Read
        9. 27.4.2.9  Block Write-Block Read Process Call
        10. 27.4.2.10 Alert Response
        11. 27.4.2.11 Extended Command
        12. 27.4.2.12 Group Command
    5. 27.5 Software
      1. 27.5.1 PMBUS Registers to Driverlib Functions
    6. 27.6 PMBUS Registers
      1. 27.6.1 PMBUS Base Address Table
      2. 27.6.2 PMBUS_REGS Registers
  30. 28Modular Controller Area Network (MCAN)
    1. 28.1 MCAN Introduction
      1. 28.1.1 MCAN Related Collateral
      2. 28.1.2 MCAN Features
    2. 28.2 MCAN Environment
    3. 28.3 CAN Network Basics
    4. 28.4 MCAN Integration
    5. 28.5 MCAN Functional Description
      1. 28.5.1  Module Clocking Requirements
      2. 28.5.2  Interrupt Requests
      3. 28.5.3  Operating Modes
        1. 28.5.3.1 Software Initialization
        2. 28.5.3.2 Normal Operation
        3. 28.5.3.3 CAN FD Operation
      4. 28.5.4  Transmitter Delay Compensation
        1. 28.5.4.1 Description
        2. 28.5.4.2 Transmitter Delay Compensation Measurement
      5. 28.5.5  Restricted Operation Mode
      6. 28.5.6  Bus Monitoring Mode
      7. 28.5.7  Disabled Automatic Retransmission (DAR) Mode
        1. 28.5.7.1 Frame Transmission in DAR Mode
      8. 28.5.8  Clock Stop Mode
        1. 28.5.8.1 Suspend Mode
        2. 28.5.8.2 Wakeup Request
      9. 28.5.9  Test Modes
        1. 28.5.9.1 External Loop Back Mode
        2. 28.5.9.2 Internal Loop Back Mode
      10. 28.5.10 Timestamp Generation
        1. 28.5.10.1 External Timestamp Counter
      11. 28.5.11 Timeout Counter
      12. 28.5.12 Safety
        1. 28.5.12.1 ECC Wrapper
        2. 28.5.12.2 ECC Aggregator
          1. 28.5.12.2.1 ECC Aggregator Overview
          2. 28.5.12.2.2 ECC Aggregator Registers
        3. 28.5.12.3 Reads to ECC Control and Status Registers
        4. 28.5.12.4 ECC Interrupts
      13. 28.5.13 Rx Handling
        1. 28.5.13.1 Acceptance Filtering
          1. 28.5.13.1.1 Range Filter
          2. 28.5.13.1.2 Filter for Specific IDs
          3. 28.5.13.1.3 Classic Bit Mask Filter
          4. 28.5.13.1.4 Standard Message ID Filtering
          5. 28.5.13.1.5 Extended Message ID Filtering
        2. 28.5.13.2 Rx FIFOs
          1. 28.5.13.2.1 Rx FIFO Blocking Mode
          2. 28.5.13.2.2 Rx FIFO Overwrite Mode
        3. 28.5.13.3 Dedicated Rx Buffers
          1. 28.5.13.3.1 Rx Buffer Handling
      14. 28.5.14 Tx Handling
        1. 28.5.14.1 Transmit Pause
        2. 28.5.14.2 Dedicated Tx Buffers
        3. 28.5.14.3 Tx FIFO
        4. 28.5.14.4 Tx Queue
        5. 28.5.14.5 Mixed Dedicated Tx Buffers/Tx FIFO
        6. 28.5.14.6 Mixed Dedicated Tx Buffers/Tx Queue
        7. 28.5.14.7 Transmit Cancellation
        8. 28.5.14.8 Tx Event Handling
      15. 28.5.15 FIFO Acknowledge Handling
      16. 28.5.16 Message RAM
        1. 28.5.16.1 Message RAM Configuration
        2. 28.5.16.2 Rx Buffer and FIFO Element
        3. 28.5.16.3 Tx Buffer Element
        4. 28.5.16.4 Tx Event FIFO Element
        5. 28.5.16.5 Standard Message ID Filter Element
        6. 28.5.16.6 Extended Message ID Filter Element
    6. 28.6 Software
      1. 28.6.1 MCAN Registers to Driverlib Functions
      2. 28.6.2 MCAN Examples
        1. 28.6.2.1  MCAN Internal Loopback with Interrupt
        2. 28.6.2.2  MCAN Loopback with Interrupts Example Using SYSCONFIG Tool
        3. 28.6.2.3  MCAN receive using Rx Buffer
        4. 28.6.2.4  MCAN External Reception (with mask filter) into RX-FIFO1
        5. 28.6.2.5  MCAN Classic frames transmission using Tx Buffer
        6. 28.6.2.6  MCAN External Reception (with RANGE filter) into RX-FIFO1
        7. 28.6.2.7  MCAN External Transmit using Tx Buffer
        8. 28.6.2.8  MCAN receive using Rx Buffer
        9. 28.6.2.9  MCAN Internal Loopback with Interrupt
        10. 28.6.2.10 MCAN External Transmit using Tx Buffer
        11. 28.6.2.11 MCAN Internal Loopback with Interrupt
    7. 28.7 MCAN Registers
      1. 28.7.1 MCAN Base Address Table
      2. 28.7.2 MCANSS_REGS Registers
      3. 28.7.3 MCAN_REGS Registers
      4. 28.7.4 MCAN_ERROR_REGS Registers
  31. 29Local Interconnect Network (LIN)
    1. 29.1 LIN Overview
      1. 29.1.1 SCI Features
      2. 29.1.2 LIN Features
      3. 29.1.3 LIN Related Collateral
      4. 29.1.4 Block Diagram
    2. 29.2 Serial Communications Interface Module
      1. 29.2.1 SCI Communication Formats
        1. 29.2.1.1 SCI Frame Formats
        2. 29.2.1.2 SCI Asynchronous Timing Mode
        3. 29.2.1.3 SCI Baud Rate
          1. 29.2.1.3.1 Superfractional Divider, SCI Asynchronous Mode
        4. 29.2.1.4 SCI Multiprocessor Communication Modes
          1. 29.2.1.4.1 Idle-Line Multiprocessor Modes
          2. 29.2.1.4.2 Address-Bit Multiprocessor Mode
        5. 29.2.1.5 SCI Multibuffered Mode
      2. 29.2.2 SCI Interrupts
        1. 29.2.2.1 Transmit Interrupt
        2. 29.2.2.2 Receive Interrupt
        3. 29.2.2.3 WakeUp Interrupt
        4. 29.2.2.4 Error Interrupts
      3. 29.2.3 SCI DMA Interface
        1. 29.2.3.1 Receive DMA Requests
        2. 29.2.3.2 Transmit DMA Requests
      4. 29.2.4 SCI Configurations
        1. 29.2.4.1 Receiving Data
          1. 29.2.4.1.1 Receiving Data in Single-Buffer Mode
          2. 29.2.4.1.2 Receiving Data in Multibuffer Mode
        2. 29.2.4.2 Transmitting Data
          1. 29.2.4.2.1 Transmitting Data in Single-Buffer Mode
          2. 29.2.4.2.2 Transmitting Data in Multibuffer Mode
      5. 29.2.5 SCI Low-Power Mode
        1. 29.2.5.1 Sleep Mode for Multiprocessor Communication
    3. 29.3 Local Interconnect Network Module
      1. 29.3.1 LIN Communication Formats
        1. 29.3.1.1  LIN Standards
        2. 29.3.1.2  Message Frame
          1. 29.3.1.2.1 Message Header
          2. 29.3.1.2.2 Response
        3. 29.3.1.3  Synchronizer
        4. 29.3.1.4  Baud Rate
          1. 29.3.1.4.1 Fractional Divider
          2. 29.3.1.4.2 Superfractional Divider
            1. 29.3.1.4.2.1 Superfractional Divider In LIN Mode
        5. 29.3.1.5  Header Generation
          1. 29.3.1.5.1 Event Triggered Frame Handling
          2. 29.3.1.5.2 Header Reception and Adaptive Baud Rate
        6. 29.3.1.6  Extended Frames Handling
        7. 29.3.1.7  Timeout Control
          1. 29.3.1.7.1 No-Response Error (NRE)
          2. 29.3.1.7.2 Bus Idle Detection
          3. 29.3.1.7.3 Timeout After Wakeup Signal and Timeout After Three Wakeup Signals
        8. 29.3.1.8  TXRX Error Detector (TED)
          1. 29.3.1.8.1 Bit Errors
          2. 29.3.1.8.2 Physical Bus Errors
          3. 29.3.1.8.3 ID Parity Errors
          4. 29.3.1.8.4 Checksum Errors
        9. 29.3.1.9  Message Filtering and Validation
        10. 29.3.1.10 Receive Buffers
        11. 29.3.1.11 Transmit Buffers
      2. 29.3.2 LIN Interrupts
      3. 29.3.3 Servicing LIN Interrupts
      4. 29.3.4 LIN DMA Interface
        1. 29.3.4.1 LIN Receive DMA Requests
        2. 29.3.4.2 LIN Transmit DMA Requests
      5. 29.3.5 LIN Configurations
        1. 29.3.5.1 Receiving Data
          1. 29.3.5.1.1 Receiving Data in Single-Buffer Mode
          2. 29.3.5.1.2 Receiving Data in Multibuffer Mode
        2. 29.3.5.2 Transmitting Data
          1. 29.3.5.2.1 Transmitting Data in Single-Buffer Mode
          2. 29.3.5.2.2 Transmitting Data in Multibuffer Mode
    4. 29.4 Low-Power Mode
      1. 29.4.1 Entering Sleep Mode
      2. 29.4.2 Wakeup
      3. 29.4.3 Wakeup Timeouts
    5. 29.5 Emulation Mode
    6. 29.6 Software
      1. 29.6.1 LIN Registers to Driverlib Functions
      2. 29.6.2 LIN Examples
        1. 29.6.2.1 LIN Internal Loopback with Interrupts
        2. 29.6.2.2 LIN SCI Mode Internal Loopback with Interrupts
        3. 29.6.2.3 LIN SCI MODE Internal Loopback with DMA
        4. 29.6.2.4 LIN Internal Loopback without interrupts(polled mode)
        5. 29.6.2.5 LIN SCI MODE (Single Buffer) Internal Loopback with DMA
    7. 29.7 LIN Registers
      1. 29.7.1 LIN Base Address Table
      2. 29.7.2 LIN_REGS Registers
  32. 30Configurable Logic Block (CLB)
    1. 30.1 Introduction
      1. 30.1.1 CLB Related Collateral
    2. 30.2 Description
      1. 30.2.1 CLB Clock
    3. 30.3 CLB Input/Output Connection
      1. 30.3.1 Overview
      2. 30.3.2 CLB Input Selection
      3. 30.3.3 CLB Output Selection
      4. 30.3.4 CLB Output Signal Multiplexer
    4. 30.4 CLB Tile
      1. 30.4.1 Static Switch Block
      2. 30.4.2 Counter Block
        1. 30.4.2.1 Counter Description
        2. 30.4.2.2 Counter Operation
        3. 30.4.2.3 Serializer Mode
        4. 30.4.2.4 Linear Feedback Shift Register (LFSR) Mode
      3. 30.4.3 FSM Block
      4. 30.4.4 LUT4 Block
      5. 30.4.5 Output LUT Block
      6. 30.4.6 Asynchronous Output Conditioning (AOC) Block
      7. 30.4.7 High Level Controller (HLC)
        1. 30.4.7.1 High Level Controller Events
        2. 30.4.7.2 High Level Controller Instructions
        3. 30.4.7.3 <Src> and <Dest>
        4. 30.4.7.4 Operation of the PUSH and PULL Instructions (Overflow and Underflow Detection)
    5. 30.5 CPU Interface
      1. 30.5.1 Register Description
      2. 30.5.2 Non-Memory Mapped Registers
    6. 30.6 DMA Access
    7. 30.7 CLB Data Export Through SPI RX Buffer
    8. 30.8 Software
      1. 30.8.1 CLB Registers to Driverlib Functions
      2. 30.8.2 CLB Examples
        1. 30.8.2.1  CLB Empty Project
        2. 30.8.2.2  CLB Combinational Logic
        3. 30.8.2.3  CLB GPIO Input Filter
        4. 30.8.2.4  CLB Auxilary PWM
        5. 30.8.2.5  CLB PWM Protection
        6. 30.8.2.6  CLB Event Window
        7. 30.8.2.7  CLB Signal Generator
        8. 30.8.2.8  CLB State Machine
        9. 30.8.2.9  CLB External Signal AND Gate
        10. 30.8.2.10 CLB Timer
        11. 30.8.2.11 CLB Timer Two States
        12. 30.8.2.12 CLB Interrupt Tag
        13. 30.8.2.13 CLB Output Intersect
        14. 30.8.2.14 CLB PUSH PULL
        15. 30.8.2.15 CLB Multi Tile
        16. 30.8.2.16 CLB Tile to Tile Delay
        17. 30.8.2.17 CLB Glue Logic
        18. 30.8.2.18 CLB based One-shot PWM
        19. 30.8.2.19 CLB AOC Control
        20. 30.8.2.20 CLB AOC Release Control
        21. 30.8.2.21 CLB XBARs
        22. 30.8.2.22 CLB AOC Control
        23. 30.8.2.23 CLB Serializer
        24. 30.8.2.24 CLB LFSR
        25. 30.8.2.25 CLB Lock Output Mask
        26. 30.8.2.26 CLB INPUT Pipeline Mode
        27. 30.8.2.27 CLB Clocking and PIPELINE Mode
        28. 30.8.2.28 CLB SPI Data Export
        29. 30.8.2.29 CLB SPI Data Export DMA
        30. 30.8.2.30 CLB Trip Zone Timestamp
        31. 30.8.2.31 CLB CRC
        32. 30.8.2.32 CLB TDM Serial Port
        33. 30.8.2.33 CLB LED Driver
    9. 30.9 CLB Registers
      1. 30.9.1 CLB Base Address Table
      2. 30.9.2 CLB_LOGIC_CONFIG_REGS Registers
      3. 30.9.3 CLB_LOGIC_CONTROL_REGS Registers
      4. 30.9.4 CLB_DATA_EXCHANGE_REGS Registers
  33. 31Advanced Encryption Standard (AES) Accelerator
    1. 31.1 Introduction
      1. 31.1.1 AES Block Diagram
        1. 31.1.1.1 Interfaces
        2. 31.1.1.2 AES Subsystem
        3. 31.1.1.3 AES Wide-Bus Engine
      2. 31.1.2 AES Algorithm
    2. 31.2 AES Operating Modes
      1. 31.2.1  GCM Operation
      2. 31.2.2  CCM Operation
      3. 31.2.3  XTS Operation
      4. 31.2.4  ECB Feedback Mode
      5. 31.2.5  CBC Feedback Mode
      6. 31.2.6  CTR and ICM Feedback Modes
      7. 31.2.7  CFB Mode
      8. 31.2.8  F8 Mode
      9. 31.2.9  F9 Operation
      10. 31.2.10 CBC-MAC Operation
    3. 31.3 Extended and Combined Modes of Operations
      1. 31.3.1 GCM Protocol Operation
      2. 31.3.2 CCM Protocol Operation
      3. 31.3.3 Hardware Requests
    4. 31.4 AES Module Programming Guide
      1. 31.4.1 AES Low-Level Programming Models
        1. 31.4.1.1 Global Initialization
        2. 31.4.1.2 AES Operating Modes Configuration
        3. 31.4.1.3 AES Mode Configurations
        4. 31.4.1.4 AES Events Servicing
    5. 31.5 Software
      1. 31.5.1 AES Registers to Driverlib Functions
      2. 31.5.2 AES_SS Registers to Driverlib Functions
      3. 31.5.3 AES Examples
        1. 31.5.3.1 AES ECB Encryption Example
        2. 31.5.3.2 AES ECB De-cryption Example
        3. 31.5.3.3 AES GCM Encryption Example
        4. 31.5.3.4 AES GCM Decryption Example
        5. 31.5.3.5 AES CBC Encryption Example
        6. 31.5.3.6 AES CBC De-cryption Example
        7. 31.5.3.7 AES CMAC Authentication Example
    6. 31.6 AES Registers
      1. 31.6.1 AES Base Address Table
      2. 31.6.2 AES_REGS Registers
      3. 31.6.3 AES_SS_REGS Registers
  34. 32Embedded Pattern Generator (EPG)
    1. 32.1 Introduction
      1. 32.1.1 Features
      2. 32.1.2 EPG Block Diagram
      3. 32.1.3 EPG Related Collateral
    2. 32.2 Clock Generator Modules
      1. 32.2.1 DCLK (50% duty cycle clock)
      2. 32.2.2 Clock Stop
    3. 32.3 Signal Generator Module
    4. 32.4 EPG Peripheral Signal Mux Selection
    5. 32.5 Application Software Notes
    6. 32.6 EPG Example Use Cases
      1. 32.6.1 EPG Example: Synchronous Clocks with Offset
        1. 32.6.1.1 Synchronous Clocks with Offset Register Configuration
      2. 32.6.2 EPG Example: Serial Data Bit Stream (LSB first)
        1. 32.6.2.1 Serial Data Bit Stream (LSB first) Register Configuration
      3. 32.6.3 EPG Example: Serial Data Bit Stream (MSB first)
        1. 32.6.3.1 Serial Data Bit Stream (MSB first) Register Configuration
    7. 32.7 EPG Interrupt
    8. 32.8 Software
      1. 32.8.1 EPG Registers to Driverlib Functions
      2. 32.8.2 EPG Examples
        1. 32.8.2.1 EPG Generating Synchronous Clocks
        2. 32.8.2.2 EPG Generating Two Offset Clocks
        3. 32.8.2.3 EPG Generating Two Offset Clocks With SIGGEN
        4. 32.8.2.4 EPG Generate Serial Data
        5. 32.8.2.5 EPG Generate Serial Data Shift Mode
    9. 32.9 EPG Registers
      1. 32.9.1 EPG Base Address Table
      2. 32.9.2 EPG_REGS Registers
      3. 32.9.3 EPG_MUX_REGS Registers
  35. 33Revision History

EPWM_REGS Registers

Table 19-24 lists the memory-mapped registers for the EPWM_REGS registers. All register offset addresses not listed in Table 19-24 should be considered as reserved locations and the register contents should not be modified.

Table 19-24 EPWM_REGS Registers
OffsetAcronymRegister NameWrite ProtectionSection
0hTBCTLTime Base Control RegisterGo
1hTBCTL2Time Base Control Register 2Go
3hEPWMSYNCINSELEPWMxSYNCIN Source Select RegisterGo
4hTBCTRTime Base Counter RegisterGo
5hTBSTSTime Base Status RegisterGo
6hEPWMSYNCOUTENEPWMxSYNCOUT Source Enable RegisterGo
7hTBCTL3Time Base Control Register 3Go
8hCMPCTLCounter Compare Control RegisterGo
9hCMPCTL2Counter Compare Control Register 2Go
ChDBCTLDead-Band Generator Control RegisterGo
DhDBCTL2Dead-Band Generator Control Register 2Go
10hAQCTLAction Qualifier Control RegisterGo
11hAQTSRCSELAction Qualifier Trigger Event Source Select RegisterGo
14hPCCTLPWM Chopper Control RegisterGo
18hVCAPCTLValley Capture Control RegisterGo
19hVCNTCFGValley Counter Config RegisterGo
20hHRCNFGHRPWM Configuration RegisterEALLOWGo
21hHRPWRHRPWM Power RegisterEALLOWGo
26hHRMSTEPHRPWM MEP Step RegisterEALLOWGo
27hHRCNFG2HRPWM Configuration 2 RegisterEALLOWGo
2DhHRPCTLHigh Resolution Period Control RegisterEALLOWGo
2EhTRREMHRPWM High Resolution Remainder RegisterEALLOWGo
34hGLDCTLGlobal PWM Load Control RegisterEALLOWGo
35hGLDCFGGlobal PWM Load Config RegisterEALLOWGo
38hEPWMXLINKEPWMx Link RegisterGo
40hAQCTLAAction Qualifier Control Register For Output AGo
41hAQCTLA2Additional Action Qualifier Control Register For Output AGo
42hAQCTLBAction Qualifier Control Register For Output BGo
43hAQCTLB2Additional Action Qualifier Control Register For Output BGo
47hAQSFRCAction Qualifier Software Force RegisterGo
49hAQCSFRCAction Qualifier Continuous S/W Force RegisterGo
50hDBREDHRDead-Band Generator Rising Edge Delay High Resolution Mirror RegisterGo
51hDBREDDead-Band Generator Rising Edge Delay High Resolution Mirror RegisterGo
52hDBFEDHRDead-Band Generator Falling Edge Delay High Resolution RegisterGo
53hDBFEDDead-Band Generator Falling Edge Delay Count RegisterGo
60hTBPHSTime Base Phase HighGo
62hTBPRDHRTime Base Period High Resolution RegisterGo
63hTBPRDTime Base Period RegisterGo
6AhCMPACounter Compare A RegisterGo
6ChCMPBCompare B RegisterGo
6FhCMPCCounter Compare C RegisterGo
71hCMPDCounter Compare D RegisterGo
74hGLDCTL2Global PWM Load Control Register 2Go
77hSWVDELVALSoftware Valley Mode Delay RegisterGo
80hTZSELTrip Zone Select RegisterEALLOWGo
82hTZDCSELTrip Zone Digital Comparator Select RegisterEALLOWGo
84hTZCTLTrip Zone Control RegisterEALLOWGo
85hTZCTL2Additional Trip Zone Control RegisterEALLOWGo
86hTZCTLDCATrip Zone Control Register Digital Compare AEALLOWGo
87hTZCTLDCBTrip Zone Control Register Digital Compare BEALLOWGo
8DhTZEINTTrip Zone Enable Interrupt RegisterEALLOWGo
93hTZFLGTrip Zone Flag RegisterGo
94hTZCBCFLGTrip Zone CBC Flag RegisterGo
95hTZOSTFLGTrip Zone OST Flag RegisterGo
97hTZCLRTrip Zone Clear RegisterEALLOWGo
98hTZCBCCLRTrip Zone CBC Clear RegisterEALLOWGo
99hTZOSTCLRTrip Zone OST Clear RegisterEALLOWGo
9BhTZFRCTrip Zone Force RegisterEALLOWGo
A4hETSELEvent Trigger Selection RegisterGo
A6hETPSEvent Trigger Pre-Scale RegisterGo
A8hETFLGEvent Trigger Flag RegisterGo
AAhETCLREvent Trigger Clear RegisterGo
AChETFRCEvent Trigger Force RegisterGo
AEhETINTPSEvent-Trigger Interrupt Pre-Scale RegisterGo
B0hETSOCPSEvent-Trigger SOC Pre-Scale RegisterGo
B2hETCNTINITCTLEvent-Trigger Counter Initialization Control RegisterGo
B4hETCNTINITEvent-Trigger Counter Initialization RegisterGo
C0hDCTRIPSELDigital Compare Trip Select RegisterEALLOWGo
C3hDCACTLDigital Compare A Control RegisterEALLOWGo
C4hDCBCTLDigital Compare B Control RegisterEALLOWGo
C7hDCFCTLDigital Compare Filter Control RegisterEALLOWGo
C8hDCCAPCTLDigital Compare Capture Control RegisterEALLOWGo
C9hDCFOFFSETDigital Compare Filter Offset RegisterGo
CAhDCFOFFSETCNTDigital Compare Filter Offset Counter RegisterGo
CBhDCFWINDOWDigital Compare Filter Window RegisterGo
CChDCFWINDOWCNTDigital Compare Filter Window Counter RegisterGo
CDhBLANKPULSEMIXSELBlanking window trigger pulse select registerEALLOWGo
CFhDCCAPDigital Compare Counter Capture RegisterGo
D2hDCAHTRIPSELDigital Compare AH Trip SelectEALLOWGo
D3hDCALTRIPSELDigital Compare AL Trip SelectEALLOWGo
D4hDCBHTRIPSELDigital Compare BH Trip SelectEALLOWGo
D5hDCBLTRIPSELDigital Compare BL Trip SelectEALLOWGo
FAhEPWMLOCKEPWM Lock RegisterGo
FDhHWVDELVALHardware Valley Mode Delay RegisterGo
FEhVCNTVALHardware Valley Counter RegisterGo

Complex bit access types are encoded to fit into small table cells. Table 19-25 shows the codes that are used for access types in this section.

Table 19-25 EPWM_REGS Access Type Codes
Access TypeCodeDescription
Read Type
RRRead
R-0R
-0
Read
Returns 0s
Write Type
WWWrite
W1CW
1C
Write
1 to clear
W1SW
1S
Write
1 to set
WOnceW
Once
Write
Write once
Reset or Default Value
-nValue after reset or the default value
Register Array Variables
i,j,k,l,m,nWhen these variables are used in a register name, an offset, or an address, they refer to the value of a register array where the register is part of a group of repeating registers. The register groups form a hierarchical structure and the array is represented with a formula.
yWhen this variable is used in a register name, an offset, or an address it refers to the value of a register array.

19.17.2.1 TBCTL Register (Offset = 0h) [Reset = 0083h]

TBCTL is shown in Figure 19-93 and described in Table 19-26.

Return to the Summary Table.

Time Base Control Register

Figure 19-93 TBCTL Register
15141312111098
FREE_SOFTPHSDIRCLKDIVHSPCLKDIV
R/W-0hR/W-0hR/W-0hR/W-1h
76543210
HSPCLKDIVSWFSYNCRESERVEDPRDLDPHSENCTRMODE
R/W-1hR-0/W1S-0hR-0hR/W-0hR/W-0hR/W-3h
Table 19-26 TBCTL Register Field Descriptions
BitFieldTypeResetDescription
15-14FREE_SOFTR/W0hEmulation Mode Bits. These bits select the behavior of the ePWM time-base counter during emulation events

00: Stop after the next time-base counter increment or decrement
01: Stop when counter completes a whole cycle:
- Up-count mode: stop when the time-base counter = period (TBCTR = TBPRD)
- Down-count mode: stop when the time-base counter = 0x00 (TBCTR = 0x00)
- Up-down-count mode: stop when the time-base counter = 0x00 (TBCTR = 0x00)
1x: Free run

Reset type: SYSRSn

13PHSDIRR/W0hPhase Direction Bit

This bit is only used when the time-base counter is configured in the up-down-count mode. The
PHSDIR bit indicates the direction the time-base counter (TBCTR) will count after a synchronization
event occurs and a new phase value is loaded from the phase (TBPHS) register. This is
irrespective of the direction of the counter before the synchronization event..
In the up-count and down-count modes this bit is ignored.

0: Count down after the synchronization event.
1: Count up after the synchronization event.

Reset type: SYSRSn

12-10CLKDIVR/W0hTime Base Clock Pre-Scale Bits

These bits select the time base clock pre-scale value (TBCLK = EPWMCLK/(HSPCLKDIV * CLKDIV):

000: /1 (default on reset)
001: /2
010: /4
011: /8
100: /16
101: /32
110: /64
111: /128

Reset type: SYSRSn

9-7HSPCLKDIVR/W1hHigh Speed Time Base Clock Pre-Scale Bits

These bits determine part of the time-base clock prescale value.
TBCLK = EPWMCLK / (HSPCLKDIV x CLKDIV). This divisor emulates the HSPCLK in the TMS320x281x system as used on the Event Manager (EV) peripheral.

000: /1
001: /2 (default on reset)
010: /4
011: /6
100: /8
101: /10
110: /12
111: /14

Reset type: SYSRSn

6SWFSYNCR-0/W1S0hSoftware Forced Sync Pulse

0: Writing a 0 has no effect and reads always return a 0.
1: Writing a 1 forces a one-time synchronization pulse to be generated.
SWFSYNC can be enabled to affect EPWMxSYNCO by setting the EPWMSYNCOUTEN.SWEN bit.

Reset type: SYSRSn

5-4RESERVEDR0hReserved
3PRDLDR/W0hActive Period Reg Load from Shadow Select

0: The period register (TBPRD) is loaded from its shadow register when the time-base counter, TBCTR, is equal to zero and/or a sync event as determined by the TBCTL2[PRDLDSYNC] bit.
A write/read to the TBPRD register accesses the shadow register.

1: Immediate Mode (Shadow register bypassed): A write or read to the TBPRD register accesses the active register.

Reset type: SYSRSn

2PHSENR/W0hCounter Reg Load from Phase Reg Enable

0: Do not load the time-base counter (TBCTR) from the time-base phase register (TBPHS).
1: Allow Counter to be loaded from the Phase register (TBPHS) and shadow to active load events when an EPWMxSYNCI input signal occurs or a software-forced sync signal, see bit 6.

Reset type: SYSRSn

1-0CTRMODER/W3hCounter Mode

The time-base counter mode is normally configured once and not changed during normal operation. If you change the mode of the counter, the change will take effect at the next TBCLK edge and the current counter value shall increment or decrement from the value before the mode change. These bits set the time-base counter mode of operation as follows:
00: Up-count mode
01: Down-count mode
10: Up-down count mode
11: Freeze counter operation (default on reset)

Reset type: SYSRSn

19.17.2.2 TBCTL2 Register (Offset = 1h) [Reset = 0000h]

TBCTL2 is shown in Figure 19-94 and described in Table 19-27.

Return to the Summary Table.

Time Base Control Register 2

Figure 19-94 TBCTL2 Register
15141312111098
PRDLDSYNCRESERVEDRESERVED
R/W-0hR-0hR-0-0h
76543210
OSHTSYNCOSHTSYNCMODERESERVEDRESERVED
R-0/W1S-0hR/W-0hR/W-0hR-0-0h
Table 19-27 TBCTL2 Register Field Descriptions
BitFieldTypeResetDescription
15-14PRDLDSYNCR/W0hShadow to Active Period Register Load on SYNC event

00: Shadow to Active Load of TBPRD occurs only when TBCTR = 0 (same as legacy).
01: Shadow to Active Load of TBPRD occurs both when TBCTR = 0 and when SYNC occurs.
10: Shadow to Active Load of TBPRD occurs only when a SYNC is received.
11: Reserved

Note: This bit selection is valid only if TBCTL[PRDLD]=0.

Reset type: SYSRSn

13-12RESERVEDR0hReserved
11-8RESERVEDR-00hReserved
7OSHTSYNCR-0/W1S0hOneshot sync bit

0: Writing a '0' has no effect.
1: Allow one sync pulse to propogate.

Reset type: SYSRSn

6OSHTSYNCMODER/W0hOneshot sync enable bit

0: Oneshot sync mode disabled
1: Oneshot sync mode enabled

Reset type: SYSRSn

5RESERVEDR/W0hReserved
4-0RESERVEDR-00hReserved

19.17.2.3 EPWMSYNCINSEL Register (Offset = 3h) [Reset = 0001h]

EPWMSYNCINSEL is shown in Figure 19-95 and described in Table 19-28.

Return to the Summary Table.

EPWMxSYNCIN Source Select Register

Figure 19-95 EPWMSYNCINSEL Register
15141312111098
RESERVED
R-0h
76543210
RESERVEDSEL
R-0hR/W-1h
Table 19-28 EPWMSYNCINSEL Register Field Descriptions
BitFieldTypeResetDescription
15-5RESERVEDR0hReserved
4-0SELR/W1hThese bits determine the source of the EPWMxSYNCI signal.
0x00 Disabled
Other Values defined in the 'ePWM SYNC Selection' table

Reset type: SYSRSn

19.17.2.4 TBCTR Register (Offset = 4h) [Reset = 0000h]

TBCTR is shown in Figure 19-96 and described in Table 19-29.

Return to the Summary Table.

Time Base Counter Register

Figure 19-96 TBCTR Register
15141312111098
TBCTR
R/W-0h
76543210
TBCTR
R/W-0h
Table 19-29 TBCTR Register Field Descriptions
BitFieldTypeResetDescription
15-0TBCTRR/W0hTime Base Counter Register

Reset type: SYSRSn

19.17.2.5 TBSTS Register (Offset = 5h) [Reset = 0001h]

TBSTS is shown in Figure 19-97 and described in Table 19-30.

Return to the Summary Table.

Time Base Status Register

Figure 19-97 TBSTS Register
15141312111098
RESERVED
R-0-0h
76543210
RESERVEDCTRMAXSYNCICTRDIR
R-0-0hR/W1C-0hR/W1C-0hR-1h
Table 19-30 TBSTS Register Field Descriptions
BitFieldTypeResetDescription
15-3RESERVEDR-00hReserved
2CTRMAXR/W1C0hTime-Base Counter Max Latched Status Bit

0: Reading a 0 indicates the time-base counter never reached its maximum value. Writing a 0 will have no effect.
1: Reading a 1 on this bit indicates that the time-base counter reached the max value 0xFFFF. Writing a 1 to this bit will clear the latched event.

Reset type: SYSRSn

1SYNCIR/W1C0hInput Synchronization Latched Status Bit

0: Writing a 0 will have no effect. Reading a 0 indicates no external synchronization event has occurred.
1: Reading a 1 on this bit indicates that an external synchronization event has occurred (EPWMxSYNCI). Writing a 1 to this bit will clear the latched event.

Reset type: SYSRSn

0CTRDIRR1hTime Base Counter Direction Status Bit

0: Time-Base Counter is currently counting down.
1: Time-Base Counter is currently counting up.

Note: This bit is only valid when the counter is not frozen.

Reset type: SYSRSn

19.17.2.6 EPWMSYNCOUTEN Register (Offset = 6h) [Reset = 0001h]

EPWMSYNCOUTEN is shown in Figure 19-98 and described in Table 19-31.

Return to the Summary Table.

EPWMxSYNCOUT Source Enable Register

Figure 19-98 EPWMSYNCOUTEN Register
15141312111098
RESERVED
R-0h
76543210
RESERVEDDCBEVT1ENDCAEVT1ENCMPDENCMPCENCMPBENZEROENSWEN
R-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-1h
Table 19-31 EPWMSYNCOUTEN Register Field Descriptions
BitFieldTypeResetDescription
15-8RESERVEDR0hReserved
7RESERVEDR0hReserved
6DCBEVT1ENR/W0hThis bit enables the DCBEVT1.sync event to set the EPWMxSYNCO signal.
0 Disabled
1 The EPWMxSYNCO signal is pulsed for one PWM clock period upon a DCBEVT1.sync event

Reset type: SYSRSn

5DCAEVT1ENR/W0hThis bit enables the DCAEVT1.sync event to set the EPWMxSYNCOUT signal.
0 Disabled
1 The EPWMxSYNCOUT signal is pulsed for one PWM clock period upon a DCAEVT1.sync event

Reset type: SYSRSn

4CMPDENR/W0hThis bit enables the TBCTR = CMPD event to set the EPWMxSYNCO signal.
0 Disabled
1 The EPWMxSYNCO signal is pulsed for one PWM clock period upon a time-base counter equal to counter compare D event (TBCTR = CMPD)

Reset type: SYSRSn

3CMPCENR/W0hThis bit enables the TBCTR = CMPC event to set the EPWMxSYNCO signal.
0 Disabled
1 The EPWMxSYNCO signal is pulsed for one PWM clock period upon a time-base counter equal to counter compare C event (TBCTR = CMPC)

Reset type: SYSRSn

2CMPBENR/W0hThis bit enables the TBCTR = CMPB event to set the EPWMxSYNCO signal.
0 Disabled
1 The EPWMxSYNCO signal is pulsed for one PWM clock period upon a time-base counter equal to counter compare B event (TBCTR = CMPB)

Reset type: SYSRSn

1ZEROENR/W0hThis bit enables the TBCTR = 0x0000 event to set the EPWMxSYNCOUT signal.
0 Disabled
1 The EPWMxSYNCOUT signal is pulsed for one PWM clock period upon the value of TBCTR changing to 0x0000

Reset type: SYSRSn

0SWENR/W1hThis bit enables the TBCTL.SWFSYNC bit to set the EPWMxSYNCO signal.
0 Disabled
1 The EPWMxSYNCO signal is pulsed for one PWM clock period when the TBCTL.SWFSYNC bit is set

Reset type: SYSRSn

19.17.2.7 TBCTL3 Register (Offset = 7h) [Reset = 0000h]

TBCTL3 is shown in Figure 19-99 and described in Table 19-32.

Return to the Summary Table.

Time Base Control Register 3

Figure 19-99 TBCTL3 Register
15141312111098
RESERVED
R-0h
76543210
RESERVEDOSSFRCEN
R-0hR/W-0h
Table 19-32 TBCTL3 Register Field Descriptions
BitFieldTypeResetDescription
15-1RESERVEDR0hReserved
0OSSFRCENR/W0hThis bit determines which bit sets the EPWMxSYNCOUT One Shot Latch.
0 TBCTL2[OSHTSYNC] sets the One Shot Latch
1 GLDCTL2[OSHTLD] sets the One Shot Latch

Reset type: SYSRSn

19.17.2.8 CMPCTL Register (Offset = 8h) [Reset = 0000h]

CMPCTL is shown in Figure 19-100 and described in Table 19-33.

Return to the Summary Table.

Counter Compare Control Register

Figure 19-100 CMPCTL Register
15141312111098
RESERVEDLOADBSYNCLOADASYNCSHDWBFULLSHDWAFULL
R-0-0hR/W-0hR/W-0hR-0hR-0h
76543210
RESERVEDSHDWBMODERESERVEDSHDWAMODELOADBMODELOADAMODE
R-0-0hR/W-0hR-0-0hR/W-0hR/W-0hR/W-0h
Table 19-33 CMPCTL Register Field Descriptions
BitFieldTypeResetDescription
15-14RESERVEDR-00hReserved
13-12LOADBSYNCR/W0hShadow to Active CMPB Register Load on SYNC event

00: Shadow to Active Load of CMPB:CMPBHR occurs according to LOADBMODE (bits 1,0) (same as legacy)
01: Shadow to Active Load of CMPB:CMPBHR occurs both according to LOADBMODE bits and when SYNC occurs
10: Shadow to Active Load of CMPB:CMPBHR occurs only when a SYNC is received
11: Reserved

Note: This bit is valid only if CMPCTL[SHDWBMODE] = 0.

Reset type: SYSRSn

11-10LOADASYNCR/W0hShadow to Active CMPA Register Load on SYNC event

00: Shadow to Active Load of CMPA:CMPAHR occurs according to LOADAMODE (bits 1,0) (same as legacy)
01: Shadow to Active Load of CMPA:CMPAHR occurs both according to LOADAMODE bits and when SYNC occurs
10: Shadow to Active Load of CMPA:CMPAHR occurs only when a SYNC is received
11: Reserved

Note: This bit is valid only if CMPCTL[SHDWAMODE] = 0.

Reset type: SYSRSn

9SHDWBFULLR0hCounter-compare B (CMPB) Shadow Register Full Status Flag

This bit self clears once a loadstrobe occurs.

0: CMPB shadow register not full yet
1: Indicates the CMPB shadow register is full
a CPU write will overwrite current shadow value

Reset type: SYSRSn

8SHDWAFULLR0hCounter-compare A (CMPA) Shadow Register Full Status Flag

The flag bit is set when a 32-bit write to CMPA:CMPAHR register or a 16-bit write to CMPA register is made. A 16-bit write to CMPAHR register will not affect the flag. This bit self clears once a load-strobe occurs.

0: CMPA shadow register not full yet
1: Indicates the CMPA shadow register is full, a CPU write will overwrite the current shadow value

Reset type: SYSRSn

7RESERVEDR-00hReserved
6SHDWBMODER/W0hCounter-compare B (CMPB) Register Operating Mode

0: Shadow mode. Operates as a double buffer. All writes via the CPU access the shadow register
1: Immediate mode. Only the active compare B register is used. All writes and reads directly access the active register for immediate compare action

Reset type: SYSRSn

5RESERVEDR-00hReserved
4SHDWAMODER/W0hCounter-compare A (CMPA) Register Operating Mode

0: Shadow mode. Operates as a double buffer. All writes via the CPU access the shadow register
1: Immediate mode. Only the active compare register is used. All writes and reads directly access the active register for immediate compare action

Reset type: SYSRSn

3-2LOADBMODER/W0hActive Counter-Compare B (CMPB) Load From Shadow Select Mode

This bit has no effect in immediate mode (CMPCTL[SHDWBMODE] = 1).

00: Load on CTR = Zero: Time-base counter equal to zero (TBCTR = 0x0000)
01: Load on CTR = PRD: Time-base counter equal to period (TBCTR = TBPRD)
10: Load on either CTR = Zero or CTR = PRD
11: Freeze (no loads possible)

Reset type: SYSRSn

1-0LOADAMODER/W0hActive Counter-Compare A (CMPA) Load From Shadow Select Mode

This bit has no effect in immediate mode (CMPCTL[SHDWAMODE] = 1).

00: Load on CTR = Zero: Time-base counter equal to zero (TBCTR = 0x0000)
01: Load on CTR = PRD: Time-base counter equal to period (TBCTR = TBPRD)
10: Load on either CTR = Zero or CTR = PRD
11: Freeze (no loads possible)

Reset type: SYSRSn

19.17.2.9 CMPCTL2 Register (Offset = 9h) [Reset = 0000h]

CMPCTL2 is shown in Figure 19-101 and described in Table 19-34.

Return to the Summary Table.

Counter Compare Control Register 2

Figure 19-101 CMPCTL2 Register
15141312111098
RESERVEDLOADDSYNCLOADCSYNCRESERVED
R-0-0hR/W-0hR/W-0hR-0-0h
76543210
RESERVEDSHDWDMODERESERVEDSHDWCMODELOADDMODELOADCMODE
R-0-0hR/W-0hR-0-0hR/W-0hR/W-0hR/W-0h
Table 19-34 CMPCTL2 Register Field Descriptions
BitFieldTypeResetDescription
15-14RESERVEDR-00hReserved
13-12LOADDSYNCR/W0hShadow to Active CMPD Register Load on SYNC event

00: Shadow to Active Load of CMPD occurs according to LOADDMODE
01: Shadow to Active Load of CMPD occurs both according to LOADDMODE bits and when SYNC occurs
10: Shadow to Active Load of CMPD occurs only when a SYNC is received
11: Reserved

Note: This bit is valid only if CMPCTL2[SHDWDMODE] = 0.

Reset type: SYSRSn

11-10LOADCSYNCR/W0hShadow to Active CMPC Register Load on SYNC event

00: Shadow to Active Load of CMPC occurs according to LOADCMODE
01: Shadow to Active Load of CMPC occurs both according to LOADCMODE bits and when SYNC occurs
10: Shadow to Active Load of CMPC occurs only when a SYNC is received
11: Reserved

Note: This bit is valid only if CMPCTL2[SHDWCMODE] = 0.

Reset type: SYSRSn

9-7RESERVEDR-00hReserved
6SHDWDMODER/W0hCounter-Compare D Register Operating Mode

0: Shadow mode - operates as a double buffer. All writes via the CPU access Shadow register.
1: Immediate mode - only the Active compare register is used. All writes/reads via the CPU directly access the Active register for immediate Compare action.

Reset type: SYSRSn

5RESERVEDR-00hReserved
4SHDWCMODER/W0hCounter-Compare C Register Operating Mode

0: Shadow mode - operates as a double buffer. All writes via the CPU access Shadow register.
1: Immediate mode - only the Active compare register is used. All writes/reads via the CPU directly access the Active register for immediate Compare action.

Reset type: SYSRSn

3-2LOADDMODER/W0hActive Counter-Compare D (CMPD) Load from Shadow Select Mode

00: Load on CTR = Zero: Time-base counter equal to zero (TBCTR = 0x0000)
01: Load on CTR = PRD: Time-base counter equal to period (TBCTR = TBPRD)
10: Load on either CTR = Zero or CTR = PRD
11: Freeze (no loads possible)

Note: Has no effect in Immediate mode.

Reset type: SYSRSn

1-0LOADCMODER/W0hActive Counter-Compare C (CMPC) Load from Shadow Select Mode

00: Load on CTR = Zero: Time-base counter equal to zero (TBCTR = 0x0000)
01: Load on CTR = PRD: Time-base counter equal to period (TBCTR = TBPRD)
10: Load on either CTR = Zero or CTR = PRD
11: Freeze (no loads possible)

Note: Has no effect in Immediate mode.

Reset type: SYSRSn

19.17.2.10 DBCTL Register (Offset = Ch) [Reset = 0000h]

DBCTL is shown in Figure 19-102 and described in Table 19-35.

Return to the Summary Table.

Dead-Band Generator Control Register

Figure 19-102 DBCTL Register
15141312111098
HALFCYCLEDEDB_MODEOUTSWAPSHDWDBFEDMODESHDWDBREDMODELOADFEDMODE
R/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0h
76543210
LOADREDMODEIN_MODEPOLSELOUT_MODE
R/W-0hR/W-0hR/W-0hR/W-0h
Table 19-35 DBCTL Register Field Descriptions
BitFieldTypeResetDescription
15HALFCYCLER/W0hHalf Cycle Clocking Enable Bit

0: Full cycle clocking enabled. The dead-band counters are clocked at the TBCLK rate.
1: Half cycle clocking enabled. The dead-band counters are clocked at TBCLK*2.

Reset type: SYSRSn

14DEDB_MODER/W0hDead Band Dual-Edge B Mode Control (S8 switch)

0: Rising edge delay applied to InA/InB as selected by S4 switch (IN-MODE bits) on A signal path only. Falling edge delay applied to InA/InB as selected by S5 switch (INMODE bits) on B signal path only.
1: Rising edge delay and falling edge delay applied to source selected by S4 switch (INMODE bits) and output to B signal path only. Note: When this bit is set to 1, user should always either set OUT_MODE bits such that Apath = InA OR OUTSWAP bits such that OutA=Bpath
otherwise, OutA will be invalid.

Reset type: SYSRSn

13-12OUTSWAPR/W0hDead Band Output Swap Control

Bit 13 controls the S6 switch and bit 12 controls the S7 switch.

00: OutA and OutB signals are as defined by OUT-MODE bits.
01: OutA = A-path as defined by OUT-MODE bits.
OutB = A-path as defined by OUT-MODE bits (rising edge delay or delay-bypassed A signal path).
10: OutA = B-path as defined by OUT-MODE bits (falling edge delay or delay-bypassed B signal path).
OutB = B-path as defined by OUT-MODE bits.
11: OutA = B-path as defined by OUT-MODE bits (falling edge delay or delay-bypassed B signal path).
OutB = A-path as defined by OUT-MODE bits (rising edge delay or delay-bypassed A signal path).

Reset type: SYSRSn

11SHDWDBFEDMODER/W0hFED Dead-Band Load Mode

0: Immediate mode. Only the active DBFED register is used. All writes/reads via the CPU directly access the active register for immediate 'FED dead-band action.'
1: Shadow mode. Operates as a double buffer. All writes via the CPU access Shadow register. Default at Reset is Immediate mode (for compatibility with legacy).

Reset type: SYSRSn

10SHDWDBREDMODER/W0hRED Dead-Band Load Mode

0: Immediate mode. Only the active DBRED register is used. All writes/reads via the CPU directly access the active register for immediate 'RED dead-band action.'
1: Shadow mode. Operates as a double buffer. All writes via the CPU access Shadow register. Default at Reset is Immediate mode (for compatibility with legacy).

Reset type: SYSRSn

9-8LOADFEDMODER/W0hActive DBFED Load from Shadow Select Mode

00: Load on Counter = 0 (CNT_eq)
01: Load on Counter = Period (PRD_eq)
10: Load on either Counter = 0, or Counter = Period
11: Freeze (no loads possible)

Note: has no effect in Immediate mode.

Reset type: SYSRSn

7-6LOADREDMODER/W0hActive DBRED Load from Shadow Select Mode

00: Load on Counter = 0 (CNT_eq)
01: Load on Counter = Period (PRD_eq)
10: Load on either Counter = 0, or Counter = Period
11: Freeze (no loads possible)

Note: has no effect in Immediate mode.

Reset type: SYSRSn

5-4IN_MODER/W0hDead-Band Input Mode Control

Bit 5 controls the S5 switch and bit 4 controls the S4 switch shown. This allows you to select the input source to the falling-edge and rising-edge delay. To produce classical dead-band waveforms the default is EPWMxA In is the source for both falling and rising-edge delays.

00: EPWMxA In (from the action-qualifier) is the source for both falling-edge and rising-edge delay.
01: EPWMxB In (from the action-qualifier) is the source for rising-edge delayed signal.
EPWMxA In (from the action-qualifier) is the source for falling-edge delayed signal.
10: EPWMxA In (from the action-qualifier) is the source for rising-edge delayed signal.
EPWMxB In (from the action-qualifier) is the source for falling-edge delayed signal.
11: EPWMxB In (from the action-qualifier) is the source for both rising-edge delay and falling-edge delayed signal.

Reset type: SYSRSn

3-2POLSELR/W0hPolarity Select Control

Bit 3 controls the S3 switch and bit 2 controls the S2 switch. This allows you to selectively invert one of the delayed signals before it is sent out of the dead-band submodule. The following descriptions correspond to classical upper/lower switch control as found in one leg of a digital motor control inverter. These assume that DBCTL[OUT_MODE] = 1,1 and DBCTL[IN_MODE] = 0x0. Other enhanced modes are also possible, but not regarded as typical usage modes.

00: Active high (AH) mode. Neither EPWMxA nor EPWMxB is inverted (default).
01: Active low complementary (ALC) mode. EPWMxA is inverted.
10: Active high complementary (AHC). EPWMxB is inverted.
11: Active low (AL) mode. Both EPWMxA and EPWMxB are inverted.

Reset type: SYSRSn

1-0OUT_MODER/W0hDead-Band Output Mode Control

Bit 1 controls the S1 switch and bit 0 controls the S0 switch.

00: DBM is fully disabled or by-passed. In this mode the POLSEL and IN-MODE bits have no effect.
01: Apath = InA (delay is by-passed for A signal path)
Bpath = FED (Falling Edge Delay in B signal path)
10: Apath = RED (Rising Edge Delay in A signal path)
Bpath = InB (delay is by-passed for B signal path)
11: DBM is fully enabled (i.e. both RED and FED active)

Reset type: SYSRSn

19.17.2.11 DBCTL2 Register (Offset = Dh) [Reset = 0000h]

DBCTL2 is shown in Figure 19-103 and described in Table 19-36.

Return to the Summary Table.

Dead-Band Generator Control Register 2

Figure 19-103 DBCTL2 Register
15141312111098
RESERVED
R-0-0h
76543210
RESERVEDSHDWDBCTLMODELOADDBCTLMODE
R-0-0hR/W-0hR/W-0h
Table 19-36 DBCTL2 Register Field Descriptions
BitFieldTypeResetDescription
15-3RESERVEDR-00hReserved
2SHDWDBCTLMODER/W0hDBCTL Load Mode

0: Immediate mode - only the Active DBCTL register is used. All writes/reads via the CPU directly access the Active register.
1: Shadow mode - All writes and reads to bits [5:0] of the DBCTL register are shadowed. All other bits still access the active register.

Reset type: SYSRSn

1-0LOADDBCTLMODER/W0hActive DBCTL Load from Shadow Select Mode

00: Load on Counter = 0 (CNT_eq)
01: Load on Counter = Period (PRD_eq)
10: Load on either Counter = 0, or Counter = Period
11: Freeze (no loads possible)

Note: has no effect in Immediate mode

Reset type: SYSRSn

19.17.2.12 AQCTL Register (Offset = 10h) [Reset = 0000h]

AQCTL is shown in Figure 19-104 and described in Table 19-37.

Return to the Summary Table.

Action Qualifier Control Register

Figure 19-104 AQCTL Register
15141312111098
RESERVEDLDAQBSYNCLDAQASYNC
R-0-0hR/W-0hR/W-0h
76543210
RESERVEDSHDWAQBMODERESERVEDSHDWAQAMODELDAQBMODELDAQAMODE
R-0-0hR/W-0hR-0-0hR/W-0hR/W-0hR/W-0h
Table 19-37 AQCTL Register Field Descriptions
BitFieldTypeResetDescription
15-12RESERVEDR-00hReserved
11-10LDAQBSYNCR/W0hShadow to Active AQCTLB Register Load on SYNC event

00: Shadow to Active Load of AQCTLB occurs according to LDAQBMODE
01: Shadow to Active Load of AQCTLB occurs both according to LDAQBMODE bits and when SYNC occurs.
10: Shadow to Active Load of AQCTLB occurs only when a SYNC is received.
11: Reserved

Note: This bit is valid only if AQCTL[SHDWAQBMODE] = 1.

Reset type: SYSRSn

9-8LDAQASYNCR/W0hShadow to Active AQCTLA Register Load on SYNC event

00: Shadow to Active Load of AQCTLA occurs according to LDAQAMODE
01: Shadow to Active Load of AQCTLA occurs both according to LDAQAMODE bits and when SYNC occurs.
10: Shadow to Active Load of AQCTLA occurs only when a SYNC is received.
11: Reserved

Note: This bit is valid only if AQCTL[SHDWAQAMODE] = 1.

Reset type: SYSRSn

7RESERVEDR-00hReserved
6SHDWAQBMODER/W0hAction Qualifier B Register operating mode

1: Shadow mode - operates as a double buffer. All writes via the CPU access Shadow register.
0: Immediate mode - only the Active action qualifier register is used. All writes/reads via the CPU directly access the Active register.

Reset type: SYSRSn

5RESERVEDR-00hReserved
4SHDWAQAMODER/W0hAction Qualifier A Register operating mode

1: Shadow mode - operates as a double buffer. All writes via the CPU access Shadow register.
0: Immediate mode - only the Active action qualifier register is used. All writes/reads via the CPU directly access the Active register.

Reset type: SYSRSn

3-2LDAQBMODER/W0hActive Action Qualifier B Load from Shadow Select Mode

00: Load on CTR = Zero: Time-base counter equal to zero (TBCTR = 0x0000)
01: Load on CTR = PRD: Time-base counter equal to period (TBCTR = TBPRD)
10: Load on either CTR = Zero or CTR = PRD
11: Freeze (no loads possible)

Note: has no effect in Immediate mode.

Reset type: SYSRSn

1-0LDAQAMODER/W0hActive Action Qualifier A Load from Shadow Select Mode

00: Load on CTR = Zero: Time-base counter equal to zero (TBCTR = 0x0000)
01: Load on CTR = PRD: Time-base counter equal to period (TBCTR = TBPRD)
10: Load on either CTR = Zero or CTR = PRD
11: Freeze (no loads possible)

Note: has no effect in Immediate mode.

Reset type: SYSRSn

19.17.2.13 AQTSRCSEL Register (Offset = 11h) [Reset = 0000h]

AQTSRCSEL is shown in Figure 19-105 and described in Table 19-38.

Return to the Summary Table.

Action Qualifier Trigger Event Source Select Register

Figure 19-105 AQTSRCSEL Register
15141312111098
RESERVED
R-0-0h
76543210
T2SELT1SEL
R/W-0hR/W-0h
Table 19-38 AQTSRCSEL Register Field Descriptions
BitFieldTypeResetDescription
15-8RESERVEDR-00hReserved
7-4T2SELR/W0hT2 Event Source Select Bits

0000: DCAEVT1
0001: DCAEVT2
0010: DCBEVT1
0011: DCBEVT2
0100: TZ1
0101: TZ2
0110: TZ3
0111: EPWMxSYNCI
1000: DCEVTFILT
Others: Reserved

Reset type: SYSRSn

3-0T1SELR/W0hT1 Event Source Select Bits

0000: DCAEVT1
0001: DCAEVT2
0010: DCBEVT1
0011: DCBEVT2
0100: TZ1
0101: TZ2
0110: TZ3
0111: EPWMxSYNCI
1000: DCEVTFILT
Others: Reserved

Reset type: SYSRSn

19.17.2.14 PCCTL Register (Offset = 14h) [Reset = 0000h]

PCCTL is shown in Figure 19-106 and described in Table 19-39.

Return to the Summary Table.

PWM Chopper Control Register

Figure 19-106 PCCTL Register
15141312111098
RESERVEDCHPDUTY
R-0-0hR/W-0h
76543210
CHPFREQOSHTWTHCHPEN
R/W-0hR/W-0hR/W-0h
Table 19-39 PCCTL Register Field Descriptions
BitFieldTypeResetDescription
15-11RESERVEDR-00hReserved
10-8CHPDUTYR/W0hChopping Clock Duty Cycle

000: Duty = 1/8 (12.5%)
001: Duty = 2/8 (25.0%)
010: Duty = 3/8 (37.5%)
011: Duty = 4/8 (50.0%)
100: Duty = 5/8 (62.5%)
101: Duty = 6/8 (75.0%)
110: Duty = 7/8 (87.5%)
111: Reserved

Reset type: SYSRSn

7-5CHPFREQR/W0hChopping Clock Frequency

000: Divide by 1 (no prescale, = 12.5 MHz at 100 MHz TBCLK)
001: Divide by 2 (6.25 MHz at 100 MHz TBCLK)
010: Divide by 3 (4.16 MHz at 100 MHz TBCLK)
011: Divide by 4 (3.12 MHz at 100 MHz TBCLK)
100: Divide by 5 (2.50 MHz at 100 MHz TBCLK)
101: Divide by 6 (2.08 MHz at 100 MHz TBCLK)
110: Divide by 7 (1.78 MHz at 100 MHz TBCLK)
111: Divide by 8 (1.56 MHz at 100 MHz TBCLK)

Reset type: SYSRSn

4-1OSHTWTHR/W0hOne-Shot Pulse Width

0000: 1 x EPWMCLK / 8 wide ( = 80 ns at 100 MHz EPWMCLK)
0001: 2 x EPWMCLK / 8 wide ( = 160 ns at 100 MHz EPWMCLK)
0010: 3 x EPWMCLK / 8 wide ( = 240 ns at 100 MHz EPWMCLK)
0011: 4 x EPWMCLK / 8 wide ( = 320 ns at 100 MHz EPWMCLK)
0100: 5 x EPWMCLK / 8 wide ( = 400 ns at 100 MHz EPWMCLK)
0101: 6 x EPWMCLK / 8 wide ( = 480 ns at 100 MHz EPWMCLK)
0110: 7 x EPWMCLK / 8 wide ( = 560 ns at 100 MHz EPWMCLK)
0111: 8 x EPWMCLK / 8 wide ( = 640 ns at 100 MHz EPWMCLK)
1000: 9 x EPWMCLK / 8 wide ( = 720 ns at 100 MHz EPWMCLK)
1001: 10 x EPWMCLK / 8 wide ( = 800 ns at 100 MHz EPWMCLK)
1010: 11 x EPWMCLK / 8 wide ( = 880 ns at 100 MHz EPWMCLK)
1011: 12 x EPWMCLK / 8 wide ( = 960 ns at 100 MHz EPWMCLK)
1100: 13 x EPWMCLK / 8 wide ( = 1040 ns at 100 MHz EPWMCLK)
1101: 14 x EPWMCLK / 8 wide ( = 1120 ns at 100 MHz EPWMCLK)
1110: 15 x EPWMCLK / 8 wide ( = 1200 ns at 100 MHz EPWMCLK)
1111: 16 x EPWMCLK / 8 wide ( = 1280 ns at 100 MHz EPWMCLK)

Reset type: SYSRSn

0CHPENR/W0hPWM-Chopping Enable

0: Disable (bypass) PWM chopping function
1: Enable chopping function

Reset type: SYSRSn

19.17.2.15 VCAPCTL Register (Offset = 18h) [Reset = 0000h]

VCAPCTL is shown in Figure 19-107 and described in Table 19-40.

Return to the Summary Table.

Valley Capture Control Register

Figure 19-107 VCAPCTL Register
15141312111098
RESERVEDEDGEFILTDLYSELVDELAYDIV
R-0-0hR/W-0hR/W-0h
76543210
VDELAYDIVRESERVEDTRIGSELVCAPSTARTVCAPE
R/W-0hR-0-0hR/W-0hR-0/W1S-0hR/W-0h
Table 19-40 VCAPCTL Register Field Descriptions
BitFieldTypeResetDescription
15-11RESERVEDR-00hReserved
10EDGEFILTDLYSELR/W0hValley Switching Mode Delay Selection

0: No delay applied to the edge filter output
1: HWDELAYVAL delay applied to the edge filter output

Reset type: SYSRSn

9-7VDELAYDIVR/W0hValley Delay Mode Divide Enable

000: HWVDELVAL = SWVDELVAL
001: HWVDELVAL = VCNTVAL+SWVDELVAL
010: HWVDELVAL = VCNTVAL>>1+SWVDELVAL
011: HWVDELVAL = VCNTVAL>>2+SWVDELVAL
100: HWVDELVAL = VCNTVAL>>4+SWVDELVAL

Note: Delay value between the consecutive edge captures can optionally be divided by using these bits.

Reset type: SYSRSn

6-5RESERVEDR-00hReserved
4-2TRIGSELR/W0hStatus of Numbered of Captured Events

000: Capture sequence is triggered by software via writes to VCAPCTL[VCAPSTART].
001: Capture sequence is triggered by CNT_zero event.
010: Capture sequence is triggered by PRD_eq event.
011: Capture sequence is triggered by CNT_zero or PRD_eq event.
100: Capture sequence is triggered by DCAEVT1 event.
101: Capture sequence is triggered by DCAEVT2 event.
110: Capture sequence is triggered by DCBEVT1 event.
111: Capture sequence is triggered by DCBEVT2 event.

Note: Valley capture sequence triggered by the selected event in this register field. Once the chosen event occurs the capture sequence is armed. Event captures occur based of the event chosen in DCFCTL[SRCSEL] register.

Note: Same event may not be chosen in both DCFCTL[SRCSEL] and VCAPCTL[TRIGSEL] registers.

Note: Once the chosen event in VCAPCTL[TRIGSEL] occurs, irrespective of the current capture status, capture sequence is retriggered.

Reset type: SYSRSn

1VCAPSTARTR-0/W1S0hValley Capture Start

0: Writing a 0 has no effect
1: Trigger the capture sequence once if VCAPCTL[TRIGSEL]=0x0

Note: This bit is used to start valley capture sequence through software. VCAPCTL[TRIGSEL] has to be chosen for software trigger for this bit to have any effect. Writing of 1 will result in one capture sequence trigger.

Reset type: SYSRSn

0VCAPER/W0hValley Capture Enable/Disable

0: Disabled
1: Enabled

Reset type: SYSRSn

19.17.2.16 VCNTCFG Register (Offset = 19h) [Reset = 0000h]

VCNTCFG is shown in Figure 19-108 and described in Table 19-41.

Return to the Summary Table.

Valley Counter Config Register

Figure 19-108 VCNTCFG Register
15141312111098
STOPEDGESTSRESERVEDSTOPEDGE
R-0hR-0-0hR/W-0h
76543210
STARTEDGESTSRESERVEDSTARTEDGE
R-0hR-0-0hR/W-0h
Table 19-41 VCNTCFG Register Field Descriptions
BitFieldTypeResetDescription
15STOPEDGESTSR0hStop Edge Status Bit

0: Stop edge has not occurred
1: Stop edge occurred

Note: This bit is set only after the trigger sequence is armed (upon occurrence of trigger pulse selected through VCAPCTL[TRIGSEL]) and STOPEDGE occurs.

Note:This bit is reset by the occurrence of the trigger pulse selected through VCAPCTL[TRIGSEL]

Reset type: SYSRSn

14-12RESERVEDR-00hReserved
11-8STOPEDGER/W0hCounter Stop Edge Selection

Once the counter operation is armed, upon occurrence of trigger pulse selected through VCAPCTL[TRIGSEL] pulse - valley counter would stop counting upon the occurrence of chosen number of events thorough this bit field. Stop counting on occurrence of:

0000: Do not stop
0001
1st edge
0010: 2nd edge
0011: 3rd edge
...
1,1,1,1: 15th edge

Reset type: SYSRSn

7STARTEDGESTSR0hStart Edge Status Bit

0: Start edge has not occurred
1: Start edge occurred

Note: This bit is set only after the trigger sequence is armed (upon occurrence of trigger pulse selected through VCAPCTL[TRIGSEL]) and STARTEDGE occurs.

Note:This bit is reset by the occurrence of the trigger pulse selected through VCAPCTL[TRIGSEL]

Reset type: SYSRSn

6-4RESERVEDR-00hReserved
3-0STARTEDGER/W0hCounter Start Edge Selection

Once the counter operation is armed, upon occurrence of trigger pulse selected through VCAPCTL[TRIGSEL] pulse - valley counter would start counting upon the occurrence of chosen number of events thorough this bit field. Start counting on occurrence of

0000: Do not start
0001: 1st edge
0010: 2nd edge
0011: 3rd edge
...
1111: 15th edge

Reset type: SYSRSn

19.17.2.17 HRCNFG Register (Offset = 20h) [Reset = 0000h]

HRCNFG is shown in Figure 19-109 and described in Table 19-42.

Return to the Summary Table.

HRPWM Configuration Register

This register is only accessible on EPWM modules with HRPWM capabilities.

Figure 19-109 HRCNFG Register
15141312111098
RESERVEDRESERVEDHRLOADBCTLMODEBEDGMODEB
R/W-0hR-0-0hR/W-0hR/W-0hR/W-0h
76543210
SWAPABAUTOCONVSELOUTBHRLOADCTLMODEEDGMODE
R/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0h
Table 19-42 HRCNFG Register Field Descriptions
BitFieldTypeResetDescription
15-14RESERVEDR/W0hReserved
13RESERVEDR-00hReserved
12-11HRLOADBR/W0hShadow Mode Bit

Selects the time event that loads the CMPBHR shadow value into the active register.

00: Load on CTR = Zero: Time-base counter equal to zero (TBCTR = 0x0000)
01: Load on CTR = PRD: Time-base counter equal to period (TBCTR = TBPRD)
10: Load on either CTR = Zero or CTR = PRD
11: Reserved

Reset type: SYSRSn

10CTLMODEBR/W0hControl Mode Bits

Selects the register (CMP/TBPRD or TBPHS) that controls the MEP:

0: CMPBHR(8) or TBPRDHR(8) Register controls the edge position (i.e., this is duty or period control mode). (Default on Reset)
1: TBPHSHR(8) Register controls the edge position (i.e., this is phase control mode).

Reset type: SYSRSn

9-8EDGMODEBR/W0hEdge Mode Bits

Selects the edge of the PWM that is controlled by the micro-edge position (MEP) logic:

00: HRPWM capability is disabled (default on reset)
01: MEP control of rising edge (CMPBHR)
10: MEP control of falling edge (CMPBHR)
11: MEP control of both edges (TBPHSHR or TBPRDHR)

Reset type: SYSRSn

7SWAPABR/W0hSwap ePWM A & B Output Signals

This bit enables the swapping of the A & B signal outputs. The selection is as follows:

0: ePWMxA and ePWMxB outputs are unchanged.
1: ePWMxA signal appears on ePWMxB output and ePWMxB signal appears on ePWMxA output.

Reset type: SYSRSn

6AUTOCONVR/W0hAuto Convert Delay Line Value

Selects whether the fractional duty cycle/period/phase in the CMPAHR/TBPRDHR/TBPHSHR register is automatically scaled by the MEP scale factor in the HRMSTEP register or manually scaled by calculations in application software. The SFO library function automatically updates the HRMSTEP register with the appropriate MEP scale factor.

0: Automatic HRMSTEP scaling is disabled.
1: Automatic HRMSTEP scaling is enabled.

If application software is manually scaling the fractional duty cycle, or phase (i.e. software sets CMPAHR = (fraction(PWMduty * PWMperiod) * MEP Scale Factor)<<8 + 0x080 for duty cycle), then this mode must be disabled.

Reset type: SYSRSn

5SELOUTBR/W0hEPWMxB Output Select Bit

This bit selects which signal is output on the ePWMxB channel output.
The inversion will take the high resolution mode into account and the inverted signal will contain any high resolution modification. The inversion takes place as the last step in modifying the ePWMxB signal.

0: ePWMxB output is normal.
1: ePWMxB output is inverted version of ePWMxA signal.

Reset type: SYSRSn

4-3HRLOADR/W0hShadow Mode Bit

Selects the time event that loads the CMPAHR shadow value into the active register.

00: Load on CTR = Zero: Time-base counter equal to zero (TBCTR = 0x0000)
01: Load on CTR = PRD: Time-base counter equal to period (TBCTR = TBPRD)
10: Load on either CTR = Zero or CTR = PRD
11: Reserved

Reset type: SYSRSn

2CTLMODER/W0hControl Mode Bits

Selects the register (CMP/TBPRD or TBPHS) that controls the MEP:

0: CMPAHR(8) or TBPRDHR(8) Register controls the edge position (i.e., this is duty or period control mode). (Default on Reset)
1: TBPHSHR(8) Register controls the edge position (i.e., this is phase control mode).

Reset type: SYSRSn

1-0EDGMODER/W0hEdge Mode Bits

Selects the edge of the PWM that is controlled by the micro-edge position (MEP) logic:

00: HRPWM capability is disabled (default on reset)
01: MEP control of rising edge (CMPAHR)
10: MEP control of falling edge (CMPAHR)
11: MEP control of both edges (TBPHSHR or TBPRDHR)

Reset type: SYSRSn

19.17.2.18 HRPWR Register (Offset = 21h) [Reset = 0000h]

HRPWR is shown in Figure 19-110 and described in Table 19-43.

Return to the Summary Table.

HRPWM Power Register

This register is only accessible on EPWM modules with HRPWM capabilities.

Figure 19-110 HRPWR Register
15141312111098
CALPWRONRESERVEDRESERVED
R/W-0hR-0-0hR/W-0h
76543210
RESERVEDRESERVEDRESERVEDRESERVEDRESERVEDRESERVED
R/W-0hR/W-0hR-0hR/W-0hR/W-0hR/W-0h
Table 19-43 HRPWR Register Field Descriptions
BitFieldTypeResetDescription
15CALPWRONR/W0hMEP Calibration Power Bits (only available on ePWM1)

0: Disables MEP calibration logic in the HRPWM and reduces power consumption.
1: Enables MEP calibration logic

Reset type: SYSRSn

14-10RESERVEDR-00hReserved
9-6RESERVEDR/W0hReserved
5RESERVEDR/W0hReserved
4RESERVEDR0hReserved
3RESERVEDR/W0hReserved
2RESERVEDR/W0hReserved
1-0RESERVEDR/W0hReserved

19.17.2.19 HRMSTEP Register (Offset = 26h) [Reset = 0000h]

HRMSTEP is shown in Figure 19-111 and described in Table 19-44.

Return to the Summary Table.

HRPWM MEP Step Register

This register is only accessible on EPWM modules with HRPWM capabilities. Only 16 bit accesses are allowed for this register. Debugger access in 32 bit mode may display incorrect values.

Figure 19-111 HRMSTEP Register
15141312111098
RESERVED
R-0-0h
76543210
HRMSTEP
R/W-0h
Table 19-44 HRMSTEP Register Field Descriptions
BitFieldTypeResetDescription
15-8RESERVEDR-00hReserved
7-0HRMSTEPR/W0hHigh Resolution MEP Step

When auto-conversion is enabled (HRCNFG[AUTOCONV] = 1), This 8-bit field contains the MEP_ScaleFactor (number of MEP steps per coarse steps) used by the hardware to automatically convert the value in the CMPAHR, CMPBHR, DBFEDHR, DBREDHR , TBPHSHR, or TBPRDHR register to a scaled micro-edge delay on the high-resolution ePWM output. The value in this register is written by the SFO calibration software at the end of each calibration run.

Reset type: SYSRSn

19.17.2.20 HRCNFG2 Register (Offset = 27h) [Reset = 0000h]

HRCNFG2 is shown in Figure 19-112 and described in Table 19-45.

Return to the Summary Table.

HRPWM Configuration 2 Register

This register is only accessible on EPWM modules with HRPWM capabilities. Only 16 bit accesses are allowed for this register. Debugger access in 32 bit mode may display incorrect values.

Figure 19-112 HRCNFG2 Register
15141312111098
RESERVEDRESERVEDRESERVED
R/W-0hR-0/W1S-0hR-0-0h
76543210
RESERVEDCTLMODEDBFEDCTLMODEDBREDEDGMODEDB
R-0-0hR/W-0hR/W-0hR/W-0h
Table 19-45 HRCNFG2 Register Field Descriptions
BitFieldTypeResetDescription
15RESERVEDR/W0hReserved
14RESERVEDR-0/W1S0hReserved
13-6RESERVEDR-00hReserved
5-4CTLMODEDBFEDR/W0hShadow Mode Bit - selection should match DBCTL[LOADFEDMODE]

Selects the time event that loads the DBFEDHR shadow value into the active register.

00 Load on CTR = Zero: Time-base counter equal to zero (TBCTR = 0x0000)
01 Load on CTR = PRD: Time-base counter equal to period (TBCTR = TBPRD)
10 Load on either CTR = Zero or CTR = PRD
11 Reserved

Reset type: SYSRSn

3-2CTLMODEDBREDR/W0hShadow Mode Bit - selection should match DBCTL[LOADREDMODE]

Selects the time event that loads the DBREDHR shadow value into the active register.

00 Load on CTR = Zero: Time-base counter equal to zero (TBCTR = 0x0000)
01 Load on CTR = PRD: Time-base counter equal to period (TBCTR = TBPRD)
10 Load on either CTR = Zero or CTR = PRD
11 Reserved

Reset type: SYSRSn

1-0EDGMODEDBR/W0hEdge Mode Bits

Selects the edge of the PWM that is controlled by the micro-edge position (MEP) logic:

00 HRPWM capability is disabled (default on reset)
01 MEP control of rising edge (DBREDHR)
10 MEP control of falling edge (DBFEDHR)
11 MEP control of both edges (rising edge of DBREDHR or falling edge of DBFEDHR )

Reset type: SYSRSn

19.17.2.21 HRPCTL Register (Offset = 2Dh) [Reset = 0000h]

HRPCTL is shown in Figure 19-113 and described in Table 19-46.

Return to the Summary Table.

High Resolution Period Control Register

Fields in this register related to HRPWM are only applicable on EPWM modules with HRPWM capabilities.

Figure 19-113 HRPCTL Register
15141312111098
RESERVED
R-0-0h
76543210
RESERVEDPWMSYNCSELXRESERVEDTBPHSHRLOADEPWMSYNCSELHRPE
R-0-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0h
Table 19-46 HRPCTL Register Field Descriptions
BitFieldTypeResetDescription
15-7RESERVEDR-00hReserved
6-4PWMSYNCSELXR/W0hExtended selection bits for EPWMSYNCPER

000: EPWMSYNCPER is defined by PWMSYNCSEL - > default condition (compatible with previous EPWM versions)
001: Reserved
010: Reserved
011: Reserved
100: CTR = CMPC, Count direction Up
101: CTR = CMPC, Count direction Down
110: CTR = CMPD, Count direction Up
111: CTR = CMPD, Count direction Down

Reset type: SYSRSn

3RESERVEDR/W0hReserved
2TBPHSHRLOADER/W0hTBPHSHR Load Enable

This bit allows you to synchronize ePWM modules with a high-resolution phase on a SYNCIN, TBCTL[SWFSYNC] or digital compare event. This allows for multiple ePWM modules operating at the same frequency to be phase aligned with high-resolution.

0: Disables synchronization of high-resolution phase on a SYNCIN, TBCTL[SWFSYNC] or digital compare event:
1: Synchronize the high-resolution phase on a SYNCIN, TBCTL[SWFSYNC] or digital comparator synchronization event. The phase is synchronized using the contents of the high-resolution phase TBPHSHR register. The TBCTL[PHSEN] bit which enables the loading of the TBCTR register with TBPHS register value on a SYNCIN or TBCTL[SWFSYNC] event works independently. However, users need to enable this bit also if they want to control phase in conjunction with the high-resolution period feature.

This bit and the TBCTL[PHSEN] bit must be set to 1 when high-resolution period is enabled for up-down count mode even if TBPHSHR = 0x0000. This bit does not need to be set when only high-resolution duty is enabled.

Reset type: SYSRSn

1PWMSYNCSELR/W0hPWMSYNC Source Select Bit: This bit selects the source for the EPWMSYNCPER signal that goes to the CMPSS and GPDAC:

0 CTR = PRD: Time-base counter equal to period (TBCTR = TBPRD)
1 CTR = zero: Time-base counter equal to zero (TBCTR = 0x00)

Reset type: SYSRSn

0HRPER/W0hHigh Resolution Period Enable Bit

0: High resolution period feature disabled. In this mode the ePWM behaves as a Type 4 ePWM.
1: High resolution period enabled. In this mode the HRPWM module can control high-resolution of both the duty and frequency. When high-resolution period is enabled, TBCTL[CTRMODE] = 0,1 (down-count mode) is not supported.

Reset type: SYSRSn

19.17.2.22 TRREM Register (Offset = 2Eh) [Reset = 0000h]

TRREM is shown in Figure 19-114 and described in Table 19-47.

Return to the Summary Table.

HRPWM High Resolution Remainder Register

This register is only accessible on EPWM modules with HRPWM capabilities.

Figure 19-114 TRREM Register
15141312111098
RESERVEDTRREM
R-0-0hR/W-0h
76543210
TRREM
R/W-0h
Table 19-47 TRREM Register Field Descriptions
BitFieldTypeResetDescription
15-11RESERVEDR-00hReserved
10-0TRREMR/W0hHRPWM Remainder Bits: This 11-bit value keeps track of the remainder portion of the HRPWM algorithm calculations.
This value keeps track of the remainder portion of the HRPWM hardware calculations.
Notes:
1. The lower 8-bits of the TRREM register can be automatically initialized with the TBPHSHR value on a SYNCIN or TBCTL[SWFSYNC] event or DC event (if enabled). The user can also write a value with the CPU.
2. Priority of TRREM register updates:
Sync (software or hardware) TBPHSHR copied to TRREM : Highest Priority
HRPWM Hardware (updates TRREM register): Next priority
CPU Write To TRREM Register: Lowest Priority
3. Bit 10 of TRREM register is not used in asymmetrical mode. This bit can be forced to zero.
TRREM will be initialized to 0x0 and 0x100 in Up and Up-down modes respectively.
Asymmetrical Mode:
TRREM[7:0] = TBPHSHR[15:8]
TRREM[10,9,8] = 0,0,0
Symmetrical Mode:
TRREM[7:0] = TBPHSHR[15:8]
TRREM[10,9,8] = 0,0,1

Reset type: SYSRSn

19.17.2.23 GLDCTL Register (Offset = 34h) [Reset = 0000h]

GLDCTL is shown in Figure 19-115 and described in Table 19-48.

Return to the Summary Table.

Global PWM Load Control Register

Figure 19-115 GLDCTL Register
15141312111098
RESERVEDGLDCNTGLDPRD
R-0-0hR-0hR/W-0h
76543210
GLDPRDRESERVEDOSHTMODEGLDMODEGLD
R/W-0hR-0-0hR/W-0hR/W-0hR/W-0h
Table 19-48 GLDCTL Register Field Descriptions
BitFieldTypeResetDescription
15-13RESERVEDR-00hReserved
12-10GLDCNTR0hGlobal Load Strobe Counter Register

These bits indicate how many selected events have occurred:

000: No events
001: 1 event
010: 2 events
011: 3 events
100: 4 events
101: 5 events
110: 6 events
111: 7 events

Reset type: SYSRSn

9-7GLDPRDR/W0hGlobal Load Strobe Period Select Register

These bits select how many selected events need to occur before a load strobe is generated

000: Disable counter
001: Generate strobe on GLDCNT = 001 (1st event)
010: Generate strobe on GLDCNT = 010 (2nd event)
011: Generate strobe on GLDCNT = 011 (3rd event)
100: Generate strobe on GLDCNT = 011 (4th event)
101: Generate strobe on GLDCNT = 001 (5th event)
110: Generate strobe on GLDCNT = 010 (6th event)
111: Generate strobe on GLDCNT = 011 (7th event)

Reset type: SYSRSn

6RESERVEDR-00hReserved
5OSHTMODER/W0hOne Shot Load Mode Control Bit

0: One shot load mode is disabled and shadow to active loading happens continuously on all the chosen load strobes.
1: One shot mode is active. All load strobes are blocked until GLDCTL2[OSHTLD] is written with 1.

Note: One Shot mode can only be used with global shadow to active load mode enabled (GLDCTL[GLD]=1)

Reset type: SYSRSn

4-1GLDMODER/W0hGlobal Load Pulse selection for Shadow to Active Mode Reloads

0000: Load on Counter = 0 (CNT_ZRO)
0001: Load on Counter = Period (PRD_EQ)
0010: Load on either Counter = 0, or Counter = Period
0011: Load on SYNCEVT - this is logical OR of DCAEVT1.sync, DCBEVT1.sync, EPWMxSYNCI and TBCTL[SWFSYNC]
0100: Load on SYNCEVT or CNT_ZRO
0101: Load on SYNCEVT or PRD_EQ
0110: Load on SYNCEVT or CNT_ZRO or PRD_EQ
1000: Reserved
...
1110: Reserved
1111: Load on GLDCTL2[GFRCLD] write

Reset type: SYSRSn

0GLDR/W0hGlobal Shadow to Active Load Event Control

0: Shadow to active reload for all shadowed registers happens as per the individual reload control bits specified (Compatible with previous EPWM versions).

1: When set, all the shadow to active reload events are defined by GLDMODE bits in GLDCTL register. All the shadow registers use same reload pulse from shadow to active reloading. Individual LOADMODE bits are ignored.

Reset type: SYSRSn

19.17.2.24 GLDCFG Register (Offset = 35h) [Reset = 0000h]

GLDCFG is shown in Figure 19-116 and described in Table 19-49.

Return to the Summary Table.

Global PWM Load Config Register

Figure 19-116 GLDCFG Register
15141312111098
RESERVEDAQCSFRCAQCTLB_AQCTLB2AQCTLA_AQCTLA2
R-0-0hR/W-0hR/W-0hR/W-0h
76543210
DBCTLDBFED_DBFEDHRDBRED_DBREDHRCMPDCMPCCMPB_CMPBHRCMPA_CMPAHRTBPRD_TBPRDHR
R/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0h
Table 19-49 GLDCFG Register Field Descriptions
BitFieldTypeResetDescription
15-11RESERVEDR-00hReserved
10AQCSFRCR/W0hGlobal load event configuration for AQCSFRC

0: Registers use local reload configuration even if GLDCTL(GLD)=1 (reload is compatible with previous EPWMs)
1: Registers use global load configuration if this bit is set and GLDCTL(GLD)=1

Reset type: SYSRSn

9AQCTLB_AQCTLB2R/W0hGlobal load event configuration for AQCTLB_AQCTLB2

0: Registers use local reload configuration even if GLDCTL(GLD)=1 (reload is compatible with previous EPWMs)
1: Registers use global load configuration if this bit is set and GLDCTL(GLD)=1

Reset type: SYSRSn

8AQCTLA_AQCTLA2R/W0hGlobal load event configuration for AQCTLA_AQCTLA2

0: Registers use local reload configuration even if GLDCTL(GLD)=1 (reload is compatible with previous EPWMs)
1: Registers use global load configuration if this bit is set and GLDCTL(GLD)=1

Reset type: SYSRSn

7DBCTLR/W0hGlobal load event configuration for DBCTL

0: Registers use local reload configuration even if GLDCTL(GLD)=1 (reload is compatible with previous EPWMs)
1: Registers use global load configuration if this bit is set and GLDCTL(GLD)=1

Reset type: SYSRSn

6DBFED_DBFEDHRR/W0hGlobal load event configuration for DBFED_DBFEDHR

0: Registers use local reload configuration even if GLDCTL(GLD)=1 (reload is compatible with previous EPWMs)
1: Registers use global load configuration if this bit is set and GLDCTL(GLD)=1

Reset type: SYSRSn

5DBRED_DBREDHRR/W0hGlobal load event configuration for DBRED_DBREDHR

0: Registers use local reload configuration even if GLDCTL(GLD)=1 (reload is compatible with previous EPWMs)
1: Registers use global load configuration if this bit is set and GLDCTL(GLD)=1

Reset type: SYSRSn

4CMPDR/W0hGlobal load event configuration for CMPD

0: Registers use local reload configuration even if GLDCTL(GLD)=1 (reload is compatible with previous EPWMs)
1: Registers use global load configuration if this bit is set and GLDCTL(GLD)=1

Reset type: SYSRSn

3CMPCR/W0hGlobal load event configuration for CMPC

0: Registers use local reload configuration even if GLDCTL(GLD)=1 (reload is compatible with previous EPWMs)
1: Registers use global load configuration if this bit is set and GLDCTL(GLD)=1

Reset type: SYSRSn

2CMPB_CMPBHRR/W0hGlobal load event configuration for CMPB_CMPBHR

0: Registers use local reload configuration even if GLDCTL(GLD)=1 (reload is compatible with previous EPWMs)
1: Registers use global load configuration if this bit is set and GLDCTL(GLD)=1

Reset type: SYSRSn

1CMPA_CMPAHRR/W0hGlobal load event configuration for CMPA_CMPAHR

0: Registers use local reload configuration even if GLDCTL(GLD)=1 (reload is compatible with previous EPWMs)
1: Registers use global load configuration if this bit is set and GLDCTL(GLD)=1

Reset type: SYSRSn

0TBPRD_TBPRDHRR/W0hGlobal load event configuration for TBPRD_TBPRDHR

0: Registers use local reload configuration even if GLDCTL(GLD)=1 (reload is compatible with previous EPWMs)
1: Registers use global load configuration if this bit is set and GLDCTL(GLD)=1

Reset type: SYSRSn

19.17.2.26 AQCTLA Register (Offset = 40h) [Reset = 0000h]

AQCTLA is shown in Figure 19-118 and described in Table 19-51.

Return to the Summary Table.

Action Qualifier Control Register For Output A

Figure 19-118 AQCTLA Register
15141312111098
RESERVEDCBDCBU
R-0-0hR/W-0hR/W-0h
76543210
CADCAUPRDZRO
R/W-0hR/W-0hR/W-0hR/W-0h
Table 19-51 AQCTLA Register Field Descriptions
BitFieldTypeResetDescription
15-12RESERVEDR-00hReserved
11-10CBDR/W0hAction When TBCTR = CMPB on Down Count

Note: By definition, in count up-down mode when the counter equals 0 the direction is defined as 1 or counting up.

00: Do nothing (action disabled)
01: Clear: force EPWMxA output low.
10: Set: force EPWMxA output high.
11: Toggle EPWMxA output: low output signal will be forced high, and a high signal will be forced low.

Reset type: SYSRSn

9-8CBUR/W0hAction When TBCTR = CMPB on Up Count

Note: By definition, in count up-down mode when the counter equals 0 the direction is defined as 1 or counting up.

00: Do nothing (action disabled)
01: Clear: force EPWMxA output low.
10: Set: force EPWMxA output high.
11: Toggle EPWMxA output: low output signal will be forced high, and a high signal will be forced low.

Reset type: SYSRSn

7-6CADR/W0hAction When TBCTR = CMPA on Down Count

Note: By definition, in count up-down mode when the counter equals 0 the direction is defined as 1 or counting up.

00: Do nothing (action disabled)
01: Clear: force EPWMxA output low.
10: Set: force EPWMxA output high.
11: Toggle EPWMxA output: low output signal will be forced high, and a high signal will be forced low.

Reset type: SYSRSn

5-4CAUR/W0hAction When TBCTR = CMPA on Up Count

Note: By definition, in count up-down mode when the counter equals 0 the direction is defined as 1 or counting up.

00: Do nothing (action disabled)
01: Clear: force EPWMxA output low.
10: Set: force EPWMxA output high.
11: Toggle EPWMxA output: low output signal will be forced high, and a high signal will be forced low.

Reset type: SYSRSn

3-2PRDR/W0hAction When TBCTR = TBPRD

Note: By definition, in count up-down mode when the counter equals 0 the direction is defined as 1 or counting up.

00: Do nothing (action disabled)
01: Clear: force EPWMxA output low.
10: Set: force EPWMxA output high.
11: Toggle EPWMxA output: low output signal will be forced high, and a high signal will be forced low.

Reset type: SYSRSn

1-0ZROR/W0hAction When TBCTR = 0

Note: By definition, in count up-down mode when the counter equals 0 the direction is defined as 1 or counting up.

00: Do nothing (action disabled)
01: Clear: force EPWMxA output low.
10: Set: force EPWMxA output high.
11: Toggle EPWMxA output: low output signal will be forced high, and a high signal will be forced low.

Reset type: SYSRSn

19.17.2.27 AQCTLA2 Register (Offset = 41h) [Reset = 0000h]

AQCTLA2 is shown in Figure 19-119 and described in Table 19-52.

Return to the Summary Table.

Additional Action Qualifier Control Register For Output A

Figure 19-119 AQCTLA2 Register
15141312111098
RESERVED
R-0-0h
76543210
T2DT2UT1DT1U
R/W-0hR/W-0hR/W-0hR/W-0h
Table 19-52 AQCTLA2 Register Field Descriptions
BitFieldTypeResetDescription
15-8RESERVEDR-00hReserved
7-6T2DR/W0hAction when event occurs on T2 in DOWN-Count

Note: By definition, in count up-down mode when the counter equals 0 the direction is defined as 1 or counting up.

00: Do nothing (action disabled)
01: Clear: force EPWMxA output low.
10: Set: force EPWMxA output high.
11: Toggle EPWMxA output: low output signal will be forced high, and a high signal will be forced low.

Reset type: SYSRSn

5-4T2UR/W0hAction when event occurs on T2 in UP-Count

Note: By definition, in count up-down mode when the counter equals 0 the direction is defined as 1 or counting up.

00: Do nothing (action disabled)
01: Clear: force EPWMxA output low.
10: Set: force EPWMxA output high.
11: Toggle EPWMxA output: low output signal will be forced high, and a high signal will be forced low.

Reset type: SYSRSn

3-2T1DR/W0hAction when event occurs on T1 in DOWN-Count

Note: By definition, in count up-down mode when the counter equals 0 the direction is defined as 1 or counting up.

00: Do nothing (action disabled)
01: Clear: force EPWMxA output low.
10: Set: force EPWMxA output high.
11: Toggle EPWMxA output: low output signal will be forced high, and a high signal will be forced low.

Reset type: SYSRSn

1-0T1UR/W0hAction when event occurs on T1 in UP-Count

Note: By definition, in count up-down mode when the counter equals 0 the direction is defined as 1 or counting up.

00: Do nothing (action disabled)
01: Clear: force EPWMxA output low.
10: Set: force EPWMxA output high.
11: Toggle EPWMxA output: low output signal will be forced high, and a high signal will be forced low.

Reset type: SYSRSn

19.17.2.28 AQCTLB Register (Offset = 42h) [Reset = 0000h]

AQCTLB is shown in Figure 19-120 and described in Table 19-53.

Return to the Summary Table.

Action Qualifier Control Register For Output B

Figure 19-120 AQCTLB Register
15141312111098
RESERVEDCBDCBU
R-0-0hR/W-0hR/W-0h
76543210
CADCAUPRDZRO
R/W-0hR/W-0hR/W-0hR/W-0h
Table 19-53 AQCTLB Register Field Descriptions
BitFieldTypeResetDescription
15-12RESERVEDR-00hReserved
11-10CBDR/W0hAction When TBCTR = CMPB on Down Count

Note: By definition, in count up-down mode when the counter equals 0 the direction is defined as 1 or counting up.

00: Do nothing (action disabled)
01: Clear: force EPWMxB output low.
10: Set: force EPWMxB output high.
11: Toggle EPWMxB output: low output signal will be forced high, and a high signal will be forced low.

Reset type: SYSRSn

9-8CBUR/W0hAction When TBCTR = CMPB on Up Count

Note: By definition, in count up-down mode when the counter equals 0 the direction is defined as 1 or counting up.

00: Do nothing (action disabled)
01: Clear: force EPWMxB output low.
10: Set: force EPWMxB output high.
11: Toggle EPWMxB output: low output signal will be forced high, and a high signal will be forced low.

Reset type: SYSRSn

7-6CADR/W0hAction When TBCTR = CMPA on Down Count

Note: By definition, in count up-down mode when the counter equals 0 the direction is defined as 1 or counting up.

00: Do nothing (action disabled)
01: Clear: force EPWMxB output low.
10: Set: force EPWMxB output high.
11: Toggle EPWMxB output: low output signal will be forced high, and a high signal will be forced low.

Reset type: SYSRSn

5-4CAUR/W0hAction When TBCTR = CMPA on Up Count

Note: By definition, in count up-down mode when the counter equals 0 the direction is defined as 1 or counting up.

00: Do nothing (action disabled)
01: Clear: force EPWMxB output low.
10: Set: force EPWMxB output high.
11: Toggle EPWMxB output: low output signal will be forced high, and a high signal will be forced low.

Reset type: SYSRSn

3-2PRDR/W0hAction When TBCTR = TBPRD

Note: By definition, in count up-down mode when the counter equals 0 the direction is defined as 1 or counting up.

00: Do nothing (action disabled)
01: Clear: force EPWMxB output low.
10: Set: force EPWMxB output high.
11: Toggle EPWMxB output: low output signal will be forced high, and a high signal will be forced low.

Reset type: SYSRSn

1-0ZROR/W0hAction When TBCTR = 0

Note: By definition, in count up-down mode when the counter equals 0 the direction is defined as 1 or counting up.

00: Do nothing (action disabled)
01: Clear: force EPWMxB output low.
10: Set: force EPWMxB output high.
11: Toggle EPWMxB output: low output signal will be forced high, and a high signal will be forced low.

Reset type: SYSRSn

19.17.2.29 AQCTLB2 Register (Offset = 43h) [Reset = 0000h]

AQCTLB2 is shown in Figure 19-121 and described in Table 19-54.

Return to the Summary Table.

Additional Action Qualifier Control Register For Output B

Figure 19-121 AQCTLB2 Register
15141312111098
RESERVED
R-0-0h
76543210
T2DT2UT1DT1U
R/W-0hR/W-0hR/W-0hR/W-0h
Table 19-54 AQCTLB2 Register Field Descriptions
BitFieldTypeResetDescription
15-8RESERVEDR-00hReserved
7-6T2DR/W0hAction when event occurs on T2 in DOWN-Count

Note: By definition, in count up-down mode when the counter equals 0 the direction is defined as 1 or counting up.

00: Do nothing (action disabled)
01: Clear: force EPWMxB output low.
10: Set: force EPWMxB output high.
11: Toggle EPWMxB output: low output signal will be forced high, and a high signal will be forced low.

Reset type: SYSRSn

5-4T2UR/W0hAction when event occurs on T2 in UP-Count

Note: By definition, in count up-down mode when the counter equals 0 the direction is defined as 1 or counting up.

00: Do nothing (action disabled)
01: Clear: force EPWMxB output low.
10: Set: force EPWMxB output high.
11: Toggle EPWMxB output: low output signal will be forced high, and a high signal will be forced low.

Reset type: SYSRSn

3-2T1DR/W0hAction when event occurs on T1 in DOWN-Count

Note: By definition, in count up-down mode when the counter equals 0 the direction is defined as 1 or counting up.

00: Do nothing (action disabled)
01: Clear: force EPWMxB output low.
10: Set: force EPWMxB output high.
11: Toggle EPWMxB output: low output signal will be forced high, and a high signal will be forced low.

Reset type: SYSRSn

1-0T1UR/W0hAction when event occurs on T1 in UP-Count

Note: By definition, in count up-down mode when the counter equals 0 the direction is defined as 1 or counting up.

00: Do nothing (action disabled)
01: Clear: force EPWMxB output low.
10: Set: force EPWMxB output high.
11: Toggle EPWMxB output: low output signal will be forced high, and a high signal will be forced low.

Reset type: SYSRSn

19.17.2.30 AQSFRC Register (Offset = 47h) [Reset = 0000h]

AQSFRC is shown in Figure 19-122 and described in Table 19-55.

Return to the Summary Table.

Action Qualifier Software Force Register

Figure 19-122 AQSFRC Register
15141312111098
RESERVED
R-0-0h
76543210
RLDCSFOTSFBACTSFBOTSFAACTSFA
R/W-0hR-0/W1S-0hR/W-0hR-0/W1S-0hR/W-0h
Table 19-55 AQSFRC Register Field Descriptions
BitFieldTypeResetDescription
15-8RESERVEDR-00hReserved
7-6RLDCSFR/W0hAQCSFRC Active Register Reload From Shadow Options

00: Load on time-base counter equals zero
01: Load on time-base counter equals period
10: Load on time-base counter equals zero or counter equals period
11: Load immediately (the active register is directly accessed by the CPU and is not loaded from the shadow register).

Reset type: SYSRSn

5OTSFBR-0/W1S0hOne-Time Software Forced Event on Output B

0: Writing a 0 (zero) has no effect. Always reads back a 0. This bit is auto cleared once a write to this register is complete (i.e., a forced event is initiated.). This is a one-shot forced event. It can be overridden by another subsequent event on output B.
1: Initiates a single software forced event

Reset type: SYSRSn

4-3ACTSFBR/W0hAction When One-Time Software Force B is Invoked

00: Does nothing (action disabled)
01: Clear (low)
10: Set (high)
11: Toggle (Low -> High, High -> Low)

Note: This action is not qualified by counter direction (CNT_dir)

Reset type: SYSRSn

2OTSFAR-0/W1S0hOne-Time Software Forced Event on Output A

0: Writing a 0 (zero) has no effect. Always reads back a 0. This bit is auto cleared once a write to this register is complete ( i.e., a forced event is initiated). This is a one-shot forced event. It can be overridden by another subsequent event on output A.
1: Initiates a single software forced event

Reset type: SYSRSn

1-0ACTSFAR/W0hAction When One-Time Software Force A Is Invoked

00: Does nothing (action disabled)
01: Clear (low)
10: Set (high)
11: Toggle (Low -> High, High -> Low)

Note: This action is not qualified by counter direction (CNT_dir)

Reset type: SYSRSn

19.17.2.31 AQCSFRC Register (Offset = 49h) [Reset = 0000h]

AQCSFRC is shown in Figure 19-123 and described in Table 19-56.

Return to the Summary Table.

Action Qualifier Continuous S/W Force Register

Figure 19-123 AQCSFRC Register
15141312111098
RESERVED
R-0-0h
76543210
RESERVEDCSFBCSFA
R-0-0hR/W-0hR/W-0h
Table 19-56 AQCSFRC Register Field Descriptions
BitFieldTypeResetDescription
15-4RESERVEDR-00hReserved
3-2CSFBR/W0hContinuous Software Force on Output B

In immediate mode, a continuous force takes effect on the next TBCLK edge. In shadow mode, a continuous force takes effect on the next TBCLK edge after a shadow load into the active register. To configure shadow mode, use AQSFRC[RLDCSF].

00: Software forcing is disabled and has no effect
01: Forces a continuous low on output B
10: Forces a continuous high on output B
11: Software forcing is disabled and has no effect

Reset type: SYSRSn

1-0CSFAR/W0hContinuous Software Force on Output A

In immediate mode, a continuous force takes effect on the next TBCLK edge. In shadow mode, a continuous force takes effect on the next TBCLK edge after a shadow load into the active register.

00: Software forcing is disabled and has no effect
01: Forces a continuous low on output A
10: Forces a continuous high on output A
11: Software forcing is disabled and has no effect

Reset type: SYSRSn

19.17.2.32 DBREDHR Register (Offset = 50h) [Reset = 0000h]

DBREDHR is shown in Figure 19-124 and described in Table 19-57.

Return to the Summary Table.

Dead-Band Generator Rising Edge Delay High Resolution Mirror Register

Figure 19-124 DBREDHR Register
15141312111098
DBREDHRRESERVED
R/W-0hR-0h
76543210
RESERVEDRESERVED
R-0hR-0h
Table 19-57 DBREDHR Register Field Descriptions
BitFieldTypeResetDescription
15-9DBREDHRR/W0hDead Band Rising Edge Delay High Resolution Bits

Reset type: SYSRSn

8RESERVEDR0hReserved
7-1RESERVEDR0hReserved
0RESERVEDR0hReserved

19.17.2.33 DBRED Register (Offset = 51h) [Reset = 0000h]

DBRED is shown in Figure 19-125 and described in Table 19-58.

Return to the Summary Table.

Dead-Band Generator Rising Edge Delay High Resolution Mirror Register

Figure 19-125 DBRED Register
15141312111098
RESERVEDDBRED
R-0hR/W-0h
76543210
DBRED
R/W-0h
Table 19-58 DBRED Register Field Descriptions
BitFieldTypeResetDescription
15-14RESERVEDR0hReserved
13-0DBREDR/W0hRising edge delay value

Reset type: SYSRSn

19.17.2.34 DBFEDHR Register (Offset = 52h) [Reset = 0000h]

DBFEDHR is shown in Figure 19-126 and described in Table 19-59.

Return to the Summary Table.

Dead-Band Generator Falling Edge Delay High Resolution Register

Figure 19-126 DBFEDHR Register
15141312111098
DBFEDHRRESERVED
R/W-0hR-0h
76543210
RESERVEDRESERVED
R-0hR-0h
Table 19-59 DBFEDHR Register Field Descriptions
BitFieldTypeResetDescription
15-9DBFEDHRR/W0hDead Band Falling Edge Delay High Resolution Bits

Reset type: SYSRSn

8RESERVEDR0hReserved
7-1RESERVEDR0hReserved
0RESERVEDR0hReserved

19.17.2.35 DBFED Register (Offset = 53h) [Reset = 0000h]

DBFED is shown in Figure 19-127 and described in Table 19-60.

Return to the Summary Table.

Dead-Band Generator Falling Edge Delay Count Register

Figure 19-127 DBFED Register
15141312111098
RESERVEDDBFED
R-0hR/W-0h
76543210
DBFED
R/W-0h
Table 19-60 DBFED Register Field Descriptions
BitFieldTypeResetDescription
15-14RESERVEDR0hReserved
13-0DBFEDR/W0hFalling Edge Delay Count

14-bit counter

Reset type: SYSRSn

19.17.2.36 TBPHS Register (Offset = 60h) [Reset = 00000000h]

TBPHS is shown in Figure 19-128 and described in Table 19-61.

Return to the Summary Table.

Time Base Phase High

Figure 19-128 TBPHS Register
313029282726252423222120191817161514131211109876543210
TBPHSTBPHSHR
R/W-0hR/W-0h
Table 19-61 TBPHS Register Field Descriptions
BitFieldTypeResetDescription
31-16TBPHSR/W0hPhase Offset Register

These bits set time-base counter phase of the selected ePWM relative to the time-base that is supplying the synchronization input signal.

- If TBCTL[PHSEN] = 0, then the synchronization event is ignored and the time-base counter is not loaded with the phase.
- If TBCTL[PHSEN] = 1, then the time-base counter (TBCTR) will be loaded with the phase (TBPHS) when a synchronization event occurs. The synchronization event can be initiated by the input synchronization signal (EPWMxSYNCI) or by a software forced synchronization.

Reset type: SYSRSn

15-0TBPHSHRR/W0hPhase Offset (High Resolution) Register.
TBPHSHR must not be used. Instead TRREM (HRPWM remainder register) must be used to mimic the functionality of TBPHSHR.

The lower 8 bits in this register are ignored - writes are ignored and reads return zero

Reset type: SYSRSn

19.17.2.37 TBPRDHR Register (Offset = 62h) [Reset = 0000h]

TBPRDHR is shown in Figure 19-129 and described in Table 19-62.

Return to the Summary Table.

Time Base Period High Resolution Register

Figure 19-129 TBPRDHR Register
15141312111098
TBPRDHR
R/W-0h
76543210
TBPRDHR
R/W-0h
Table 19-62 TBPRDHR Register Field Descriptions
BitFieldTypeResetDescription
15-0TBPRDHRR/W0hPeriod High Resolution Bits

The upper 8-bits contain the high-resolution portion of the period value. The TBPRDHR register is not affected by the TBCTL[PRDLD] bit. Reads from this register always reflect the shadow register. Likewise writes are also to the shadow register. The TBPRDHR register is only used when the high resolution period feature is enabled. This register is only available with ePWM modules which support high-resolution period control.

The lower 8 bits in this register are ignored - writes are ignored and reads return zero

Reset type: SYSRSn

19.17.2.38 TBPRD Register (Offset = 63h) [Reset = 0000h]

TBPRD is shown in Figure 19-130 and described in Table 19-63.

Return to the Summary Table.

Time Base Period Register

Figure 19-130 TBPRD Register
15141312111098
TBPRD
R/W-0h
76543210
TBPRD
R/W-0h
Table 19-63 TBPRD Register Field Descriptions
BitFieldTypeResetDescription
15-0TBPRDR/W0hTime Base Period Register

These bits determine the period of the time-base counter. This sets the PWM frequency. Shadowing of this register is enabled and disabled by the TBCTL[PRDLD] bit. By default this register is shadowed.
- If TBCTL[PRDLD] = 0, then the shadow is enabled and any write or read will automatically go to the shadow register. In this case, the active register will be loaded from the shadow register when the time-base counter equals zero.
- If TBCTL[PRDLD] = 1, then the shadow is disabled and any write or read will go directly to the active register, that is the register actively controlling the hardware.
- The active and shadow registers share the same memory map address.

Reset type: SYSRSn

19.17.2.39 CMPA Register (Offset = 6Ah) [Reset = 00000000h]

CMPA is shown in Figure 19-131 and described in Table 19-64.

Return to the Summary Table.

Counter Compare A Register

Figure 19-131 CMPA Register
313029282726252423222120191817161514131211109876543210
CMPACMPAHR
R/W-0hR/W-0h
Table 19-64 CMPA Register Field Descriptions
BitFieldTypeResetDescription
31-16CMPAR/W0hCompare A Register

The value in the active CMPA register is continuously compared to the time-base counter (TBCTR). When the values are equal, the counter-compare module generates a 'time-base counter equal to counter compare A' event. This event is sent to the action-qualifier where it is qualified and converted it into one or more actions. These actions can be applied to either the EPWMxA or the EPWMxB output depending on the configuration of the AQCTLA and AQCTLB registers. The actions that can be defined in the AQCTLA and AQCTLB registers include:

- Do nothing
the event is ignored.
- Clear: Pull the EPWMxA and/or EPWMxB signal low
- Set: Pull the EPWMxA and/or EPWMxB signal high
- Toggle the EPWMxA and/or EPWMxB signal

Shadowing of this register is enabled and disabled by the CMPCTL[SHDWAMODE] bit. By default this register is shadowed.
- If CMPCTL[SHDWAMODE] = 0, then the shadow is enabled and any write or read will automatically go to the shadow register. In this case, the CMPCTL[LOADAMODE] bit field determines which event will load the active register from the shadow register.
- Before a write, the CMPCTL[SHDWAFULL] bit can be read to determine if the shadow register is currently full.
- If CMPCTL[SHDWAMODE] = 1, then the shadow register is disabled and any write or read will go directly to the active register, that is the register actively controlling the hardware.
- In either mode, the active and shadow registers share the same memory map address.

Reset type: SYSRSn

15-0CMPAHRR/W0hCompare A HRPWM Extension Register

The UPPER 8-bits contain the high-resolution portion (most significant 8-bits) of the counter-compare A value. CMPA:CMPAHR can be accessed in a single 32-bit read/write. Shadowing is enabled and disabled by the CMPCTL[SHDWAMODE] bit as described for the CMPA register.

The lower 8 bits in this register are ignored

Reset type: SYSRSn

19.17.2.40 CMPB Register (Offset = 6Ch) [Reset = 00000000h]

CMPB is shown in Figure 19-132 and described in Table 19-65.

Return to the Summary Table.

Compare B Register

Figure 19-132 CMPB Register
313029282726252423222120191817161514131211109876543210
CMPBCMPBHR
R/W-0hR/W-0h
Table 19-65 CMPB Register Field Descriptions
BitFieldTypeResetDescription
31-16CMPBR/W0hCompare B Register

The value in the active CMPB register is continuously compared to the time-base counter (TBCTR). When the values are equal, the counter-compare module generates a 'time-base counter equal to counter compare B' event. This event is sent to the action-qualifier where it is qualified and converted it into one or more actions. These actions can be applied to either the EPWMxA or the EPWMxB output depending on the configuration of the AQCTLA and AQCTLB registers. The actions that can be defined in the AQCTLA and AQCTLB registers include:

- Do nothing
the event is ignored.
- Clear: Pull the EPWMxA and/or EPWMxB signal low
- Set: Pull the EPWMxA and/or EPWMxB signal high
- Toggle the EPWMxA and/or EPWMxB signal

Shadowing of this register is enabled and disabled by the CMPCTL[SHDWBMODE] bit. By default this register is shadowed.
- If CMPCTL[SHDWBMODE] = 0, then the shadow is enabled and any write or read will automatically go to the shadow register. In this case, the CMPCTL[LOADBMODE] bit field determines which event will load the active register from the shadow register.
- Before a write, the CMPCTL[SHDWBFULL] bit can be read to determine if the shadow register is currently full.
- If CMPCTL[SHDWBMODE] = 1, then the shadow register is disabled and any write or read will go directly to the active register, that is the register actively controlling the hardware.
- In either mode, the active and shadow registers share the same memory map address.

Reset type: SYSRSn

15-0CMPBHRR/W0hCompare B High Resolution Bits

The lower 8 bits in this register are ignored

Reset type: SYSRSn

19.17.2.41 CMPC Register (Offset = 6Fh) [Reset = 0000h]

CMPC is shown in Figure 19-133 and described in Table 19-66.

Return to the Summary Table.

Counter Compare C Register

LINK feature access should always be 16-bit

Figure 19-133 CMPC Register
15141312111098
CMPC
R/W-0h
76543210
CMPC
R/W-0h
Table 19-66 CMPC Register Field Descriptions
BitFieldTypeResetDescription
15-0CMPCR/W0hCompare C Register

The value in the active CMPC register is continuously compared to the time-base counter (TBCTR). When the values are equal, the counter-compare module generates a 'time-base counter equal to counter compare C' event.

Shadowing of this register is enabled and disabled by the CMPCTL2[SHDWCMODE] bit. By default this register is shadowed.
- If CMPCTL2[SHDWCMODE] = 0, then the shadow is enabled and any write or read will automatically go to the shadow register. In this case, the CMPCTL2[LOADCMODE] bit field determines which event will load the active register from the shadow register:
- If CMPCTL2[SHDWCMODE] = 1, then the shadow register is disabled and any write or read will go directly to the active register
that is, the register actively controlling the hardware.
- In either mode, the active and shadow registers share the same memory map address.

Reset type: SYSRSn

19.17.2.42 CMPD Register (Offset = 71h) [Reset = 0000h]

CMPD is shown in Figure 19-134 and described in Table 19-67.

Return to the Summary Table.

Counter Compare D Register

LINK feature access should always be 16-bit

Figure 19-134 CMPD Register
15141312111098
CMPD
R/W-0h
76543210
CMPD
R/W-0h
Table 19-67 CMPD Register Field Descriptions
BitFieldTypeResetDescription
15-0CMPDR/W0hCompare D Register

The value in the active CMPD register is continuously compared to the time-base counter (TBCTR). When the values are equal, the counter-compare module generates a 'time-base counter equal to counter compare D' event.

Shadowing of this register is enabled and disabled by the CMPCTL2[SHDWDMODE] bit. By default this register is shadowed.
- If CMPCTL2[SHDWDMODE] = 0, then the shadow is enabled and any write or read will automatically go to the shadow register. In this case, the CMPCTL2[LOADDMODE] bit field determines which event will load the active register from the shadow register:
- If CMPCTL2[SHDWDMODE] = 1, then the shadow register is disabled and any write or read will go directly to the active register
that is, the register actively controlling the hardware.
- In either mode, the active and shadow registers share the same memory map address.

Reset type: SYSRSn

19.17.2.43 GLDCTL2 Register (Offset = 74h) [Reset = 0000h]

GLDCTL2 is shown in Figure 19-135 and described in Table 19-68.

Return to the Summary Table.

Global PWM Load Control Register 2

Figure 19-135 GLDCTL2 Register
15141312111098
RESERVED
R-0-0h
76543210
RESERVEDGFRCLDOSHTLD
R-0-0hR-0/W1S-0hR-0/W1S-0h
Table 19-68 GLDCTL2 Register Field Descriptions
BitFieldTypeResetDescription
15-2RESERVEDR-00hReserved
1GFRCLDR-0/W1S0hForce Load Event in One Shot Mode

0: Writing of 0 will be ignored. Always reads back a 0.
1: Force one load event at the input of the event pre-scale counter. This bit is intended to be used for testing and/or software force loading of the events in global load mode.

Reset type: SYSRSn

0OSHTLDR-0/W1S0hEnable Reload Event in One Shot Mode

0: Writing of 0 will be ignored. Always reads back a 0.
1: Turns the one shot latch condition ON. Upon occurrence of a chosen load strobe, one shadow to active reload occurs and the latch will be cleared. Hence writing 1 to this bit would allow one load strobe event to pass through and block further strobe events.

Reset type: SYSRSn

19.17.2.44 SWVDELVAL Register (Offset = 77h) [Reset = 0000h]

SWVDELVAL is shown in Figure 19-136 and described in Table 19-69.

Return to the Summary Table.

Software Valley Mode Delay Register

Figure 19-136 SWVDELVAL Register
15141312111098
SWVDELVAL
R/W-0h
76543210
SWVDELVAL
R/W-0h
Table 19-69 SWVDELVAL Register Field Descriptions
BitFieldTypeResetDescription
15-0SWVDELVALR/W0hSoftware Valley Delay Value Register

This register can be optionally used define offset value for the hardware calculated delay HWDELAYVAL as defined in VCAPCTL[VDELAYDIV] bits.

Reset type: SYSRSn

19.17.2.45 TZSEL Register (Offset = 80h) [Reset = 0000h]

TZSEL is shown in Figure 19-137 and described in Table 19-70.

Return to the Summary Table.

Trip Zone Select Register

Figure 19-137 TZSEL Register
15141312111098
DCBEVT1DCAEVT1OSHT6OSHT5OSHT4OSHT3OSHT2OSHT1
R/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0h
76543210
DCBEVT2DCAEVT2CBC6CBC5CBC4CBC3CBC2CBC1
R/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0h
Table 19-70 TZSEL Register Field Descriptions
BitFieldTypeResetDescription
15DCBEVT1R/W0hDigital Compare Output B Event 1 Select

0: Disable DCBEVT1 as one-shot-trip source for this ePWM module.
1: Enable DCBEVT1 as one-shot-trip source for this ePWM module.

Reset type: SYSRSn

14DCAEVT1R/W0hDigital Compare Output A Event 1 Select

0: Disable DCAEVT1 as one-shot-trip source for this ePWM module.
1: Enable DCAEVT1 as one-shot-trip source for this ePWM module.

Reset type: SYSRSn

13OSHT6R/W0hTrip-zone 6 (TZ6) Select

0: Disable TZ6 as a one-shot trip source for this ePWM module
1: Enable TZ6 as a one-shot trip source for this ePWM module

Reset type: SYSRSn

12OSHT5R/W0hTrip-zone 5 (TZ5) Select

0: Disable TZ5 as a one-shot trip source for this ePWM module
1: Enable TZ5 as a one-shot trip source for this ePWM module

Reset type: SYSRSn

11OSHT4R/W0hTrip-zone 4 (TZ4) Select

0: Disable TZ4 as a one-shot trip source for this ePWM module
1: Enable TZ4 as a one-shot trip source for this ePWM module

Reset type: SYSRSn

10OSHT3R/W0hTrip-zone 3 (TZ3) Select

0: Disable TZ3 as a one-shot trip source for this ePWM module
1: Enable TZ3 as a one-shot trip source for this ePWM module

Reset type: SYSRSn

9OSHT2R/W0hTrip-zone 2 (TZ2) Select

0: Disable TZ2 as a one-shot trip source for this ePWM module
1: Enable TZ2 as a one-shot trip source for this ePWM module

Reset type: SYSRSn

8OSHT1R/W0hTrip-zone 1 (TZ1) Select

0: Disable TZ1 as a one-shot trip source for this ePWM module
1: Enable TZ1 as a one-shot trip source for this ePWM module

Reset type: SYSRSn

7DCBEVT2R/W0hDigital Compare Output B Event 2 Select

0: Disable DCBEVT2 as a CBC trip source for this ePWM module
1: Enable DCBEVT2 as a CBC trip source for this ePWM module

Reset type: SYSRSn

6DCAEVT2R/W0hDigital Compare Output A Event 2 Select

0: Disable DCAEVT2 as a CBC trip source for this ePWM module
1: Enable DCAEVT2 as a CBC trip source for this ePWM module

Reset type: SYSRSn

5CBC6R/W0hTrip-zone 6 (TZ6) Select

0: Disable TZ6 as a CBC trip source for this ePWM module
1: Enable TZ6 as a CBC trip source for this ePWM module

Reset type: SYSRSn

4CBC5R/W0hTrip-zone 5 (TZ5) Select

0: Disable TZ5 as a CBC trip source for this ePWM module
1: Enable TZ5 as a CBC trip source for this ePWM module

Reset type: SYSRSn

3CBC4R/W0hTrip-zone 4 (TZ4) Select

0: Disable TZ4 as a CBC trip source for this ePWM module
1: Enable TZ4 as a CBC trip source for this ePWM module

Reset type: SYSRSn

2CBC3R/W0hTrip-zone 3 (TZ3) Select

0: Disable TZ3 as a CBC trip source for this ePWM module
1: Enable TZ3 as a CBC trip source for this ePWM module

Reset type: SYSRSn

1CBC2R/W0hTrip-zone 2 (TZ2) Select

0: Disable TZ2 as a CBC trip source for this ePWM module
1: Enable TZ2 as a CBC trip source for this ePWM module

Reset type: SYSRSn

0CBC1R/W0hTrip-zone 1 (TZ1) Select

0: Disable TZ1 as a CBC trip source for this ePWM module
1: Enable TZ1 as a CBC trip source for this ePWM module

Reset type: SYSRSn

19.17.2.46 TZDCSEL Register (Offset = 82h) [Reset = 0000h]

TZDCSEL is shown in Figure 19-138 and described in Table 19-71.

Return to the Summary Table.

Trip Zone Digital Comparator Select Register

Figure 19-138 TZDCSEL Register
15141312111098
RESERVEDDCBEVT2DCBEVT1
R-0-0hR/W-0hR/W-0h
76543210
DCBEVT1DCAEVT2DCAEVT1
R/W-0hR/W-0hR/W-0h
Table 19-71 TZDCSEL Register Field Descriptions
BitFieldTypeResetDescription
15-12RESERVEDR-00hReserved
11-9DCBEVT2R/W0hDigital Compare Output B Event 2 Selection

000: Event disabled
001: DCBH = low, DCBL = don't care
010: DCBH = high, DCBL = don't care
011: DCBL = low, DCBH = don't care
100: DCBL = high, DCBH = don't care
101: DCBL = high, DCBH = low
110: Reserved
111: Reserved

Reset type: SYSRSn

8-6DCBEVT1R/W0hDigital Compare Output B Event 1 Selection

000: Event disabled
001: DCBH = low, DCBL = don't care
010: DCBH = high, DCBL = don't care
011: DCBL = low, DCBH = don't care
100: DCBL = high, DCBH = don't care
101: DCBL = high, DCBH = low
110: Reserved
111: Reserved

Reset type: SYSRSn

5-3DCAEVT2R/W0hDigital Compare Output A Event 2 Selection

000: Event disabled
001: DCAH = low, DCAL = don't care
010: DCAH = high, DCAL = don't care
011: DCAL = low, DCAH = don't care
100: DCAL = high, DCAH = don't care
101: DCAL = high, DCAH = low
110: Reserved
111: Reserved

Reset type: SYSRSn

2-0DCAEVT1R/W0hDigital Compare Output A Event 1 Selection

000: Event disabled
001: DCAH = low, DCAL = don't care
010: DCAH = high, DCAL = don't care
011: DCAL = low, DCAH = don't care
100: DCAL = high, DCAH = don't care
101: DCAL = high, DCAH = low
110: Reserved
111: Reserved

Reset type: SYSRSn

19.17.2.47 TZCTL Register (Offset = 84h) [Reset = 0000h]

TZCTL is shown in Figure 19-139 and described in Table 19-72.

Return to the Summary Table.

Trip Zone Control Register

Figure 19-139 TZCTL Register
15141312111098
RESERVEDDCBEVT2DCBEVT1
R-0-0hR/W-0hR/W-0h
76543210
DCAEVT2DCAEVT1TZBTZA
R/W-0hR/W-0hR/W-0hR/W-0h
Table 19-72 TZCTL Register Field Descriptions
BitFieldTypeResetDescription
15-12RESERVEDR-00hReserved
11-10DCBEVT2R/W0hDigital Compare Output B Event 2 Action On EPWMxB

00: High-impedance (EPWMxB = High-impedance state)
01: Force EPWMxB to a high state.
10: Force EPWMxB to a low state.
11: Do Nothing, trip action is disabled

Reset type: SYSRSn

9-8DCBEVT1R/W0hDigital Compare Output B Event 1 Action On EPWMxB

00: High-impedance (EPWMxB = High-impedance state)
01: Force EPWMxB to a high state.
10: Force EPWMxB to a low state.
11: Do Nothing, trip action is disabled

Reset type: SYSRSn

7-6DCAEVT2R/W0hDigital Compare Output A Event 2 Action On EPWMxA

00: High-impedance (EPWMxA = High-impedance state)
01: Force EPWMxA to a high state.
10: Force EPWMxA to a low state.
11: Do Nothing, trip action is disabled

Reset type: SYSRSn

5-4DCAEVT1R/W0hDigital Compare Output A Event 1 Action On EPWMxA

00: High-impedance (EPWMxA = High-impedance state)
01: Force EPWMxA to a high state.
10: Force EPWMxA to a low state.
11: Do Nothing, trip action is disabled

Reset type: SYSRSn

3-2TZBR/W0hTZ1 to TZ6, DCAEVT1/2, DCBEVT1/2Trip Action On EPWMxB

When a trip event occurs the following action is taken on output EPWMxB. Which trip-zone pins can cause an event is defined in the TZSEL register.

00: High-impedance (EPWMxB = High-impedance state)
01: Force EPWMxB to a high state
10: Force EPWMxB to a low state
11: Do nothing, no action is taken on EPWMxB.

Reset type: SYSRSn

1-0TZAR/W0hTZ1 to TZ6, DCAEVT1/2, DCBEVT1/2 Trip Action On EPWMxA

When a trip event occurs the following action is taken on output EPWMxA. Which trip-zone pins can cause an event is defined in the TZSEL register.

00: High-impedance (EPWMxA = High-impedance state)
01: Force EPWMxA to a high state
10: Force EPWMxA to a low state
11: Do nothing, no action is taken on EPWMxA.

Reset type: SYSRSn

19.17.2.48 TZCTL2 Register (Offset = 85h) [Reset = 0000h]

TZCTL2 is shown in Figure 19-140 and described in Table 19-73.

Return to the Summary Table.

Additional Trip Zone Control Register

Figure 19-140 TZCTL2 Register
15141312111098
ETZERESERVEDTZBDTZBU
R/W-0hR-0-0hR/W-0hR/W-0h
76543210
TZBUTZADTZAU
R/W-0hR/W-0hR/W-0h
Table 19-73 TZCTL2 Register Field Descriptions
BitFieldTypeResetDescription
15ETZER/W0hTZCTL2 Enable

0: Use trip action from TZCTL (legacy EPWM compatibility)
1: Use trip action defined in TZCTL2, TZCTLDCA and TZCTLDCB. Settings in TZCTL are ignored

Reset type: SYSRSn

14-12RESERVEDR-00hReserved
11-9TZBDR/W0hTZ1 to TZ6 Trip Action On EPWMxB while Count direction is DOWN

000: HiZ (EPWMxB = HiZ state)
001: Forced Hi (EPWMxB = High state)
010: Forced Lo (EPWMxB = Lo state)
011: Toggle (Low -> High, High -> Low)
100: Reserved
101: Reserved
110: Reserved
111: Do Nothing, trip action is disabled

Reset type: SYSRSn

8-6TZBUR/W0hTZ1 to TZ6, DCAEVT1/2, DCBEVT1/2 Trip Action On EPWMxB while Count direction is UP

000: HiZ (EPWMxB = HiZ state)
001: Forced Hi (EPWMxB = High state)
010: Forced Lo (EPWMxB = Lo state)
011: Toggle (Low -> High, High -> Low)
100: Reserved
101: Reserved
110: Reserved
111: Do Nothing, trip action is disabled

Reset type: SYSRSn

5-3TZADR/W0hTZ1 to TZ6, DCAEVT1/2, DCBEVT1/2 Trip Action On EPWMxA while Count direction is DOWN

000: HiZ (EPWMxA = HiZ state)
001: Forced Hi (EPWMxA = High state)
010: Forced Lo (EPWMxA = Lo state)
011: Toggle (Low -> High, High -> Low)
100: Reserved
101: Reserved
110: Reserved
111: Do Nothing, trip action is disabled

Reset type: SYSRSn

2-0TZAUR/W0hTZ1 to TZ6, DCAEVT1/2, DCBEVT1/2 Trip Action On EPWMxA while Count direction is UP

000: HiZ (EPWMxA = HiZ state)
001: Forced Hi (EPWMxA = High state)
010: Forced Lo (EPWMxA = Lo state)
011: Toggle (Low -> High, High -> Low)
100: Reserved
101: Reserved
110: Reserved
111: Do Nothing, trip action is disabled

Reset type: SYSRSn

19.17.2.49 TZCTLDCA Register (Offset = 86h) [Reset = 0000h]

TZCTLDCA is shown in Figure 19-141 and described in Table 19-74.

Return to the Summary Table.

Trip Zone Control Register Digital Compare A

Figure 19-141 TZCTLDCA Register
15141312111098
RESERVEDDCAEVT2DDCAEVT2U
R-0-0hR/W-0hR/W-0h
76543210
DCAEVT2UDCAEVT1DDCAEVT1U
R/W-0hR/W-0hR/W-0h
Table 19-74 TZCTLDCA Register Field Descriptions
BitFieldTypeResetDescription
15-12RESERVEDR-00hReserved
11-9DCAEVT2DR/W0hDigital Compare Output A Event 2 Action On EPWMxA while Count direction is DOWN

000: HiZ (EPWMxA = HiZ state)
001: Forced Hi (EPWMxA = High state)
010: Forced Lo (EPWMxA = Lo state)
011: Toggle (Low -> High, High -> Low)
100: Reserved
101: Reserved
110: Reserved
111: Do Nothing, trip action is disabled

Reset type: SYSRSn

8-6DCAEVT2UR/W0hDigital Compare Output A Event 2 Action On EPWMxA while Count direction is UP

000: HiZ (EPWMxA = HiZ state)
001: Forced Hi (EPWMxA = High state)
010: Forced Lo (EPWMxA = Lo state)
011: Toggle (Low -> High, High -> Low)
100: Reserved
101: Reserved
110: Reserved
111: Do Nothing, trip action is disabled

Reset type: SYSRSn

5-3DCAEVT1DR/W0hDigital Compare Output A Event 1 Action On EPWMxA while Count direction is DOWN

000: HiZ (EPWMxA = HiZ state)
001: Forced Hi (EPWMxA = High state)
010: Forced Lo (EPWMxA = Lo state)
011: Toggle (Low -> High, High -> Low)
100: Reserved
101: Reserved
110: Reserved
111: Do Nothing, trip action is disabled

Reset type: SYSRSn

2-0DCAEVT1UR/W0hDigital Compare Output A Event 1 Action On EPWMxA while Count direction is UP

000: HiZ (EPWMxA = HiZ state)
001: Forced Hi (EPWMxA = High state)
010: Forced Lo (EPWMxA = Lo state)
011: Toggle (Low -> High, High -> Low)
100: Reserved
101: Reserved
110: Reserved
111: Do Nothing, trip action is disabled

Reset type: SYSRSn

19.17.2.50 TZCTLDCB Register (Offset = 87h) [Reset = 0000h]

TZCTLDCB is shown in Figure 19-142 and described in Table 19-75.

Return to the Summary Table.

Trip Zone Control Register Digital Compare B

Figure 19-142 TZCTLDCB Register
15141312111098
RESERVEDDCBEVT2DDCBEVT2U
R-0-0hR/W-0hR/W-0h
76543210
DCBEVT2UDCBEVT1DDCBEVT1U
R/W-0hR/W-0hR/W-0h
Table 19-75 TZCTLDCB Register Field Descriptions
BitFieldTypeResetDescription
15-12RESERVEDR-00hReserved
11-9DCBEVT2DR/W0hDigital Compare Output B Event 2 Action On EPWMxB while Count direction is DOWN

000: HiZ (EPWMxB = HiZ state)
001: Forced Hi (EPWMxB = High state)
010: Forced Lo (EPWMxB = Lo state)
011: Toggle (Low -> High, High -> Low)
100: Reserved
101: Reserved
110: Reserved
111: Do Nothing, trip action is disabled

Reset type: SYSRSn

8-6DCBEVT2UR/W0hDigital Compare Output B Event 2 Action On EPWMxB while Count direction is UP

000: HiZ (EPWMxB = HiZ state)
001: Forced Hi (EPWMxB = High state)
010: Forced Lo (EPWMxB = Lo state)
011: Toggle (Low -> High, High -> Low)
100: Reserved
101: Reserved
110: Reserved
111: Do Nothing, trip action is disabled

Reset type: SYSRSn

5-3DCBEVT1DR/W0hDigital Compare Output B Event 1 Action On EPWMxB while Count direction is DOWN

000: HiZ (EPWMxB = HiZ state)
001: Forced Hi (EPWMxB = High state)
010: Forced Lo (EPWMxB = Lo state)
011: Toggle (Low -> High, High -> Low)
100: Reserved
101: Reserved
110: Reserved
111: Do Nothing, trip action is disabled

Reset type: SYSRSn

2-0DCBEVT1UR/W0hDigital Compare Output B Event 1 Action On EPWMxB while Count direction is UP

000: HiZ (EPWMxB = HiZ state)
001: Forced Hi (EPWMxB = High state)
010: Forced Lo (EPWMxB = Lo state)
011: Toggle (Low -> High, High -> Low)
100: Reserved
101: Reserved
110: Reserved
111: Do Nothing, trip action is disabled

Reset type: SYSRSn

19.17.2.51 TZEINT Register (Offset = 8Dh) [Reset = 0000h]

TZEINT is shown in Figure 19-143 and described in Table 19-76.

Return to the Summary Table.

Trip Zone Enable Interrupt Register

Figure 19-143 TZEINT Register
15141312111098
RESERVED
R-0-0h
76543210
RESERVEDDCBEVT2DCBEVT1DCAEVT2DCAEVT1OSTCBCRESERVED
R-0-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR-0-0h
Table 19-76 TZEINT Register Field Descriptions
BitFieldTypeResetDescription
15-7RESERVEDR-00hReserved
6DCBEVT2R/W0hDigital Compare Output B Event 2 Interrupt Enable

0: Disabled
1: Enabled

Reset type: SYSRSn

5DCBEVT1R/W0hDigital Compare Output B Event 1 Interrupt Enable

0: Disabled
1: Enabled

Reset type: SYSRSn

4DCAEVT2R/W0hDigital Compare Output A Event 2 Interrupt Enable

0: Disabled
1: Enabled

Reset type: SYSRSn

3DCAEVT1R/W0hDigital Compare Output A Event 1 Interrupt Enable

0: Disabled
1: Enabled

Reset type: SYSRSn

2OSTR/W0hTrip-zone One-Shot Interrupt Enable

0: Disable one-shot interrupt generation
1: Enable Interrupt generation
a one-shot trip event will cause a EPWMx_TZINT PIE interrupt.

Reset type: SYSRSn

1CBCR/W0hTrip-zone Cycle-by-Cycle Interrupt Enable

0: Disable cycle-by-cycle interrupt generation.
1: Enable interrupt generation
a cycle-by-cycle trip event will cause an EPWMx_TZINT PIE interrupt.

Reset type: SYSRSn

0RESERVEDR-00hReserved

19.17.2.52 TZFLG Register (Offset = 93h) [Reset = 0000h]

TZFLG is shown in Figure 19-144 and described in Table 19-77.

Return to the Summary Table.

Trip Zone Flag Register

Figure 19-144 TZFLG Register
15141312111098
RESERVED
R-0-0h
76543210
RESERVEDDCBEVT2DCBEVT1DCAEVT2DCAEVT1OSTCBCINT
R-0-0hR-0hR-0hR-0hR-0hR-0hR-0hR-0h
Table 19-77 TZFLG Register Field Descriptions
BitFieldTypeResetDescription
15-7RESERVEDR-00hReserved
6DCBEVT2R0hLatched Status Flag for Digital Compare Output B Event 2

0: Indicates no trip event has occurred on DCBEVT2
1: Indicates a trip event has occurred for the event defined for DCBEVT2

Reset type: SYSRSn

5DCBEVT1R0hLatched Status Flag for Digital Compare Output B Event 1

0: Indicates no trip event has occurred on DCBEVT1
1: Indicates a trip event has occurred for the event defined for DCBEVT1

Reset type: SYSRSn

4DCAEVT2R0hLatched Status Flag for Digital Compare Output A Event 2

0: Indicates no trip event has occurred on DCAEVT2
1: Indicates a trip event has occurred for the event defined for DCAEVT2

Reset type: SYSRSn

3DCAEVT1R0hLatched Status Flag for Digital Compare Output A Event 1

0: Indicates no trip event has occurred on DCAEVT1
1: Indicates a trip event has occurred for the event defined for DCAEVT1

Reset type: SYSRSn

2OSTR0hLatched Status Flag for A One-Shot Trip Event

0: No one-shot trip event has occurred.
1: Indicates a trip event has occurred on a pin selected as a one-shot trip source.

This bit is cleared by writing the appropriate value to the TZCLR register.

Reset type: SYSRSn

1CBCR0hLatched Status Flag for Cycle-By-Cycle Trip Event

0: No cycle-by-cycle trip event has occurred.
1: Indicates a trip event has occurred on a signal selected as a cycle-by-cycle trip source. The

TZFLG[CBC] bit will remain set until it is manually cleared by the user. If the cycle-by-cycle trip event is still present when the CBC bit is cleared, then CBC will be immediately set again. The specified condition on the signal is automatically cleared when the ePWM time-base counter reaches zero (TBCTR = 0x00) if the trip condition is no longer present. The condition on the signal is only cleared when the TBCTR = 0x00 no matter where in the cycle the CBC flag is cleared.

This bit is cleared by writing the appropriate value to the TZCLR register.

Reset type: SYSRSn

0INTR0hLatched Trip Interrupt Status Flag

0: Indicates no interrupt has been generated.
1: Indicates an EPWMx_TZINT PIE interrupt was generated because of a trip condition.

No further EPWMx_TZINT PIE interrupts will be generated until this flag is cleared. If the interrupt flag is cleared when either CBC or OST is set, then another interrupt pulse will be generated. Clearing all flag bits will prevent further interrupts. This bit is cleared by writing the appropriate value to the TZCLR register.

Reset type: SYSRSn

19.17.2.53 TZCBCFLG Register (Offset = 94h) [Reset = 0000h]

TZCBCFLG is shown in Figure 19-145 and described in Table 19-78.

Return to the Summary Table.

Trip Zone CBC Flag Register

Figure 19-145 TZCBCFLG Register
15141312111098
RESERVED
R-0-0h
76543210
DCBEVT2DCAEVT2CBC6CBC5CBC4CBC3CBC2CBC1
R-0hR-0hR-0hR-0hR-0hR-0hR-0hR-0h
Table 19-78 TZCBCFLG Register Field Descriptions
BitFieldTypeResetDescription
15-8RESERVEDR-00hReserved
7DCBEVT2R0hLatched Status Flag for Digital Compare B Output Event 2 Trip Latch

0: Reading a 0 indicates that no trip has occurred on DCBEVT2.
1: Reading a 1 indicates a trip has occured on the DCBEVT2 selected event.

Reset type: SYSRSn

6DCAEVT2R0hLatched Status Flag for Digital Compare A Output Event 2 Trip Latch

0: Reading a 0 indicates that no trip has occurred on DCAEVT2.
1: Reading a 1 indicates a trip has occured on the DCAEVT2 selected event.

Reset type: SYSRSn

5CBC6R0hLatched Status Flag for CBC6 Trip Latch

0: Reading a 0 indicates that no trip has occurred on CBC6.
1: Reading a 1 indicates a trip has occured on the CBC6 selected event.

Reset type: SYSRSn

4CBC5R0hLatched Status Flag for CBC5 Trip Latch

0: Reading a 0 indicates that no trip has occurred on CBC5.
1: Reading a 1 indicates a trip has occured on the CBC5 selected event.

Reset type: SYSRSn

3CBC4R0hLatched Status Flag for CBC4 Trip Latch

0: Reading a 0 indicates that no trip has occurred on CBC4.
1: Reading a 1 indicates a trip has occured on the CBC4 selected event.

Reset type: SYSRSn

2CBC3R0hLatched Status Flag for CBC3 Trip Latch

0: Reading a 0 indicates that no trip has occurred on CBC3.
1: Reading a 1 indicates a trip has occured on the CBC3 selected event.

Reset type: SYSRSn

1CBC2R0hLatched Status Flag for CBC2 Trip Latch

0: Reading a 0 indicates that no trip has occurred on CBC2.
1: Reading a 1 indicates a trip has occured on the CBC2 selected event.

Reset type: SYSRSn

0CBC1R0hLatched Status Flag for CBC1 Trip Latch

0: Reading a 0 indicates that no trip has occurred on CBC1.
1: Reading a 1 indicates a trip has occured on the CBC1 selected event.

Reset type: SYSRSn

19.17.2.54 TZOSTFLG Register (Offset = 95h) [Reset = 0000h]

TZOSTFLG is shown in Figure 19-146 and described in Table 19-79.

Return to the Summary Table.

Trip Zone OST Flag Register

Figure 19-146 TZOSTFLG Register
15141312111098
RESERVED
R-0-0h
76543210
DCBEVT1DCAEVT1OST6OST5OST4OST3OST2OST1
R-0hR-0hR-0hR-0hR-0hR-0hR-0hR-0h
Table 19-79 TZOSTFLG Register Field Descriptions
BitFieldTypeResetDescription
15-8RESERVEDR-00hReserved
7DCBEVT1R0hLatched Status Flag for Digital Compare B Output Event 1 Trip Latch

0: Reading a 0 indicates that no trip has occurred on DCBEVT1.
1: Reading a 1 indicates a trip has occured on the DCBEVT1 selected event.

Reset type: SYSRSn

6DCAEVT1R0hLatched Status Flag for Digital Compare A Output Event 1 Trip Latch

0: Reading a 0 indicates that no trip has occurred on DCAEVT1.
1: Reading a 1 indicates a trip has occured on the DCAEVT1 selected event.

Reset type: SYSRSn

5OST6R0hLatched Status Flag for OST6 Trip Latch

0: Reading a 0 indicates that no trip has occurred on OST6.
1: Reading a 1 indicates a trip has occured on the OST6 selected event.

Reset type: SYSRSn

4OST5R0hLatched Status Flag for OST5 Trip Latch

0: Reading a 0 indicates that no trip has occurred on OST5.
1: Reading a 1 indicates a trip has occured on the OST5 selected event.

Reset type: SYSRSn

3OST4R0hLatched Status Flag for OST4 Trip Latch

0: Reading a 0 indicates that no trip has occurred on OST4.
1: Reading a 1 indicates a trip has occured on the OST4 selected event.

Reset type: SYSRSn

2OST3R0hLatched Status Flag for OST3 Trip Latch

0: Reading a 0 indicates that no trip has occurred on OST3.
1: Reading a 1 indicates a trip has occured on the OST3 selected event.

Reset type: SYSRSn

1OST2R0hLatched Status Flag for OST2 Trip Latch

0: Reading a 0 indicates that no trip has occurred on OST2.
1: Reading a 1 indicates a trip has occured on the OST2 selected event.

Reset type: SYSRSn

0OST1R0hLatched Status Flag for OST1 Trip Latch

0: Reading a 0 indicates that no trip has occurred on OST1.
1: Reading a 1 indicates a trip has occured on the OST1 selected event.

Reset type: SYSRSn

19.17.2.55 TZCLR Register (Offset = 97h) [Reset = 0000h]

TZCLR is shown in Figure 19-147 and described in Table 19-80.

Return to the Summary Table.

Trip Zone Clear Register

Figure 19-147 TZCLR Register
15141312111098
CBCPULSERESERVED
R/W-0hR-0-0h
76543210
RESERVEDDCBEVT2DCBEVT1DCAEVT2DCAEVT1OSTCBCINT
R-0-0hR-0/W1S-0hR-0/W1S-0hR-0/W1S-0hR-0/W1S-0hR-0/W1S-0hR-0/W1S-0hR-0/W1S-0h
Table 19-80 TZCLR Register Field Descriptions
BitFieldTypeResetDescription
15-14CBCPULSER/W0hClear Pulse for Cycle-By-Cycle (CBC) Trip Latch

This bit field determines which pulse clears the CBC trip latch.

00: CTR = zero pulse clears CBC trip latch. (Same as legacy designs.)
01: CTR = PRD pulse clears CBC trip latch.
10: CTR = zero or CTR = PRD pulse clears CBC trip latch.
11: CBC trip latch is not cleared

Reset type: SYSRSn

13-7RESERVEDR-00hReserved
6DCBEVT2R-0/W1S0hClear Flag for Digital Compare Output B Event 2

0: Writing 0 has no effect. This bit always reads back 0.
1: Writing 1 clears the DCBEVT2 event trip condition.

Reset type: SYSRSn

5DCBEVT1R-0/W1S0hClear Flag for Digital Compare Output B Event 1

0: Writing 0 has no effect. This bit always reads back 0.
1: Writing 1 clears the DCBEVT1 event trip condition.

Reset type: SYSRSn

4DCAEVT2R-0/W1S0hClear Flag for Digital Compare Output A Event 2

0: Writing 0 has no effect. This bit always reads back 0.
1: Writing 1 clears the DCAEVT2 event trip condition.

Reset type: SYSRSn

3DCAEVT1R-0/W1S0hClear Flag for Digital Compare Output A Event 1

0: Writing 0 has no effect. This bit always reads back 0.
1: Writing 1 clears the DCAEVT1 event trip condition.

Reset type: SYSRSn

2OSTR-0/W1S0hClear Flag for One-Shot Trip (OST) Latch

0: Has no effect. Always reads back a 0.
1: Clears this Trip (set) condition.

Reset type: SYSRSn

1CBCR-0/W1S0hClear Flag for Cycle-By-Cycle (CBC) Trip Latch

0: Has no effect. Always reads back a 0.
1: Clears this Trip (set) condition.

Reset type: SYSRSn

0INTR-0/W1S0hGlobal Interrupt Clear Flag

0: Has no effect. Always reads back a 0.
1: Clears the trip-interrupt flag for this ePWM module (TZFLG[INT]).

NOTE: No further EPWMx_TZINT PIE interrupts will be generated until the flag is cleared. If the TZFLG[INT] bit is cleared and any of the other flag bits are set, then another interrupt pulse will be generated. Clearing all flag bits will prevent further interrupts.

Reset type: SYSRSn

19.17.2.56 TZCBCCLR Register (Offset = 98h) [Reset = 0000h]

TZCBCCLR is shown in Figure 19-148 and described in Table 19-81.

Return to the Summary Table.

Trip Zone CBC Clear Register

Figure 19-148 TZCBCCLR Register
15141312111098
RESERVED
R-0-0h
76543210
DCBEVT2DCAEVT2CBC6CBC5CBC4CBC3CBC2CBC1
R-0/W1S-0hR-0/W1S-0hR-0/W1S-0hR-0/W1S-0hR-0/W1S-0hR-0/W1S-0hR-0/W1S-0hR-0/W1S-0h
Table 19-81 TZCBCCLR Register Field Descriptions
BitFieldTypeResetDescription
15-8RESERVEDR-00hReserved
7DCBEVT2R-0/W1S0hClear Flag for Digital Compare Output B Event 2 selected for CBC

0: Writing a 0 has no effect.
1: Writing a 1 will clear the TZCBCFLG[DCBEVT2] bit.

Reset type: SYSRSn

6DCAEVT2R-0/W1S0hClear Flag for Digital Compare Output A Event 2 selected for CBC

0: Writing a 0 has no effect.
1: Writing a 1 will clear the TZCBCFLG[DCAEVT2] bit.

Reset type: SYSRSn

5CBC6R-0/W1S0hClear Flag for Cycle-By-Cycle (CBC6) Trip Latch

0: Writing a 0 has no effect.
1: Writing a 1 will clear the TZCBCFLG[CBC6] bit.

Reset type: SYSRSn

4CBC5R-0/W1S0hClear Flag for Cycle-By-Cycle (CBC5) Trip Latch

0: Writing a 0 has no effect.
1: Writing a 1 will clear the TZCBCFLG[CBC5] bit.

Reset type: SYSRSn

3CBC4R-0/W1S0hClear Flag for Cycle-By-Cycle (CBC4) Trip Latch

0: Writing a 0 has no effect.
1: Writing a 1 will clear the TZCBCFLG[CBC4] bit.

Reset type: SYSRSn

2CBC3R-0/W1S0hClear Flag for Cycle-By-Cycle (CBC3) Trip Latch

0: Writing a 0 has no effect.
1: Writing a 1 will clear the TZCBCFLG[CBC3] bit.

Reset type: SYSRSn

1CBC2R-0/W1S0hClear Flag for Cycle-By-Cycle (CBC2) Trip Latch

0: Writing a 0 has no effect.
1: Writing a 1 will clear the TZCBCFLG[CBC2] bit.

Reset type: SYSRSn

0CBC1R-0/W1S0hClear Flag for Cycle-By-Cycle (CBC1) Trip Latch

0: Writing a 0 has no effect.
1: Writing a 1 will clear the TZCBCFLG[CBC1] bit.

Reset type: SYSRSn

19.17.2.57 TZOSTCLR Register (Offset = 99h) [Reset = 0000h]

TZOSTCLR is shown in Figure 19-149 and described in Table 19-82.

Return to the Summary Table.

Trip Zone OST Clear Register

Figure 19-149 TZOSTCLR Register
15141312111098
RESERVED
R-0-0h
76543210
DCBEVT1DCAEVT1OST6OST5OST4OST3OST2OST1
R-0/W1S-0hR-0/W1S-0hR-0/W1S-0hR-0/W1S-0hR-0/W1S-0hR-0/W1S-0hR-0/W1S-0hR-0/W1S-0h
Table 19-82 TZOSTCLR Register Field Descriptions
BitFieldTypeResetDescription
15-8RESERVEDR-00hReserved
7DCBEVT1R-0/W1S0hClear Flag for Digital Compare Output B Event 1 selected for OST

0: Writing a 0 has no effect.
1: Writing a 1 will clear the TZOSTFLG[DCBEVT1] bit.

Reset type: SYSRSn

6DCAEVT1R-0/W1S0hClear Flag for Digital Compare Output A Event 1 selected for OST

0: Writing a 0 has no effect.
1: Writing a 1 will clear the TZOSTFLG[DCAEVT1] bit.

Reset type: SYSRSn

5OST6R-0/W1S0hClear Flag for Oneshot (OST6) Trip Latch

0: Writing a 0 has no effect.
1: Writing a 1 will clear the TZOSTFLG[OST6] bit.

Reset type: SYSRSn

4OST5R-0/W1S0hClear Flag for Oneshot (OST5) Trip Latch

0: Writing a 0 has no effect.
1: Writing a 1 will clear the TZOSTFLG[OST5] bit.

Reset type: SYSRSn

3OST4R-0/W1S0hClear Flag for Oneshot (OST4) Trip Latch

0: Writing a 0 has no effect.
1: Writing a 1 will clear the TZOSTFLG[OST4] bit.

Reset type: SYSRSn

2OST3R-0/W1S0hClear Flag for Oneshot (OST3) Trip Latch

0: Writing a 0 has no effect.
1: Writing a 1 will clear the TZOSTFLG[OST3] bit.

Reset type: SYSRSn

1OST2R-0/W1S0hClear Flag for Oneshot (OST2) Trip Latch

0: Writing a 0 has no effect.
1: Writing a 1 will clear the TZOSTFLG[OST2] bit.

Reset type: SYSRSn

0OST1R-0/W1S0hClear Flag for Oneshot (OST1) Trip Latch

0: Writing a 0 has no effect.
1: Writing a 1 will clear the TZOSTFLG[OST1] bit.

Reset type: SYSRSn

19.17.2.58 TZFRC Register (Offset = 9Bh) [Reset = 0000h]

TZFRC is shown in Figure 19-150 and described in Table 19-83.

Return to the Summary Table.

Trip Zone Force Register

Figure 19-150 TZFRC Register
15141312111098
RESERVED
R-0-0h
76543210
RESERVEDDCBEVT2DCBEVT1DCAEVT2DCAEVT1OSTCBCRESERVED
R-0-0hR-0/W1S-0hR-0/W1S-0hR-0/W1S-0hR-0/W1S-0hR-0/W1S-0hR-0/W1S-0hR-0-0h
Table 19-83 TZFRC Register Field Descriptions
BitFieldTypeResetDescription
15-7RESERVEDR-00hReserved
6DCBEVT2R-0/W1S0hForce Flag for Digital Compare Output B Event 2

0: Writing 0 has no effect. This bit always reads back 0.
1: Writing 1 forces the DCBEVT2 event trip condition and sets the TZFLG[DCBEVT2] bit.

Reset type: SYSRSn

5DCBEVT1R-0/W1S0hForce Flag for Digital Compare Output B Event 1

0: Writing 0 has no effect. This bit always reads back 0.
1: Writing 1 forces the DCBEVT1 event trip condition and sets the TZFLG[DCBEVT1] bit.

Reset type: SYSRSn

4DCAEVT2R-0/W1S0hForce Flag for Digital Compare Output A Event 2

0: Writing 0 has no effect. This bit always reads back 0.
1: Writing 1 forces the DCAEVT2 event trip condition and sets the TZFLG[DCAEVT2] bit.

Reset type: SYSRSn

3DCAEVT1R-0/W1S0hForce Flag for Digital Compare Output A Event 1

0: Writing 0 has no effect. This bit always reads back 0
1: Writing 1 forces the DCAEVT1 event trip condition and sets the TZFLG[DCAEVT1] bit.

Reset type: SYSRSn

2OSTR-0/W1S0hForce a One-Shot Trip Event via Software

0: Writing of 0 is ignored. Always reads back a 0.
1: Forces a one-shot trip event and sets the TZFLG[OST] bit.

Reset type: SYSRSn

1CBCR-0/W1S0hForce a Cycle-by-Cycle Trip Event via Software

0: Writing of 0 is ignored. Always reads back a 0.
1: Forces a cycle-by-cycle trip event and sets the TZFLG[CBC] bit.

Reset type: SYSRSn

0RESERVEDR-00hReserved

19.17.2.59 ETSEL Register (Offset = A4h) [Reset = 0000h]

ETSEL is shown in Figure 19-151 and described in Table 19-84.

Return to the Summary Table.

Event Trigger Selection Register

Figure 19-151 ETSEL Register
15141312111098
SOCBENSOCBSELSOCAENSOCASEL
R/W-0hR/W-0hR/W-0hR/W-0h
76543210
RESERVEDINTSELCMPSOCBSELCMPSOCASELCMPINTENINTSEL
R-0-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0h
Table 19-84 ETSEL Register Field Descriptions
BitFieldTypeResetDescription
15SOCBENR/W0hEnable the ADC Start of Conversion B (EPWMxSOCB) Pulse

0: Disable EPWMxSOCB.
1: Enable EPWMxSOCB pulse.

Reset type: SYSRSn

14-12SOCBSELR/W0hEPWMxSOCB Selection Options

These bits determine when a EPWMxSOCB pulse will be generated.

000: Enable DCBEVT1.soc event
001: Enable event time-base counter equal to zero. (TBCTR = 0x00)
010: Enable event time-base counter equal to period (TBCTR = TBPRD)
011: Enable event time-base counter equal to zero or period (TBCTR = 0x00 or TBCTR = TBPRD). This mode is useful in up-down count mode.
100: Enable event time-base counter equal to CMPA when the timer is incrementing or CMPC when the timer is incrementing
101: Enable event time-base counter equal to CMPA when the timer is decrementing or CMPC when the timer is decrementing
110: Enable event: time-base counter equal to CMPB when the timer is incrementing or CMPD when the timer is incrementing
111: Enable event: time-base counter equal to CMPB when the timer is decrementing or CMPD when the timer is decrementing (*) Event selected is determined by SOCBSELCMP bit.

Reset type: SYSRSn

11SOCAENR/W0hEnable the ADC Start of Conversion A (EPWMxSOCA) Pulse

0: Disable EPWMxSOCA.
1: Enable EPWMxSOCA pulse.

Reset type: SYSRSn

10-8SOCASELR/W0hEPWMxSOCA Selection Options

These bits determine when a EPWMxSOCA pulse will be generated.

000: Enable DCAEVT1.soc event
001: Enable event time-base counter equal to zero. (TBCTR = 0x00)
010: Enable event time-base counter equal to period (TBCTR = TBPRD)
011: Enable event time-base counter equal to zero or period (TBCTR = 0x00 or TBCTR = TBPRD). This mode is useful in up-down count mode.
100: Enable event time-base counter equal to CMPA when the timer is incrementing or CMPC when the timer is incrementing
101: Enable event time-base counter equal to CMPA when the timer is decrementing or CMPC when the timer is decrementing
110: Enable event: time-base counter equal to CMPB when the timer is incrementing or CMPD when the timer is incrementing
111: Enable event: time-base counter equal to CMPB when the timer is decrementing or CMPD when the timer is decrementing (*) Event selected is determined by SOCASELCMP bit.

Reset type: SYSRSn

7RESERVEDR-00hReserved
6INTSELCMPR/W0hEPWMxINT Compare Register Selection Options

0: Enable event time-base counter equal to CMPA when the timer is incrementing / Enable event time-base counter equal to CMPA when the timer is decrementing / Enable event: time-base counter equal to CMPB when the timer is incrementing / Enable event: time-base counter equal to CMPB when the timer is decrementing to INTSEL selection mux.
1: Enable event time-base counter equal to CMPC when the timer is incrementing / Enable event time-base counter equal to CMPC when the timer is decrementing / Enable event: time-base counter equal to CMPD when the timer is incrementing / Enable event: time-base counter equal to CMPD when the timer is decrementing to INTSEL selection mux.

Reset type: SYSRSn

5SOCBSELCMPR/W0hEPWMxSOCB Compare Register Selection Options

0: Enable event time-base counter equal to CMPA when the timer is incrementing / Enable event time-base counter equal to CMPA when the timer is decrementing / Enable event: time-base counter equal to CMPB when the timer is incrementing / Enable event: time-base counter equal to CMPB when the timer is decrementing to SOCBSEL selection mux.
1: Enable event time-base counter equal to CMPC when the timer is incrementing / Enable event time-base counter equal to CMPC when the timer is decrementing / Enable event: time-base counter equal to CMPD when the timer is incrementing / Enable event: time-base counter equal to CMPD when the timer is decrementing to SOCBSEL selection mux.

Reset type: SYSRSn

4SOCASELCMPR/W0hEPWMxSOCA Compare Register Selection Options

0: Enable event time-base counter equal to CMPA when the timer is incrementing / Enable event time-base counter equal to CMPA when the timer is decrementing / Enable event: time-base counter equal to CMPB when the timer is incrementing / Enable event: time-base counter equal to CMPB when the timer is decrementing to SOCASEL selection mux.
1: Enable event time-base counter equal to CMPC when the timer is incrementing / Enable event time-base counter equal to CMPC when the timer is decrementing / Enable event: time-base counter equal to CMPD when the timer is incrementing / Enable event: time-base counter equal to CMPD when the timer is decrementing to SOCASEL selection mux.

Reset type: SYSRSn

3INTENR/W0hEnable ePWM Interrupt (EPWMx_INT) Generation

0: Disable EPWMx_INT generation
1: Enable EPWMx_INT generation

Reset type: SYSRSn

2-0INTSELR/W0hePWM Interrupt (EPWMx_INT) Selection Options

000: Reserved
001: Enable event time-base counter equal to zero. (TBCTR = 0x00)
010: Enable event time-base counter equal to period (TBCTR = TBPRD)
011: Enable event time-base counter equal to zero or period (TBCTR = 0x00 or TBCTR = TBPRD). This mode is useful in up-down count mode.
100: Enable event time-base counter equal to CMPA when the timer is incrementing or CMPC when the timer is incrementing
101: Enable event time-base counter equal to CMPA when the timer is decrementing or CMPC when the timer is decrementing
110: Enable event: time-base counter equal to CMPB when the timer is incrementing or CMPD when the timer is incrementing
111: Enable event: time-base counter equal to CMPB when the timer is decrementing or CMPD when the timer is decrementing (*) Event selected is determined by INTSELCMP bit.

Reset type: SYSRSn

19.17.2.60 ETPS Register (Offset = A6h) [Reset = 0000h]

ETPS is shown in Figure 19-152 and described in Table 19-85.

Return to the Summary Table.

Event Trigger Pre-Scale Register

Figure 19-152 ETPS Register
15141312111098
SOCBCNTSOCBPRDSOCACNTSOCAPRD
R-0hR/W-0hR-0hR/W-0h
76543210
RESERVEDSOCPSSELINTPSSELINTCNTINTPRD
R-0-0hR/W-0hR/W-0hR-0hR/W-0h
Table 19-85 ETPS Register Field Descriptions
BitFieldTypeResetDescription
15-14SOCBCNTR0hePWM ADC Start-of-Conversion B Event (EPWMxSOCB) Counter Register

These bits indicate how many selected ETSEL[SOCBSEL] events have occurred:

00: No events have occurred.
01: 1 event has occurred.
10: 2 events have occurred.
11: 3 events have occurred.

Reset type: SYSRSn

13-12SOCBPRDR/W0hePWM ADC Start-of-Conversion B Event (EPWMxSOCB) Period Select

These bits determine how many selected ETSEL[SOCBSEL] events need to occur before an EPWMxSOCB pulse is generated. To be generated, the pulse must be enabled (ETSEL[SOCBEN] = 1). The SOCB pulse will be generated even if the status flag is set from a previous start of conversion (ETFLG[SOCB] = 1). Once the SOCB pulse is generated, the ETPS[SOCBCNT] bits will automatically be cleared.

00: Disable the SOCB event counter. No EPWMxSOCB pulse will be generated
01: Generate the EPWMxSOCB pulse on the first event: ETPS[SOCBCNT] = 0,1
10: Generate the EPWMxSOCB pulse on the second event: ETPS[SOCBCNT] = 1,0
11: Generate the EPWMxSOCB pulse on the third event: ETPS[SOCBCNT] = 1,1

Reset type: SYSRSn

11-10SOCACNTR0hePWM ADC Start-of-Conversion A Event (EPWMxSOCA) Counter Register

These bits indicate how many selected ETSEL[SOCASEL] events have occurred:

00: No events have occurred.
01: 1 event has occurred.
10: 2 events have occurred.
11: 3 events have occurred.

Reset type: SYSRSn

9-8SOCAPRDR/W0hePWM ADC Start-of-Conversion A Event (EPWMxSOCA) Period Select

These bits determine how many selected ETSEL[SOCASEL] events need to occur before an EPWMxSOCA pulse is generated. To be generated, the pulse must be enabled (ETSEL[SOCAEN] = 1). The SOCA pulse will be generated even if the status flag is set from a previous start of conversion (ETFLG[SOCA] = 1). Once the SOCA pulse is generated, the ETPS[SOCACNT] bits will automatically be cleared.

00: Disable the SOCA event counter. No EPWMxSOCA pulse will be generated
01: Generate the EPWMxSOCA pulse on the first event: ETPS[SOCACNT] = 0,1
10: Generate the EPWMxSOCA pulse on the second event: ETPS[SOCACNT] = 1,0
11: Generate the EPWMxSOCA pulse on the third event: ETPS[SOCACNT] = 1,1

Reset type: SYSRSn

7-6RESERVEDR-00hReserved
5SOCPSSELR/W0hEPWMxSOC A/B Pre-Scale Selection Bits

0: Selects ETPS [SOCACNT/SOCBCNT] and [SOCAPRD/SOCBPRD] registers to determine frequency of events (SOC pulse once every 0-3 events).
1: Selects ETSOCPS [SOCACNT2/SOCBCNT2] and [SOCAPRD2/SOCBPRD2] registers to determine frequency of events (SOC pulse once every 0-15 events).

Reset type: SYSRSn

4INTPSSELR/W0hEPWMxINTn Pre-Scale Selection Bits

0: Selects ETPS [INTCNT, and INTPRD] registers to determine frequency of events (interrupt once every 0-3 events).
1: Selects ETINTPS [ INTCNT2, and INTPRD2 ] registers to determine frequency of events (interrupt once every 0-15 events).

Reset type: SYSRSn

3-2INTCNTR0hePWM Interrupt Event (EPWMx_INT) Counter Register

These bits indicate how many selected ETSEL[INTSEL] events have occurred. These bits are automatically cleared when an interrupt pulse is generated. If interrupts are disabled, ETSEL[INT] = 0 or the interrupt flag is set, ETFLG[INT] = 1, the counter will stop counting events when it reaches the period value ETPS[INTCNT] = ETPS[INTPRD].

00: No events have occurred.
01: 1 event has occurred.
10: 2 events have occurred.
11: 3 events have occurred.

Reset type: SYSRSn

1-0INTPRDR/W0hePWM Interrupt (EPWMx_INT) Period Select

These bits determine how many selected ETSEL[INTSEL] events need to occur before an interrupt is generated. To be generated, the interrupt must be enabled (ETSEL[INT] = 1). If the interrupt status flag is set from a previous interrupt (ETFLG[INT] = 1) then no interrupt will be generated until the flag is cleared via the ETCLR[INT] bit. This allows for one interrupt to be pending while another is still being serviced. Once the interrupt is generated, the ETPS[INTCNT] bits will automatically be cleared.

Writing a INTPRD value that is the same as the current counter value will trigger an interrupt if it is enabled and the status flag is clear.

Writing a INTPRD value that is less than the current counter value will result in an undefined state. If a counter event occurs at the same instant as a new zero or non-zero INTPRD value is written, the counter is incremented.

00: Disable the interrupt event counter. No interrupt will be generated and ETFRC[INT] is ignored.
01: Generate an interrupt on the first event INTCNT = 01 (first event)
10: Generate interrupt on ETPS[INTCNT] = 1,0 (second event)
11: Generate interrupt on ETPS[INTCNT] = 1,1 (third event)

Reset type: SYSRSn

19.17.2.61 ETFLG Register (Offset = A8h) [Reset = 0000h]

ETFLG is shown in Figure 19-153 and described in Table 19-86.

Return to the Summary Table.

Event Trigger Flag Register

Figure 19-153 ETFLG Register
15141312111098
RESERVED
R-0-0h
76543210
RESERVEDSOCBSOCARESERVEDINT
R-0-0hR-0hR-0hR-0-0hR-0h
Table 19-86 ETFLG Register Field Descriptions
BitFieldTypeResetDescription
15-4RESERVEDR-00hReserved
3SOCBR0hLatched ePWM ADC Start-of-Conversion A (EPWMxSOCB) Status Flag

Unlike the ETFLG[INT] flag, the EPWMxSOCB output will continue to pulse even if the flag bit is set.

0: Indicates no event occurred
1: Indicates that a start of conversion pulse was generated on EPWMxSOCB. The EPWMxSOCB output will continue to be generated even if the flag bit is set.

Reset type: SYSRSn

2SOCAR0hLatched ePWM ADC Start-of-Conversion A (EPWMxSOCA) Status Flag

Unlike the ETFLG[INT] flag, the EPWMxSOCA output will continue to pulse even if the flag bit is set.

0: Indicates no event occurred
1: Indicates that a start of conversion pulse was generated on EPWMxSOCA. The EPWMxSOCA output will continue to be generated even if the flag bit is set.

Reset type: SYSRSn

1RESERVEDR-00hReserved
0INTR0hLatched ePWM Interrupt (EPWMx_INT) Status Flag

0: Indicates no event occurred
1: Indicates that an ePWMx interrupt (EPWMx_INT) was generated. No further interrupts will be generated until the flag bit is cleared. Up to one interrupt can be pending while the ETFLG[INT] bit is still set. If an interrupt is pending, it will not be generated until after the ETFLG[INT] bit is cleared.

Reset type: SYSRSn

19.17.2.62 ETCLR Register (Offset = AAh) [Reset = 0000h]

ETCLR is shown in Figure 19-154 and described in Table 19-87.

Return to the Summary Table.

Event Trigger Clear Register

Figure 19-154 ETCLR Register
15141312111098
RESERVED
R-0-0h
76543210
RESERVEDSOCBSOCARESERVEDINT
R-0-0hR-0/W1S-0hR-0/W1S-0hR-0-0hR-0/W1S-0h
Table 19-87 ETCLR Register Field Descriptions
BitFieldTypeResetDescription
15-4RESERVEDR-00hReserved
3SOCBR-0/W1S0hePWM ADC Start-of-Conversion A (EPWMxSOCB) Flag Clear Bit

0: Writing a 0 has no effect. Always reads back a 0
1: Clears the ETFLG[SOCB] flag bit

Reset type: SYSRSn

2SOCAR-0/W1S0hePWM ADC Start-of-Conversion A (EPWMxSOCA) Flag Clear Bit

0: Writing a 0 has no effect. Always reads back a 0
1: Clears the ETFLG[SOCA] flag bit

Reset type: SYSRSn

1RESERVEDR-00hReserved
0INTR-0/W1S0hePWM Interrupt (EPWMx_INT) Flag Clear Bit

0: Writing a 0 has no effect. Always reads back a 0
1: Clears the ETFLG[INT] flag bit and enable further interrupts pulses to be generated

Reset type: SYSRSn

19.17.2.63 ETFRC Register (Offset = ACh) [Reset = 0000h]

ETFRC is shown in Figure 19-155 and described in Table 19-88.

Return to the Summary Table.

Event Trigger Force Register

Figure 19-155 ETFRC Register
15141312111098
RESERVED
R-0-0h
76543210
RESERVEDSOCBSOCARESERVEDINT
R-0-0hR-0/W1S-0hR-0/W1S-0hR-0-0hR-0/W1S-0h
Table 19-88 ETFRC Register Field Descriptions
BitFieldTypeResetDescription
15-4RESERVEDR-00hReserved
3SOCBR-0/W1S0hSOCB Force Bit

The SOCB pulse will only be generated if the event is enabled in the ETSEL register. The ETFLG[SOCB] flag bit will be set regardless.

0: Writing 0 to this bit will be ignored. Always reads back a 0.
1: Generates a pulse on EPWMxSOCB and set the SOCBFLG bit. This bit is used for test purposes.

Reset type: SYSRSn

2SOCAR-0/W1S0hSOCA Force Bit

The SOCA pulse will only be generated if the event is enabled in the ETSEL register. The ETFLG[SOCA] flag bit will be set regardless.

0: Writing 0 to this bit will be ignored. Always reads back a 0.
1: Generates a pulse on EPWMxSOCA and set the SOCAFLG bit. This bit is used for test purposes.

Reset type: SYSRSn

1RESERVEDR-00hReserved
0INTR-0/W1S0hINT Force Bit

The interrupt will only be generated if the event is enabled in the ETSEL register. The INT flag bit will be set regardless.

0: Writing 0 to this bit will be ignored. Always reads back a 0.
1: Generates an interrupt on EPWMxINT and set the INT flag bit. This bit is used for test purposes.

Reset type: SYSRSn

19.17.2.64 ETINTPS Register (Offset = AEh) [Reset = 0000h]

ETINTPS is shown in Figure 19-156 and described in Table 19-89.

Return to the Summary Table.

Event-Trigger Interrupt Pre-Scale Register

Figure 19-156 ETINTPS Register
15141312111098
RESERVED
R-0-0h
76543210
INTCNT2INTPRD2
R-0hR/W-0h
Table 19-89 ETINTPS Register Field Descriptions
BitFieldTypeResetDescription
15-8RESERVEDR-00hReserved
7-4INTCNT2R0hEPWMxINT Counter 2

When ETPS[INTPSSEL]=1, these bits indicate how many selected events have occurred:

0000: No events
0001: 1 event
0010: 2 events
0011: 3 events
0100: 4 events
...
1111: 15 events

Reset type: SYSRSn

3-0INTPRD2R/W0hEPWMxINT Period 2 Select

When ETPS[INTPSSEL] = 1, these bits select how many selected events need to occur before an interrupt is generated:

0000: Disable counter
0001: Generate interrupt on INTCNT = 1 (first event)
0010: Generate interrupt on INTCNT = 2 (second event)
0011: Generate interrupt on INTCNT = 3 (third event)
0100: Generate interrupt on INTCNT = 4 (fourth event)
...
1111: Generate interrupt on INTCNT = 15 (fifteenth event)

Reset type: SYSRSn

19.17.2.65 ETSOCPS Register (Offset = B0h) [Reset = 0000h]

ETSOCPS is shown in Figure 19-157 and described in Table 19-90.

Return to the Summary Table.

Event-Trigger SOC Pre-Scale Register

Figure 19-157 ETSOCPS Register
15141312111098
SOCBCNT2SOCBPRD2
R-0hR/W-0h
76543210
SOCACNT2SOCAPRD2
R-0hR/W-0h
Table 19-90 ETSOCPS Register Field Descriptions
BitFieldTypeResetDescription
15-12SOCBCNT2R0hEPWMxSOCB Counter 2

When ETPS[SOCPSSEL] = 1, these bits indicate how many selected events have occurred:

0000: No events
0001: 1 event
0010: 2 events
0011: 3 events
0100: 4 events
...
1111: 15 events

Reset type: SYSRSn

11-8SOCBPRD2R/W0hEPWMxSOCB Period 2 Select

When ETPS[SOCPSSEL] = 1, these bits select how many selected event need to occur before an SOCB pulse is generated:

0000: Disable counter
0001: Generate SOC pulse on SOCBCNT2 = 1 (first event)
0010: Generate SOC pulse on SOCBCNT2 = 2 (second event)
0011: Generate SOC pulse on SOCBCNT2 = 3 (third event)
0100: Generate SOC pulse on SOCBCNT2 = 4 (fourth event)
...
1111: Generate SOC pulse on SOCBCNT2 = 15 (fifteenth event)

Reset type: SYSRSn

7-4SOCACNT2R0hEPWMxSOCA Counter 2

When ETPS[SOCPSSEL] = 1, these bits indicate how many selected events have occurred:

0000: No events
0001: 1 event
0010: 2 events
0011: 3 events
0100: 4 events
...
1111: 15 events

Reset type: SYSRSn

3-0SOCAPRD2R/W0hEPWMxSOCA Period 2 Select

When ETPS[SOCPSSEL] = 1, these bits select how many selected event need to occur before an SOCA pulse is generated:

0000: Disable counter
0001: Generate SOC pulse on SOCACNT2 = 1 (first event)
0010: Generate SOC pulse on SOCACNT2 = 2 (second event)
0011: Generate SOC pulse on SOCACNT2 = 3 (third event)
0100: Generate SOC pulse on SOCACNT2 = 4 (fourth event)
...
1111: Generate SOC pulse on SOCACNT2 = 15 (fifteenth event)

Reset type: SYSRSn

19.17.2.66 ETCNTINITCTL Register (Offset = B2h) [Reset = 0000h]

ETCNTINITCTL is shown in Figure 19-158 and described in Table 19-91.

Return to the Summary Table.

Event-Trigger Counter Initialization Control Register

Figure 19-158 ETCNTINITCTL Register
15141312111098
SOCBINITENSOCAINITENINTINITENSOCBINITFRCSOCAINITFRCINTINITFRCRESERVED
R/W-0hR/W-0hR/W-0hR-0/W1S-0hR-0/W1S-0hR-0/W1S-0hR-0-0h
76543210
RESERVED
R-0-0h
Table 19-91 ETCNTINITCTL Register Field Descriptions
BitFieldTypeResetDescription
15SOCBINITENR/W0hEPWMxSOCB Counter 2 Initialization Enable

0: Has no effect.
1: Enable initialization of EPWMxSOCB counter with contents of ETCNTINIT[SOCBINIT] on a SYNC event or software force.

Reset type: SYSRSn

14SOCAINITENR/W0hEPWMxSOCA Counter 2 Initialization Enable

0: Has no effect.
1: Enable initialization of EPWMxSOCA counter with contents of ETCNTINIT[SOCAINIT] on a SYNC event or software force.

Reset type: SYSRSn

13INTINITENR/W0hEPWMxINT Counter 2 Initialization Enable

0: Has no effect.
1: Enable initialization of EPWMxINT counter 2 with contents of ETCNTINIT[INTINIT] on a SYNC event or software force.

Reset type: SYSRSn

12SOCBINITFRCR-0/W1S0hEPWMxSOCB Counter 2 Initialization Force

0: Has no effect.
1: This bit forces the ET EPWMxSOCB counter to be initialized with the contents of ETCNTINIT[SOCBINIT].

Reset type: SYSRSn

11SOCAINITFRCR-0/W1S0hEPWMxSOCA Counter 2 Initialization Force

0: Has no effect.
1: This bit forces the ET EPWMxSOCA counter to be initialized with the contents of ETCNTINIT[SOCAINIT].

Reset type: SYSRSn

10INTINITFRCR-0/W1S0hEPWMxINT Counter 2 Initialization Force

0: Has no effect.
1: This bit forces the ET EPWMxINT counter to be initialized with the contents of ETCNTINIT[INTINIT].

Reset type: SYSRSn

9-0RESERVEDR-00hReserved

19.17.2.67 ETCNTINIT Register (Offset = B4h) [Reset = 0000h]

ETCNTINIT is shown in Figure 19-159 and described in Table 19-92.

Return to the Summary Table.

Event-Trigger Counter Initialization Register

Figure 19-159 ETCNTINIT Register
15141312111098
RESERVEDSOCBINIT
R-0hR/W-0h
76543210
SOCAINITINTINIT
R/W-0hR/W-0h
Table 19-92 ETCNTINIT Register Field Descriptions
BitFieldTypeResetDescription
15-12RESERVEDR0hReserved
11-8SOCBINITR/W0hEPWMxSOCB Counter 2 Initialization Bits

The ET EPWMxSOCB counter is initialized with the contents of this register on an ePWM SYNC event or a software force.

Reset type: SYSRSn

7-4SOCAINITR/W0hEPWMxSOCA Counter 2 Initialization Bits

The ET EPWMxSOCA counter is initialized with the contents of this register on an ePWM SYNC event or a software force.

Reset type: SYSRSn

3-0INTINITR/W0hEPWMxINT Counter 2 Initialization Bits

The ET EPWMxINT counter is initialized with the contents of this register on an ePWM SYNC event or a software force.

Reset type: SYSRSn

19.17.2.68 DCTRIPSEL Register (Offset = C0h) [Reset = 0000h]

DCTRIPSEL is shown in Figure 19-160 and described in Table 19-93.

Return to the Summary Table.

Digital Compare Trip Select Register

Figure 19-160 DCTRIPSEL Register
15141312111098
DCBLCOMPSELDCBHCOMPSEL
R/W-0hR/W-0h
76543210
DCALCOMPSELDCAHCOMPSEL
R/W-0hR/W-0h
Table 19-93 DCTRIPSEL Register Field Descriptions
BitFieldTypeResetDescription
15-12DCBLCOMPSELR/W0hDigital Compare B Low Input Select Bits

0000: TRIPIN1
0001: TRIPIN2
0010: TRIPIN3
0011: TRIPIN4
...
1011: TRIPIN12
1100: Reserved
1101: TRIPIN14
1110: TRIPIN15
1111: Trip combination input (all trip inputs selected by DCBLTRIPSEL register ORed together)

Reset type: SYSRSn

11-8DCBHCOMPSELR/W0hDigital Compare B High Input Select Bits

0000: TRIPIN1
0001: TRIPIN2
0010: TRIPIN3
0011: TRIPIN4
...
1011: TRIPIN12
1100: Reserved
1101: TRIPIN14
1110: TRIPIN15
1111: Trip combination input (all trip inputs selected by DCBHTRIPSEL register ORed together)

Reset type: SYSRSn

7-4DCALCOMPSELR/W0hDigital Compare A Low Input Select Bits

0000: TRIPIN1
0001: TRIPIN2
0010: TRIPIN3
0011: TRIPIN4
...
1011: TRIPIN12
1100: Reserved
1101: TRIPIN14
1110: TRIPIN15
1111: Trip combination input (all trip inputs selected by DCALTRIPSEL register ORed together)

Reset type: SYSRSn

3-0DCAHCOMPSELR/W0hDigital Compare A High Input Select Bits

0000: TRIPIN1
0001: TRIPIN2
0010: TRIPIN3
0011: TRIPIN4
...
1011: TRIPIN12
1100: Reserved
1101: TRIPIN14
1110: TRIPIN15
1111: Trip combination input (all trip inputs selected by DCAHTRIPSEL register ORed together)

Reset type: SYSRSn

19.17.2.69 DCACTL Register (Offset = C3h) [Reset = 0000h]

DCACTL is shown in Figure 19-161 and described in Table 19-94.

Return to the Summary Table.

Digital Compare A Control Register

Figure 19-161 DCACTL Register
15141312111098
EVT2LATEVT2LATCLRSELEVT2LATSELRESERVEDEVT2FRCSYNCSELEVT2SRCSEL
R-0hR/W-0hR/W-0hR-0-0hR/W-0hR/W-0h
76543210
EVT1LATEVT1LATCLRSELEVT1LATSELEVT1SYNCEEVT1SOCEEVT1FRCSYNCSELEVT1SRCSEL
R-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0h
Table 19-94 DCACTL Register Field Descriptions
BitFieldTypeResetDescription
15EVT2LATR0hIndicates the status of DCAEVT2LAT signal.
0 : The DCAEVT2LAT latch is cleared.
1 : The DCAEVT2LAT latch is set.

Reset type: SYSRSn

14-13EVT2LATCLRSELR/W0hDCAEVT2 Latched clear source select:
00: CNT_ZERO event clears DCAEVT2 latch.
01: PRD_EQ event clears DCAEVT2 latch.
10: CNT_ZERO event or PRD_EQ event clears DCAEVT2 latch.
11: Reserved.

Reset type: SYSRSn

12EVT2LATSELR/W0hDCAEVT2 Latched signal select:
0: Does not select the DCAEVT2 latched signal as source of DCAEVT2.force.
1: Selects the DCAEVT2 latched signal as source of DCAEVT2.force.

Reset type: SYSRSn

11-10RESERVEDR-00hReserved
9EVT2FRCSYNCSELR/W0hDCAEVT2 Force Synchronization Signal Select

0: Source is synchronized with EPWMCLK
1: Source is passed through asynchronously

Reset type: SYSRSn

8EVT2SRCSELR/W0hDCAEVT2 Source Signal Select

0: Source Is DCAEVT2 Signal
1: Source Is DCEVTFILT Signal

Reset type: SYSRSn

7EVT1LATR0hIndicates the status of DCAEVT1LAT signal.
0 : The DCAEVT1LAT latch is cleared.
1 : The DCAEVT1LAT latch is set.

Reset type: SYSRSn

6-5EVT1LATCLRSELR/W0hDCAEVT1 Latched clear source select:
00: CNT_ZERO event clears DCAEVT1 latch.
01: PRD_EQ event clears DCAEVT1 latch.
10: CNT_ZERO event or PRD_EQ event clears DCAEVT1 latch.
11 : Reserved.

Reset type: SYSRSn

4EVT1LATSELR/W0hDCAEVT1 Latched signal select:
0: Does not select the DCAEVT1 latched signal as source of DCAEVT1.force.
1: Selects the DCAEVT1 latched signal as source of DCAEVT1.force.

Reset type: SYSRSn

3EVT1SYNCER/W0hDCAEVT1 SYNC, Enable/Disable

0: SYNC Generation Disabled
1: SYNC Generation Enabled

Reset type: SYSRSn

2EVT1SOCER/W0hDCAEVT1 SOC, Enable/Disable

0: SOC Generation Disabled
1: SOC Generation Enabled

Reset type: SYSRSn

1EVT1FRCSYNCSELR/W0hDCAEVT1 Force Synchronization Signal Select

0: Source is synchronized with EPWMCLK
1: Source is passed through asynchronously

Reset type: SYSRSn

0EVT1SRCSELR/W0hDCAEVT1 Source Signal Select

0: Source Is DCAEVT1 Signal
1: Source Is DCEVTFILT Signal

Reset type: SYSRSn

19.17.2.70 DCBCTL Register (Offset = C4h) [Reset = 0000h]

DCBCTL is shown in Figure 19-162 and described in Table 19-95.

Return to the Summary Table.

Digital Compare B Control Register

Figure 19-162 DCBCTL Register
15141312111098
EVT2LATEVT2LATCLRSELEVT2LATSELRESERVEDEVT2FRCSYNCSELEVT2SRCSEL
R-0hR/W-0hR/W-0hR-0-0hR/W-0hR/W-0h
76543210
EVT1LATEVT1LATCLRSELEVT1LATSELEVT1SYNCEEVT1SOCEEVT1FRCSYNCSELEVT1SRCSEL
R-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0h
Table 19-95 DCBCTL Register Field Descriptions
BitFieldTypeResetDescription
15EVT2LATR0hIndicates the status of DCBEVT2LAT signal.
0 The DCBEVT2LAT latch is cleared.
1 The DCBEVT2LAT latch is set.

Reset type: SYSRSn

14-13EVT2LATCLRSELR/W0hDCBEVT2 Latched clear source select:
00 CNT_ZERO event clears DCBEVT2 latch.
01 PRD_EQ event clears DCBEVT2 latch.
10 CNT_ZERO event or PRD_EQ event clears DCBEVT2 latch.
11 Reserved.

Reset type: SYSRSn

12EVT2LATSELR/W0hDCBEVT2 Latched signal select:
0 Does not select the DCBEVT2 latched signal (Refer figure 'Modifications to DCBEVT1.force/DCBEVT2.force generation.') as source of DCBEVT2.force.
1 Selects the DCBEVT2 latched signal as source of DCBEVT2.force.

Reset type: SYSRSn

11-10RESERVEDR-00hReserved
9EVT2FRCSYNCSELR/W0hDCBEVT2 Force Synchronization Signal Select

0: Source is synchronized with EPWMCLK
1: Source is passed through asynchronously

Reset type: SYSRSn

8EVT2SRCSELR/W0hDCBEVT2 Source Signal Select

0: Source Is DCBEVT2 Signal
1: Source Is DCEVTFILT Signal

Reset type: SYSRSn

7EVT1LATR0hIndicates the status of DCBEVT1LAT signal.
0 The DCBEVT1LAT latch is cleared.
1 The DCBEVT1LAT latch is set.

Reset type: SYSRSn

6-5EVT1LATCLRSELR/W0hDCBEVT1 Latched clear source select:
00 CNT_ZERO event clears DCBEVT1 latch.
01 PRD_EQ event clears DCBEVT1 latch.
10 CNT_ZERO event or PRD_EQ event clears DCBEVT1 latch.
11 Reserved.

Reset type: SYSRSn

4EVT1LATSELR/W0hDCBEVT1 Latched signal select:
0 Does not select the DCBEVT1 latched signal (Refer figure 'Modifications to DCBEVT1.force/DCBEVT2.force generation.') as source of DCBEVT1.force.
1 Selects the DCBEVT1 latched signal as source of DCBEVT1.force.

Reset type: SYSRSn

3EVT1SYNCER/W0hDCBEVT1 SYNC, Enable/Disable

0: SYNC Generation Disabled
1: SYNC Generation Enabled

Reset type: SYSRSn

2EVT1SOCER/W0hDCBEVT1 SOC, Enable/Disable

0: SOC Generation Disabled
1: SOC Generation Enabled

Reset type: SYSRSn

1EVT1FRCSYNCSELR/W0hDCBEVT1 Force Synchronization Signal Select

0: Source is synchronized with EPWMCLK
1: Source is passed through asynchronously

Reset type: SYSRSn

0EVT1SRCSELR/W0hDCBEVT1 Source Signal Select

0: Source Is DCBEVT1 Signal
1: Source Is DCEVTFILT Signal

Reset type: SYSRSn

19.17.2.71 DCFCTL Register (Offset = C7h) [Reset = 0000h]

DCFCTL is shown in Figure 19-163 and described in Table 19-96.

Return to the Summary Table.

Digital Compare Filter Control Register

Figure 19-163 DCFCTL Register
15141312111098
EDGESTATUSEDGECOUNTEDGEMODE
R-0hR/W-0hR/W-0h
76543210
RESERVEDEDGEFILTSELPULSESELBLANKINVBLANKESRCSEL
R-0-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0h
Table 19-96 DCFCTL Register Field Descriptions
BitFieldTypeResetDescription
15-13EDGESTATUSR0hEdge Status:
These bits reflect the total number of edges currently captured. When the value matches the EDGECOUNT, the status bits are set to zero. and a TBCLK wide pulse is generated which can then be output on the DCEVTFILT signal. The edge counter can be reset by writing 000 to the EDGECOUNT value:

Reset type: SYSRSn

12-10EDGECOUNTR/W0hEdge Count: These bits select how many edges to count before generating a TBCLK wide pulse on the DCEVTFILT signal:
000: no edges, reset current EDGESTATUS bits to 0,0,0
001: 1 edge
010: 2 edges
011: 3 edges
100: 4 edges
101: 5 edges
110: 6 edges
111: 7 edges

Reset type: SYSRSn

9-8EDGEMODER/W0hEdge Mode Select:
00: Low To High Edge
01: High To Low Edge
10: Both Edges
11: Reserved

Reset type: SYSRSn

7RESERVEDR-00hReserved
6EDGEFILTSELR/W0hEdge Filter Select:
0: Edge Filter Not Selected
1: Edge Filter Selected

Reset type: SYSRSn

5-4PULSESELR/W0hPulse Select For Blanking & Capture Alignment

00: Time-base counter equal to period (TBCTR = TBPRD)
01: Time-base counter equal to zero (TBCTR = 0x00)
10: Time-base counter equal to zero (TBCTR = 0x00) or period (TBCTR = TBPRD)
11: BLANKPULSEMIX

Reset type: SYSRSn

3BLANKINVR/W0hBlanking Window Inversion

0: Blanking window not inverted
1: Blanking window inverted

Reset type: SYSRSn

2BLANKER/W0hBlanking Window Enable/Disable

0: Blanking window is disabled
1: Blanking window is enabled

Reset type: SYSRSn

1-0SRCSELR/W0hFilter Block Signal Source Select

00: Source Is DCAEVT1 Signal
01: Source Is DCAEVT2 Signal
10: Source Is DCBEVT1 Signal
11: Source Is DCBEVT2 Signal

Reset type: SYSRSn

19.17.2.72 DCCAPCTL Register (Offset = C8h) [Reset = 0000h]

DCCAPCTL is shown in Figure 19-164 and described in Table 19-97.

Return to the Summary Table.

Digital Compare Capture Control Register

Figure 19-164 DCCAPCTL Register
15141312111098
CAPMODECAPCLRCAPSTSRESERVED
R/W-0hR-0/W1S-0hR-0hR-0-0h
76543210
RESERVEDSHDWMODECAPE
R-0-0hR/W-0hR/W-0h
Table 19-97 DCCAPCTL Register Field Descriptions
BitFieldTypeResetDescription
15CAPMODER/W0hCounter Capture Mode

0: When a DCEVTFILT occurs and the counter capture is enabled, then the current TBCNT value is captured in the active register. When the respective trip event occurs, further trip (capture) events are ignored until the next PRD_eq or CNT_zero event (as selected by the PULSESEL bit in the DCFCTL register) re-triggers the capture mechanism.

If active mode is enabled, via SHDWMODE bit in DCCAPCTL register, CPU reads of this register will return the active register value.

If shadow mode is enabled, via SHDWMODE bit in DCCAPCTL register, the active register is copied to the shadow register on the PRD_eq or CNT_zero event (whichever is selected by PULSESEL bit in DCFCTL register). CPU reads of this register will return the shadow register value.

1: When a DCEVTFILT occurs and the counter capture is enabled, then the current TBCNT value is captured in the active register. When the respective trip event occurs - it will set the CAPSTS flag and further trip (capture) events are ignored until this bit is cleared. CAPSTS can be cleared by writing to CAPCLR bit in DCCAPCTL register and it re-triggers the capture mechanism.

If active mode is enabled, via SHDWMODE bit in DCCAPCTL register, CPU reads of this register will return the active register value.

If shadow mode is enabled, via SHDWMODE bit in DCCAPCTL register, the active register is copied to the shadow register on the PRD_eq or CNT_zero event (whichever is selected by PULSESEL bit in DCFCTL register). CPU reads of this register will return the shadow register value.

Reset type: SYSRSn

14CAPCLRR-0/W1S0hDC Capture Latched Status Clear Flag

0: Writing a 0 has no effect.
1: Writing a 1 will clear this CAPSTS (set) condition.

Reset type: SYSRSn

13CAPSTSR0hLatched Status Flag for Capture Event

0: No DC capture event occurred.
1: A DC capture event has occurred.

Reset type: SYSRSn

12-2RESERVEDR-00hReserved
1SHDWMODER/W0hTBCTR Counter Capture Shadow Select Mode

0: Enable shadow mode. The DCCAP active register is copied to shadow register on a TBCTR = TBPRD or TBCTR = zero event as defined by the DCFCTL[PULSESEL] bit. CPU reads of the DCCAP register will return the shadow register contents.
1: Active Mode. In this mode the shadow register is disabled. CPU reads from the DCCAP register will always return the active register contents.

Reset type: SYSRSn

0CAPER/W0hTBCTR Counter Capture Enable/Disable

0: Disable the time-base counter capture.
1: Enable the time-base counter capture.

Reset type: SYSRSn

19.17.2.73 DCFOFFSET Register (Offset = C9h) [Reset = 0000h]

DCFOFFSET is shown in Figure 19-165 and described in Table 19-98.

Return to the Summary Table.

Digital Compare Filter Offset Register

Figure 19-165 DCFOFFSET Register
15141312111098
DCFOFFSET
R/W-0h
76543210
DCFOFFSET
R/W-0h
Table 19-98 DCFOFFSET Register Field Descriptions
BitFieldTypeResetDescription
15-0DCFOFFSETR/W0hBlanking Window Offset

These 16-bits specify the number of TBCLK cycles from the blanking window reference to the point when the blanking window is applied. The blanking window reference is either period or zero as defined by the DCFCTL[PULSESEL] bit. This offset register is shadowed and the active register is loaded at the reference point defined by DCFCTL[PULSESEL]. The offset counter is also initialized and begins to count down when the active register is loaded. When the counter expires, the blanking window is applied. If the blanking window is currently active, then the blanking window counter is restarted.

Reset type: SYSRSn

19.17.2.74 DCFOFFSETCNT Register (Offset = CAh) [Reset = 0000h]

DCFOFFSETCNT is shown in Figure 19-166 and described in Table 19-99.

Return to the Summary Table.

Digital Compare Filter Offset Counter Register

Figure 19-166 DCFOFFSETCNT Register
15141312111098
DCFOFFSETCNT
R-0h
76543210
DCFOFFSETCNT
R-0h
Table 19-99 DCFOFFSETCNT Register Field Descriptions
BitFieldTypeResetDescription
15-0DCFOFFSETCNTR0hBlanking Offset Counter

These 16-bits are read only and indicate the current value of the offset counter. The counter counts down to zero and then stops until it is re-loaded on the next period or zero event as defined by the DCFCTL[PULSESEL] bit. The offset counter is not affected by the free/soft emulation bits. That is, it will always continue to count down if the device is halted by a emulation stop.

Reset type: SYSRSn

19.17.2.75 DCFWINDOW Register (Offset = CBh) [Reset = 0000h]

DCFWINDOW is shown in Figure 19-167 and described in Table 19-100.

Return to the Summary Table.

Digital Compare Filter Window Register

Figure 19-167 DCFWINDOW Register
15141312111098
DCFWINDOW
R/W-0h
76543210
DCFWINDOW
R/W-0h
Table 19-100 DCFWINDOW Register Field Descriptions
BitFieldTypeResetDescription
15-0DCFWINDOWR/W0hBlanking Window Width

00h: No blanking window is generated.
01-FFFFh: Specifies the width of the blanking window in TBCLK cycles. The blanking window begins when the offset counter expires. When this occurs, the window counter is loaded and begins to count down. If the blanking window is currently active and the offset counter expires, the blanking window counter is not restarted and the blanking window is cut short prematurely. Care should be taken to avoid this situation. The blanking window can cross a PWM period boundary.

Reset type: SYSRSn

19.17.2.76 DCFWINDOWCNT Register (Offset = CCh) [Reset = 0000h]

DCFWINDOWCNT is shown in Figure 19-168 and described in Table 19-101.

Return to the Summary Table.

Digital Compare Filter Window Counter Register

Figure 19-168 DCFWINDOWCNT Register
15141312111098
DCFWINDOWCNT
R-0h
76543210
DCFWINDOWCNT
R-0h
Table 19-101 DCFWINDOWCNT Register Field Descriptions
BitFieldTypeResetDescription
15-0DCFWINDOWCNTR0hBlanking Window Counter

These 16 bits are read only and indicate the current value of the window counter. The counter counts down to zero and then stops until it is re-loaded when the offset counter reaches zero again.

Reset type: SYSRSn

19.17.2.77 BLANKPULSEMIXSEL Register (Offset = CDh) [Reset = 0000h]

BLANKPULSEMIXSEL is shown in Figure 19-169 and described in Table 19-102.

Return to the Summary Table.

Blanking window trigger pulse select register

Figure 19-169 BLANKPULSEMIXSEL Register
15141312111098
RESERVEDCDDCDU
R-0-0hR/W-0hR/W-0h
76543210
CCDCCUCBDCBUCADCAUPRDZRO
R/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0h
Table 19-102 BLANKPULSEMIXSEL Register Field Descriptions
BitFieldTypeResetDescription
15-10RESERVEDR-00hReserved
9CDDR/W0hEnable event time-base counter equal to CMPD when the timer is decrementing to the blanking window trigger (BLANKPULSEMIX).

0: CMPD down-count match enable event is not enabled
1: Enable CMPD down-count match enable event

Reset type: SYSRSn

8CDUR/W0hEnable event time-base counter equal to CMPD when the timer is incrementing to the blanking window trigger (BLANKPULSEMIX).

0: CMPD up-count match enable event is not enabled
1: Enable CMPD up-count match enable event

Reset type: SYSRSn

7CCDR/W0hEnable event time-base counter equal to CMPC when the timer is decrementing to the blanking window trigger (BLANKPULSEMIX).

0: CMPC down-count match enable event is not enabled
1: Enable CMPC down-count match enable event

Reset type: SYSRSn

6CCUR/W0hEnable event time-base counter equal to CMPC when the timer is incrementing to the blanking window trigger (BLANKPULSEMIX).

0: CMPC up-count match enable event is not enabled
1: Enable CMPC up-count match enable event

Reset type: SYSRSn

5CBDR/W0hEnable event time-base counter equal to CMPB when the timer is decrementing to the blanking window trigger (BLANKPULSEMIX).

0: CMPB down-count match enable event is not enabled
1: Enable CMPB down-count match enable event

Reset type: SYSRSn

4CBUR/W0hEnable event time-base counter equal to CMPB when the timer is incrementing to the mixed ET interrupt trigger signal (BLANKPULSEMIX).

0: CMPB up-count match enable event is not enabled
1: Enable CMPB up-count match enable event

Reset type: SYSRSn

3CADR/W0hEnable event time-base counter equal to CMPA when the timer is decrementing to the blanking window trigger (BLANKPULSEMIX).

0: CMPA down-count match enable event is not enabled
1: Enable CMPA down-count match enable event

Reset type: SYSRSn

2CAUR/W0hEnable event time-base counter equal to CMPA when the timer is incrementing to the blanking window trigger (BLANKPULSEMIX).

0: CMPA up-count match enable event is not enabled
1: Enable CMPA up-count match enable event

Reset type: SYSRSn

1PRDR/W0hEnable event time-base counter equal to period (TBCTR = TBPRD) to the blanking window trigger (BLANKPULSEMIX).

0: Period match event is not enabled
1: Enable period match event

Reset type: SYSRSn

0ZROR/W0hEnable event time-base counter equal to zero (TBCTR = 0x00) to the blanking window trigger (BLANKPULSEMIX).

0: Zero match event is not enabled
1: Enable zero match event

Reset type: SYSRSn

19.17.2.78 DCCAP Register (Offset = CFh) [Reset = 0000h]

DCCAP is shown in Figure 19-170 and described in Table 19-103.

Return to the Summary Table.

Digital Compare Counter Capture Register

Figure 19-170 DCCAP Register
15141312111098
DCCAP
R-0h
76543210
DCCAP
R-0h
Table 19-103 DCCAP Register Field Descriptions
BitFieldTypeResetDescription
15-0DCCAPR0hDigital Compare Time-Base Counter Capture

To enable time-base counter capture, set the DCCAPCLT[CAPE] bit to 1. If enabled, reflects the value of the time-base counter (TBCTR) on the low to high edge transition of a filtered (DCEVTFLT) event. Further capture events are ignored until the next period or zero as selected by the DCFCTL[PULSESEL] bit. Shadowing of DCCAP is enabled and disabled by the DCCAPCTL[SHDWMODE] bit. By default this register is shadowed.
- If DCCAPCTL[SHDWMODE] = 0, then the shadow is enabled. In this mode, the active register is copied to the shadow register on the TBCTR = TBPRD or TBCTR = zero as defined by the DCFCTL[PULSESEL] bit. CPU reads of this register will return the shadow register value.
- If DCCAPCTL[SHDWMODE] = 1, then the shadow register is disabled. In this mode, CPU reads will return the active register value. The active and shadow registers share the same memory map address.

Reset type: SYSRSn

19.17.2.79 DCAHTRIPSEL Register (Offset = D2h) [Reset = 0000h]

DCAHTRIPSEL is shown in Figure 19-171 and described in Table 19-104.

Return to the Summary Table.

Digital Compare AH Trip Select

Figure 19-171 DCAHTRIPSEL Register
15141312111098
RESERVEDTRIPINPUT15TRIPINPUT14RESERVEDTRIPINPUT12TRIPINPUT11TRIPINPUT10TRIPINPUT9
R-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0h
76543210
TRIPINPUT8TRIPINPUT7TRIPINPUT6TRIPINPUT5TRIPINPUT4TRIPINPUT3TRIPINPUT2TRIPINPUT1
R/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0h
Table 19-104 DCAHTRIPSEL Register Field Descriptions
BitFieldTypeResetDescription
15RESERVEDR0hReserved
14TRIPINPUT15R/W0hTRIP Input 15

0: Trip Input 15 not selected as combinational ORed input
1: Trip Input 15 selected as combinational ORed input to DCAH mux

Reset type: SYSRSn

13TRIPINPUT14R/W0hTRIP Input 14

0: Trip Input 14 not selected as combinational ORed input
1: Trip Input 14 selected as combinational ORed input to DCAH mux

Reset type: SYSRSn

12RESERVEDR/W0hReserved
11TRIPINPUT12R/W0hTRIP Input 12

0: Trip Input 12 not selected as combinational ORed input
1: Trip Input 12 selected as combinational ORed input to DCAH mux

Reset type: SYSRSn

10TRIPINPUT11R/W0hTRIP Input 11

0: Trip Input 11 not selected as combinational ORed input
1: Trip Input 11 selected as combinational ORed input to DCAH mux

Reset type: SYSRSn

9TRIPINPUT10R/W0hTRIP Input 10

0: Trip Input 10 not selected as combinational ORed input
1: Trip Input 10 selected as combinational ORed input to DCAH mux

Reset type: SYSRSn

8TRIPINPUT9R/W0hTRIP Input 9

0: Trip Input 9 not selected as combinational ORed input
1: Trip Input 9 selected as combinational ORed input to DCAH mux

Reset type: SYSRSn

7TRIPINPUT8R/W0hTRIP Input 8

0: Trip Input 8 not selected as combinational ORed input
1: Trip Input 8 selected as combinational ORed input to DCAH mux

Reset type: SYSRSn

6TRIPINPUT7R/W0hTRIP Input 7

0: Trip Input 7 not selected as combinational ORed input
1: Trip Input 7 selected as combinational ORed input to DCAH mux

Reset type: SYSRSn

5TRIPINPUT6R/W0hTRIP Input 6

0: Trip Input 6 not selected as combinational ORed input
1: Trip Input 6 selected as combinational ORed input to DCAH mux

Reset type: SYSRSn

4TRIPINPUT5R/W0hTRIP Input 5

0: Trip Input 5 not selected as combinational ORed input
1: Trip Input 5 selected as combinational ORed input to DCAH mux

Reset type: SYSRSn

3TRIPINPUT4R/W0hTRIP Input 4

0: Trip Input 4 not selected as combinational ORed input
1: Trip Input 4 selected as combinational ORed input to DCAH mux

Reset type: SYSRSn

2TRIPINPUT3R/W0hTRIP Input 3

0: Trip Input 3 not selected as combinational ORed input
1: Trip Input 3 selected as combinational ORed input to DCAH mux

Reset type: SYSRSn

1TRIPINPUT2R/W0hTRIP Input 2

0: Trip Input 2 not selected as combinational ORed input
1: Trip Input 2 selected as combinational ORed input to DCAH mux

Reset type: SYSRSn

0TRIPINPUT1R/W0hTRIP Input 1

0: Trip Input 1 not selected as combinational ORed input
1: Trip Input 1 selected as combinational ORed input to DCAH mux

Reset type: SYSRSn

19.17.2.80 DCALTRIPSEL Register (Offset = D3h) [Reset = 0000h]

DCALTRIPSEL is shown in Figure 19-172 and described in Table 19-105.

Return to the Summary Table.

Digital Compare AL Trip Select

Figure 19-172 DCALTRIPSEL Register
15141312111098
RESERVEDTRIPINPUT15TRIPINPUT14RESERVEDTRIPINPUT12TRIPINPUT11TRIPINPUT10TRIPINPUT9
R-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0h
76543210
TRIPINPUT8TRIPINPUT7TRIPINPUT6TRIPINPUT5TRIPINPUT4TRIPINPUT3TRIPINPUT2TRIPINPUT1
R/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0h
Table 19-105 DCALTRIPSEL Register Field Descriptions
BitFieldTypeResetDescription
15RESERVEDR0hReserved
14TRIPINPUT15R/W0hTRIP Input 15

0: Trip Input 15 not selected as combinational ORed input
1: Trip Input 15 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

13TRIPINPUT14R/W0hTRIP Input 14

0: Trip Input 14 not selected as combinational ORed input
1: Trip Input 14 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

12RESERVEDR/W0hReserved
11TRIPINPUT12R/W0hTRIP Input 12

0: Trip Input 12 not selected as combinational ORed input
1: Trip Input 12 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

10TRIPINPUT11R/W0hTRIP Input 11

0: Trip Input 11 not selected as combinational ORed input
1: Trip Input 11 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

9TRIPINPUT10R/W0hTRIP Input 10

0: Trip Input 10 not selected as combinational ORed input
1: Trip Input 10 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

8TRIPINPUT9R/W0hTRIP Input 9

0: Trip Input 9 not selected as combinational ORed input
1: Trip Input 9 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

7TRIPINPUT8R/W0hTRIP Input 8

0: Trip Input 8 not selected as combinational ORed input
1: Trip Input 8 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

6TRIPINPUT7R/W0hTRIP Input 7

0: Trip Input 7 not selected as combinational ORed input
1: Trip Input 7 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

5TRIPINPUT6R/W0hTRIP Input 6

0: Trip Input 6 not selected as combinational ORed input
1: Trip Input 6 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

4TRIPINPUT5R/W0hTRIP Input 5

0: Trip Input 5 not selected as combinational ORed input
1: Trip Input 5 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

3TRIPINPUT4R/W0hTRIP Input 4

0: Trip Input 4 not selected as combinational ORed input
1: Trip Input 4 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

2TRIPINPUT3R/W0hTRIP Input 3

0: Trip Input 3 not selected as combinational ORed input
1: Trip Input 3 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

1TRIPINPUT2R/W0hTRIP Input 2

0: Trip Input 2 not selected as combinational ORed input
1: Trip Input 2 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

0TRIPINPUT1R/W0hTRIP Input 1

0: Trip Input 1 not selected as combinational ORed input
1: Trip Input 1 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

19.17.2.81 DCBHTRIPSEL Register (Offset = D4h) [Reset = 0000h]

DCBHTRIPSEL is shown in Figure 19-173 and described in Table 19-106.

Return to the Summary Table.

Digital Compare BH Trip Select

Figure 19-173 DCBHTRIPSEL Register
15141312111098
RESERVEDTRIPINPUT15TRIPINPUT14RESERVEDTRIPINPUT12TRIPINPUT11TRIPINPUT10TRIPINPUT9
R-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0h
76543210
TRIPINPUT8TRIPINPUT7TRIPINPUT6TRIPINPUT5TRIPINPUT4TRIPINPUT3TRIPINPUT2TRIPINPUT1
R/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0h
Table 19-106 DCBHTRIPSEL Register Field Descriptions
BitFieldTypeResetDescription
15RESERVEDR0hReserved
14TRIPINPUT15R/W0hTRIP Input 15

0: Trip Input 15 not selected as combinational ORed input
1: Trip Input 15 selected as combinational ORed input to DCBH mux

Reset type: SYSRSn

13TRIPINPUT14R/W0hTRIP Input 14

0: Trip Input 14 not selected as combinational ORed input
1: Trip Input 14 selected as combinational ORed input to DCBH mux

Reset type: SYSRSn

12RESERVEDR/W0hReserved
11TRIPINPUT12R/W0hTRIP Input 12

0: Trip Input 12 not selected as combinational ORed input
1: Trip Input 12 selected as combinational ORed input to DCBH mux

Reset type: SYSRSn

10TRIPINPUT11R/W0hTRIP Input 11

0: Trip Input 11 not selected as combinational ORed input
1: Trip Input 11 selected as combinational ORed input to DCBH mux

Reset type: SYSRSn

9TRIPINPUT10R/W0hTRIP Input 10

0: Trip Input 10 not selected as combinational ORed input
1: Trip Input 10 selected as combinational ORed input to DCBH mux

Reset type: SYSRSn

8TRIPINPUT9R/W0hTRIP Input 9

0: Trip Input 9 not selected as combinational ORed input
1: Trip Input 9 selected as combinational ORed input to DCBH mux

Reset type: SYSRSn

7TRIPINPUT8R/W0hTRIP Input 8

0: Trip Input 8 not selected as combinational ORed input
1: Trip Input 8 selected as combinational ORed input to DCBH mux

Reset type: SYSRSn

6TRIPINPUT7R/W0hTRIP Input 7

0: Trip Input 7 not selected as combinational ORed input
1: Trip Input 7 selected as combinational ORed input to DCBH mux

Reset type: SYSRSn

5TRIPINPUT6R/W0hTRIP Input 6

0: Trip Input 6 not selected as combinational ORed input
1: Trip Input 6 selected as combinational ORed input to DCBH mux

Reset type: SYSRSn

4TRIPINPUT5R/W0hTRIP Input 5

0: Trip Input 5 not selected as combinational ORed input
1: Trip Input 5 selected as combinational ORed input to DCBH mux

Reset type: SYSRSn

3TRIPINPUT4R/W0hTRIP Input 4

0: Trip Input 4 not selected as combinational ORed input
1: Trip Input 4 selected as combinational ORed input to DCBH mux

Reset type: SYSRSn

2TRIPINPUT3R/W0hTRIP Input 3

0: Trip Input 3 not selected as combinational ORed input
1: Trip Input 3 selected as combinational ORed input to DCBH mux

Reset type: SYSRSn

1TRIPINPUT2R/W0hTRIP Input 2

0: Trip Input 2 not selected as combinational ORed input
1: Trip Input 2 selected as combinational ORed input to DCBH mux

Reset type: SYSRSn

0TRIPINPUT1R/W0hTRIP Input 1

0: Trip Input 1 not selected as combinational ORed input
1: Trip Input 1 selected as combinational ORed input to DCBH mux

Reset type: SYSRSn

19.17.2.82 DCBLTRIPSEL Register (Offset = D5h) [Reset = 0000h]

DCBLTRIPSEL is shown in Figure 19-174 and described in Table 19-107.

Return to the Summary Table.

Digital Compare BL Trip Select

Figure 19-174 DCBLTRIPSEL Register
15141312111098
RESERVEDTRIPINPUT15TRIPINPUT14RESERVEDTRIPINPUT12TRIPINPUT11TRIPINPUT10TRIPINPUT9
R-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0h
76543210
TRIPINPUT8TRIPINPUT7TRIPINPUT6TRIPINPUT5TRIPINPUT4TRIPINPUT3TRIPINPUT2TRIPINPUT1
R/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0h
Table 19-107 DCBLTRIPSEL Register Field Descriptions
BitFieldTypeResetDescription
15RESERVEDR0hReserved
14TRIPINPUT15R/W0hTRIP Input 15

0: Trip Input 15 not selected as combinational ORed input
1: Trip Input 15 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

13TRIPINPUT14R/W0hTRIP Input 14

0: Trip Input 14 not selected as combinational ORed input
1: Trip Input 14 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

12RESERVEDR/W0hReserved
11TRIPINPUT12R/W0hTRIP Input 12

0: Trip Input 12 not selected as combinational ORed input
1: Trip Input 12 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

10TRIPINPUT11R/W0hTRIP Input 11

0: Trip Input 11 not selected as combinational ORed input
1: Trip Input 11 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

9TRIPINPUT10R/W0hTRIP Input 10

0: Trip Input 10 not selected as combinational ORed input
1: Trip Input 10 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

8TRIPINPUT9R/W0hTRIP Input 9

0: Trip Input 9 not selected as combinational ORed input
1: Trip Input 9 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

7TRIPINPUT8R/W0hTRIP Input 8

0: Trip Input 8 not selected as combinational ORed input
1: Trip Input 8 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

6TRIPINPUT7R/W0hTRIP Input 7

0: Trip Input 7 not selected as combinational ORed input
1: Trip Input 7 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

5TRIPINPUT6R/W0hTRIP Input 6

0: Trip Input 6 not selected as combinational ORed input
1: Trip Input 6 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

4TRIPINPUT5R/W0hTRIP Input 5

0: Trip Input 5 not selected as combinational ORed input
1: Trip Input 5 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

3TRIPINPUT4R/W0hTRIP Input 4

0: Trip Input 4 not selected as combinational ORed input
1: Trip Input 4 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

2TRIPINPUT3R/W0hTRIP Input 3

0: Trip Input 3 not selected as combinational ORed input
1: Trip Input 3 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

1TRIPINPUT2R/W0hTRIP Input 2

0: Trip Input 2 not selected as combinational ORed input
1: Trip Input 2 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

0TRIPINPUT1R/W0hTRIP Input 1

0: Trip Input 1 not selected as combinational ORed input
1: Trip Input 1 selected as combinational ORed input to DCAL mux

Reset type: SYSRSn

19.17.2.83 EPWMLOCK Register (Offset = FAh) [Reset = 00000000h]

EPWMLOCK is shown in Figure 19-175 and described in Table 19-108.

Return to the Summary Table.

EPWM Lock Register

Figure 19-175 EPWMLOCK Register
3130292827262524
KEY
R-0/W-0h
2322212019181716
KEY
R-0/W-0h
15141312111098
RESERVED
R-0h
76543210
RESERVEDDCLOCKTZCLRLOCKTZCFGLOCKGLLOCKHRLOCK
R-0hR/WOnce-0hR/WOnce-0hR/WOnce-0hR/WOnce-0hR/WOnce-0h
Table 19-108 EPWMLOCK Register Field Descriptions
BitFieldTypeResetDescription
31-16KEYR-0/W0hWrite to this register succeeds only if this field is written with a value of 0xa5a5

Note:
[1] Due to this KEY, only 32-bit writes will succeed (provided the KEY matches). 16-bit writes to the upper or lower half of this register will be ignored

Reset type: SYSRSn

15-5RESERVEDR0hReserved
4DCLOCKR/WOnce0h0:Digital Compare registers from 0xC0 to 0xD9 offsets are protected by EALLOW.
1: Digital Compare registers from 0xC0 to 0xD9 offsets are locked and not writable.

Reset type: SYSRSn

3TZCLRLOCKR/WOnce0h0:Trip Zone registers from 0x97 to 0x9B offsets are protected by EALLOW.
1: Trip Zone registers from 0x97 to 0x9B offsets are locked and not writable.

Reset type: SYSRSn

2TZCFGLOCKR/WOnce0h0:TripZone registers from 0x80 to 0x8D and TZTRIPOUTSEL at 0x9D offsets are protected by EALLOW.
1: TripZone registers from 0x80 to 0x8D and TZTRIPOUTSEL at 0x9D offsets are locked and not writable.

Reset type: SYSRSn

1GLLOCKR/WOnce0h0:Global Load registers from 0x34 to 0x35 offsets are protected by EALLOW.
1: Global Load registers from 0x34 to 0x35 offsets are locked and not writable

Reset type: SYSRSn

0HRLOCKR/WOnce0h0: HRPWM registers from 0x20 to 0x2D offsets are protected by EALLOW
1: HRPWM registers from 0x20 and 0x2D offsets are locked and not writable.

Reset type: SYSRSn

19.17.2.84 HWVDELVAL Register (Offset = FDh) [Reset = 0000h]

HWVDELVAL is shown in Figure 19-176 and described in Table 19-109.

Return to the Summary Table.

Hardware Valley Mode Delay Register

Figure 19-176 HWVDELVAL Register
15141312111098
HWVDELVAL
R-0h
76543210
HWVDELVAL
R-0h
Table 19-109 HWVDELVAL Register Field Descriptions
BitFieldTypeResetDescription
15-0HWVDELVALR0hHardware Valley Delay Value Register

This read only register reflects the hardware delay value calculated by the equations defined in VCAPCTL[VDELAYDIV]. This reflects the latest value from the hardware calculations and can change every time valley capture sequence is triggered and VCAP1 and VCAP2 values are updated.

Reset type: SYSRSn

19.17.2.85 VCNTVAL Register (Offset = FEh) [Reset = 0000h]

VCNTVAL is shown in Figure 19-177 and described in Table 19-110.

Return to the Summary Table.

Hardware Valley Counter Register

Figure 19-177 VCNTVAL Register
15141312111098
VCNTVAL
R-0h
76543210
VCNTVAL
R-0h
Table 19-110 VCNTVAL Register Field Descriptions
BitFieldTypeResetDescription
15-0VCNTVALR0hValley Time Base Counter Register

This register reflects the captured VCNT value upon occurrence of STOPEDGE selected in VCNTCFG register.

Reset type: SYSRSn