SPRUHM9H October   2014  – May 2024 TMS320F28075 , TMS320F28075-Q1 , TMS320F28076

 

  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
    5. 2.5 Trigonometric Math Unit (TMU)
  5. System Control and Interrupt
    1. 3.1  Introduction
    2. 3.2  System Control Functional Description
      1. 3.2.1 Device Identification
      2. 3.2.2 Device Configuration Registers
    3. 3.3  Resets
      1. 3.3.1  Reset Sources
      2. 3.3.2  External Reset (XRS)
      3. 3.3.3  Power-On Reset (POR)
      4. 3.3.4  Debugger Reset (SYSRS)
      5. 3.3.5  Watchdog Reset (WDRS)
      6. 3.3.6  NMI Watchdog Reset (NMIWDRS)
      7. 3.3.7  DCSM Safe Code Copy Reset (SCCRESET)
      8. 3.3.8  Hibernate Reset (HIBRESET)
      9. 3.3.9  Hardware BIST Reset (HWBISTRS)
      10. 3.3.10 Test Reset (TRST)
    4. 3.4  Peripheral Interrupts
      1. 3.4.1 Interrupt Concepts
      2. 3.4.2 Interrupt Architecture
        1. 3.4.2.1 Peripheral Stage
        2. 3.4.2.2 PIE Stage
        3. 3.4.2.3 CPU Stage
      3. 3.4.3 Interrupt Entry Sequence
      4. 3.4.4 Configuring and Using Interrupts
        1. 3.4.4.1 Enabling Interrupts
        2. 3.4.4.2 Handling Interrupts
        3. 3.4.4.3 Disabling Interrupts
        4. 3.4.4.4 Nesting Interrupts
      5. 3.4.5 PIE Channel Mapping
        1. 3.4.5.1 PIE Interrupt Priority
          1. 3.4.5.1.1 Channel Priority
          2. 3.4.5.1.2 Group Priority
      6. 3.4.6 Vector Tables
    5. 3.5  Exceptions and Non-Maskable Interrupts
      1. 3.5.1 Configuring and Using NMIs
      2. 3.5.2 Emulation Considerations
      3. 3.5.3 NMI Sources
        1. 3.5.3.1 Missing Clock Detection
        2. 3.5.3.2 RAM Uncorrectable ECC Error
        3. 3.5.3.3 Flash Uncorrectable ECC Error
      4. 3.5.4 Illegal Instruction Trap (ITRAP)
    6. 3.6  Safety Features
      1. 3.6.1 Write Protection on Registers
        1. 3.6.1.1 LOCK Protection on System Configuration Registers
        2. 3.6.1.2 EALLOW Protection
      2. 3.6.2 Missing Clock Detection Logic
      3. 3.6.3 PLLSLIP Detection
      4. 3.6.4 CPU Vector Address Validity Check
      5. 3.6.5 NMIWDs
      6. 3.6.6 ECC and Parity Enabled RAMs, Shared RAMs Protection
      7. 3.6.7 ECC Enabled Flash Memory
      8. 3.6.8 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 External Oscillator (XTAL)
        4. 3.7.1.4 Auxiliary Clock Input (AUXCLKIN)
      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.2.3 Auxiliary Oscillator Clock (AUXOSCCLK)
        4. 3.7.2.4 Auxiliary PLL Output Clock (AUXPLLRAWCLK)
      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 Auxiliary Clock (AUXPLLCLK)
        6. 3.7.3.6 CAN Bit Clock
        7. 3.7.3.7 CPU Timer2 Clock (TIMER2CLK)
      4. 3.7.4 XCLKOUT
      5. 3.7.5 Clock Connectivity
      6. 3.7.6 Clock Source and PLL Setup
        1. 3.7.6.1 Choosing PLL Settings
        2. 3.7.6.2 System Clock Setup
        3. 3.7.6.3 USB Auxiliary Clock Setup
        4. 3.7.6.4 Clock Configuration Examples
      7. 3.7.7 Clock (OSCCLK) Failure Detection
        1. 3.7.7.1 Missing Clock Detection Logic
    8. 3.8  32-Bit CPU Timers 0/1/2
    9. 3.9  Watchdog Timers
      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 IDLE
      2. 3.10.2 STANDBY
      3. 3.10.3 HALT
      4. 3.10.4 Hibernate (HIB)
    11. 3.11 Memory Controller Module
      1. 3.11.1 Functional Description
        1. 3.11.1.1 Dedicated RAM (Dx 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 Message RAM (CLA MSGRAM)
        5. 3.11.1.5 Access Arbitration
        6. 3.11.1.6 Access Protection
          1. 3.11.1.6.1 CPU Fetch Protection
          2. 3.11.1.6.2 CPU Write Protection
          3. 3.11.1.6.3 CPU Read Protection
          4. 3.11.1.6.4 CLA Fetch Protection
          5. 3.11.1.6.5 CLA Write Protection
          6. 3.11.1.6.6 CLA Read Protection
          7. 3.11.1.6.7 DMA Write Protection
        7. 3.11.1.7 Memory Error Detection, Correction and Error Handling
          1. 3.11.1.7.1 Error Detection and Correction
          2. 3.11.1.7.2 Error Handling
        8. 3.11.1.8 Application Test Hooks for Error Detection and Correction
        9. 3.11.1.9 RAM Initialization
    12. 3.12 Flash and OTP Memory
      1. 3.12.1  Features
      2. 3.12.2  Flash Tools
      3. 3.12.3  Default Flash Configuration
      4. 3.12.4  Flash Bank, One-Time Programmable (OTP) Memory, and Flash Pump
      5. 3.12.5  Flash Module Controller (FMC)
      6. 3.12.6  Flash and OTP Memory Power-Down Modes and Wakeup
      7. 3.12.7  Flash and OTP Memory Performance
      8. 3.12.8  Flash Read Interface
        1. 3.12.8.1 FMC Flash Read Interface
          1. 3.12.8.1.1 Standard Read Mode
          2. 3.12.8.1.2 Prefetch Mode
            1. 3.12.8.1.2.1 Data Cache
      9. 3.12.9  Erase/Program Flash
        1. 3.12.9.1 Erase
        2. 3.12.9.2 Program
        3. 3.12.9.3 Verify
      10. 3.12.10 Error Correction Code (ECC) Protection
        1. 3.12.10.1 Single-Bit Data Error
        2. 3.12.10.2 Uncorrectable Error
        3. 3.12.10.3 SECDED Logic Correctness Check
        4. 3.12.10.4 Reading ECC Memory From a Higher Address Space
      11. 3.12.11 Reserved Locations Within Flash and OTP Memory
      12. 3.12.12 Procedure to Change the Flash Control Registers
      13. 3.12.13 Simple Procedure to Modify an Application from RAM Configuration to Flash Configuration
    13. 3.13 Dual Code Security Module (DCSM)
      1. 3.13.1 Functional Description
        1. 3.13.1.1 Emulation Code Security Logic (ECSL)
        2. 3.13.1.2 CPU Secure Logic
        3. 3.13.1.3 Execute-Only Protection
        4. 3.13.1.4 Password Lock
        5. 3.13.1.5 JTAG Lock
        6. 3.13.1.6 Link Pointer and Zone Select
          1. 3.13.1.6.1 C Code Example to get Zone Select Block Addr for Zone1
        7. 3.13.1.7 Flash and OTP Memory Erase/Program
        8. 3.13.1.8 Safe Copy Code
        9. 3.13.1.9 SafeCRC
      2. 3.13.2 CSM Impact on Other On-Chip Resources
      3. 3.13.3 Incorporating Code Security in User Applications
        1. 3.13.3.1 Environments That Require Security Unlocking
        2. 3.13.3.2 CSM Password Match Flow
        3. 3.13.3.3 Unsecuring Considerations for Zones With and Without Code Security
          1. 3.13.3.3.1 C Code Example to Unsecure C28x Zone1
          2. 3.13.3.3.2 C Code Example to Resecure C28x Zone1
        4. 3.13.3.4 Environments That Require ECSL Unlocking
        5. 3.13.3.5 ECSL Password Match Flow
        6. 3.13.3.6 ECSL Disable Considerations for any Zone
          1. 3.13.3.6.1 C Code Example to Disable ECSL for C28x-Zone1
        7. 3.13.3.7 Device Unique ID
    14. 3.14 JTAG
    15. 3.15 System Control Register Configuration Restrictions
    16. 3.16 Software
      1. 3.16.1 SYSCTL Examples
        1. 3.16.1.1 Missing clock detection (MCD)
        2. 3.16.1.2 XCLKOUT (External Clock Output) Configuration
      2. 3.16.2 TIMER Examples
        1. 3.16.2.1 CPU Timers
        2. 3.16.2.2 CPU Timers
      3. 3.16.3 MEMCFG Examples
      4. 3.16.4 INTERRUPT Examples
        1. 3.16.4.1 External Interrupts (ExternalInterrupt)
        2. 3.16.4.2 Multiple interrupt handling of I2C, SCI & SPI Digital Loopback
        3. 3.16.4.3 CPU Timer Interrupt Software Prioritization
        4. 3.16.4.4 EPWM Real-Time Interrupt
      5. 3.16.5 LPM Examples
      6. 3.16.6 WATCHDOG Examples
        1. 3.16.6.1 Watchdog
    17. 3.17 System Control Registers
      1. 3.17.1  System Control Base Addresses
      2. 3.17.2  CPUTIMER_REGS Registers
      3. 3.17.3  PIE_CTRL_REGS Registers
      4. 3.17.4  WD_REGS Registers
      5. 3.17.5  NMI_INTRUPT_REGS Registers
      6. 3.17.6  XINT_REGS Registers
      7. 3.17.7  SYNC_SOC_REGS Registers
      8. 3.17.8  DMA_CLA_SRC_SEL_REGS Registers
      9. 3.17.9  DEV_CFG_REGS Registers
      10. 3.17.10 CLK_CFG_REGS Registers
      11. 3.17.11 CPU_SYS_REGS Registers
      12. 3.17.12 ROM_PREFETCH_REGS Registers
      13. 3.17.13 DCSM_Z1_REGS Registers
      14. 3.17.14 DCSM_Z2_REGS Registers
      15. 3.17.15 DCSM_COMMON_REGS Registers
      16. 3.17.16 MEM_CFG_REGS Registers
      17. 3.17.17 ACCESS_PROTECTION_REGS Registers
      18. 3.17.18 MEMORY_ERROR_REGS Registers
      19. 3.17.19 ROM_WAIT_STATE_REGS Registers
      20. 3.17.20 FLASH_CTRL_REGS Registers
      21. 3.17.21 FLASH_ECC_REGS Registers
      22. 3.17.22 UID_REGS Registers
      23. 3.17.23 DCSM_Z1_OTP Registers
      24. 3.17.24 DCSM_Z2_OTP Registers
      25. 3.17.25 Register to Driverlib Function Mapping
        1. 3.17.25.1 CPUTIMER Registers to Driverlib Functions
        2. 3.17.25.2 ASYSCTL Registers to Driverlib Functions
        3. 3.17.25.3 PIE Registers to Driverlib Functions
        4. 3.17.25.4 SYSCTL Registers to Driverlib Functions
        5. 3.17.25.5 NMI Registers to Driverlib Functions
        6. 3.17.25.6 XINT Registers to Driverlib Functions
        7. 3.17.25.7 DCSM Registers to Driverlib Functions
        8. 3.17.25.8 MEMCFG Registers to Driverlib Functions
        9. 3.17.25.9 FLASH Registers to Driverlib Functions
  6. ROM Code and Peripheral Booting
    1. 4.1  Introduction
    2. 4.2  Boot ROM Registers
    3. 4.3  Device Boot Sequence
    4. 4.4  Device Boot Modes
    5. 4.5  Configuring Boot Mode Pins
    6. 4.6  Configuring Get Boot Options
    7. 4.7  Configuring Emulation Boot Options
    8. 4.8  Device Boot Flow Diagrams
      1. 4.8.1 Emulation Boot Flow Diagrams
      2. 4.8.2 Standalone and Hibernate Boot Flow Diagrams
    9. 4.9  Device Reset and Exception Handling
      1. 4.9.1 Reset Causes and Handling
      2. 4.9.2 Exceptions and Interrupts Handling
    10. 4.10 Boot ROM Description
      1. 4.10.1  Entry Points
      2. 4.10.2  Wait Points
      3. 4.10.3  Memory Maps
        1. 4.10.3.1 Boot ROM Memory Map
        2. 4.10.3.2 CLA Data ROM Memory Map
        3. 4.10.3.3 Reserved RAM and Flash Memory-Map
        4. 4.10.3.4 ROM Tables
          1. 4.10.3.4.1 Boot ROM Tables
          2. 4.10.3.4.2 CLA ROM Tables
      4. 4.10.4  Boot Modes
        1. 4.10.4.1 Wait Boot Mode
        2. 4.10.4.2 SCI Boot Mode
        3. 4.10.4.3 SPI Boot Mode
        4. 4.10.4.4 I2C Boot Mode
        5. 4.10.4.5 Parallel Boot Mode
        6. 4.10.4.6 CAN Boot Mode
        7. 4.10.4.7 USB Boot Mode
      5. 4.10.5  Boot Data Stream Structure
        1. 4.10.5.1 Bootloader Data Stream Structure
          1. 4.10.5.1.1 Data Stream Structure 8-bit
      6. 4.10.6  GPIO Assignments
      7. 4.10.7  Secure ROM Function APIs
      8. 4.10.8  Clock Initializations
      9. 4.10.9  Wait State Configuration
      10. 4.10.10 Boot Status information
        1. 4.10.10.1 CPU Booting Status
      11. 4.10.11 ROM Version
  7. Direct Memory Access (DMA)
    1. 5.1 Introduction
      1. 5.1.1 Features
      2. 5.1.2 Block Diagram
    2. 5.2 Architecture
      1. 5.2.1 Common Peripheral Architecture
      2. 5.2.2 Peripheral Interrupt Event Trigger Sources
      3. 5.2.3 DMA Bus
    3. 5.3 Address Pointer and Transfer Control
    4. 5.4 Pipeline Timing and Throughput
    5. 5.5 CPU and CLA Arbitration
    6. 5.6 Channel Priority
      1. 5.6.1 Round-Robin Mode
      2. 5.6.2 Channel 1 High-Priority Mode
    7. 5.7 Overrun Detection Feature
    8. 5.8 Software
      1. 5.8.1 DMA Examples
        1. 5.8.1.1 DMA GSRAM Transfer (dma_ex1_gsram_transfer)
        2. 5.8.1.2 DMA Transfer Shared Peripheral - C28X_DUAL
        3. 5.8.1.3 DMA Transfer for Shared Peripheral Example (CPU2) - C28X_DUAL
        4. 5.8.1.4 DMA GSRAM Transfer (dma_ex2_gsram_transfer)
    9. 5.9 DMA Registers
      1. 5.9.1 DMA Base Addresses
      2. 5.9.2 DMA_REGS Registers
      3. 5.9.3 DMA_CH_REGS Registers
      4. 5.9.4 DMA Registers to Driverlib Functions
  8. Control Law Accelerator (CLA)
    1. 6.1 Introduction
      1. 6.1.1 Features
      2. 6.1.2 CLA Related Collateral
      3. 6.1.3 Block Diagram
    2. 6.2 CLA Interface
      1. 6.2.1 CLA Memory
      2. 6.2.2 CLA Memory Bus
      3. 6.2.3 Shared Peripherals and EALLOW Protection
      4. 6.2.4 CLA Tasks and Interrupt Vectors
      5. 6.2.5 CLA Software Interrupt to CPU
    3. 6.3 CLA and CPU Arbitration
      1. 6.3.1 CLA Message RAM
      2. 6.3.2 CLA Program Memory
      3. 6.3.3 CLA Data Memory
      4. 6.3.4 Peripheral Registers (ePWM, HRPWM, Comparator)
    4. 6.4 CLA Configuration and Debug
      1. 6.4.1 Building a CLA Application
      2. 6.4.2 Typical CLA Initialization Sequence
      3. 6.4.3 Debugging CLA Code
        1. 6.4.3.1 Breakpoint Support (MDEBUGSTOP)
      4. 6.4.4 CLA Illegal Opcode Behavior
      5. 6.4.5 Resetting the CLA
    5. 6.5 Pipeline
      1. 6.5.1 Pipeline Overview
      2. 6.5.2 CLA Pipeline Alignment
        1. 6.5.2.1 Code Fragment For MBCNDD, MCCNDD, or MRCNDD
        2.       332
        3. 6.5.2.2 Code Fragment for Loading MAR0 or MAR1
        4.       334
        5. 6.5.2.3 ADC Early Interrupt to CLA Response
      3. 6.5.3 Parallel Instructions
        1. 6.5.3.1 Math Operation with Parallel Load
        2. 6.5.3.2 Multiply with Parallel Add
      4. 6.5.4 CLA Task Execution Latency
    6. 6.6 Software
      1. 6.6.1 CLA Examples
        1. 6.6.1.1 CLA arcsine(x) using a lookup table (cla_asin_cpu01)
        2. 6.6.1.2 CLA arctangent(x) using a lookup table (cla_atan_cpu01)
    7. 6.7 Instruction Set
      1. 6.7.1 Instruction Descriptions
      2. 6.7.2 Addressing Modes and Encoding
      3. 6.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. 6.8 CLA Registers
      1. 6.8.1 CLA Base Addresses
      2. 6.8.2 CLA_REGS Registers
      3. 6.8.3 CLA_SOFTINT_REGS Registers
      4. 6.8.4 CLA Registers to Driverlib Functions
  9. General-Purpose Input/Output (GPIO)
    1. 7.1  Introduction
      1. 7.1.1 GPIO Related Collateral
    2. 7.2  Configuration Overview
    3. 7.3  Digital General-Purpose I/O Control
    4. 7.4  Input Qualification
      1. 7.4.1 No Synchronization (Asynchronous Input)
      2. 7.4.2 Synchronization to SYSCLKOUT Only
      3. 7.4.3 Qualification Using a Sampling Window
    5. 7.5  USB Signals
    6. 7.6  SPI Signals
    7. 7.7  GPIO and Peripheral Muxing
      1. 7.7.1 GPIO Muxing
      2. 7.7.2 Peripheral Muxing
    8. 7.8  Internal Pullup Configuration Requirements
    9. 7.9  Software
      1. 7.9.1 GPIO Examples
        1. 7.9.1.1 Device GPIO Setup
        2. 7.9.1.2 Device GPIO Toggle
        3. 7.9.1.3 Device GPIO Interrupt
      2. 7.9.2 LED Examples
    10. 7.10 GPIO Registers
      1. 7.10.1 GPIO Base Addresses
      2. 7.10.2 GPIO_CTRL_REGS Registers
      3. 7.10.3 GPIO_DATA_REGS Registers
      4. 7.10.4 GPIO Registers to Driverlib Functions
  10. Crossbar (X-BAR)
    1. 8.1 Input X-BAR
    2. 8.2 ePWM, CLB, and GPIO Output X-BAR
      1. 8.2.1 ePWM X-BAR
        1. 8.2.1.1 ePWM X-BAR Architecture
      2. 8.2.2 CLB X-BAR
        1. 8.2.2.1 CLB X-BAR Architecture
      3. 8.2.3 GPIO Output X-BAR
        1. 8.2.3.1 GPIO Output X-BAR Architecture
      4. 8.2.4 X-BAR Flags
    3. 8.3 XBAR Registers
      1. 8.3.1 XBAR Base Addresses
      2. 8.3.2 INPUT_XBAR_REGS Registers
      3. 8.3.3 XBAR_REGS Registers
      4. 8.3.4 EPWM_XBAR_REGS Registers
      5. 8.3.5 CLB_XBAR_REGS Registers
      6. 8.3.6 OUTPUT_XBAR_REGS Registers
      7. 8.3.7 Register to Driverlib Function Mapping
        1. 8.3.7.1 INPUTXBAR Registers to Driverlib Functions
        2. 8.3.7.2 XBAR Registers to Driverlib Functions
        3. 8.3.7.3 EPWMXBAR Registers to Driverlib Functions
        4. 8.3.7.4 CLBXBAR Registers to Driverlib Functions
        5. 8.3.7.5 OUTPUTXBAR Registers to Driverlib Functions
  11. Analog Subsystem
    1. 9.1 Introduction
      1. 9.1.1 Features
      2. 9.1.2 Block Diagram
    2. 9.2 Optimizing Power-Up Time
    3. 9.3 Analog Subsystem Registers
      1. 9.3.1 Analog Subsystem Base Addresses
      2. 9.3.2 ANALOG_SUBSYS_REGS Registers
  12. 10Analog-to-Digital Converter (ADC)
    1. 10.1  Introduction
      1. 10.1.1 ADC Related Collateral
      2. 10.1.2 Features
      3. 10.1.3 Block Diagram
    2. 10.2  ADC Configurability
      1. 10.2.1 Clock Configuration
      2. 10.2.2 Resolution
      3. 10.2.3 Voltage Reference
        1. 10.2.3.1 External Reference Mode
      4. 10.2.4 Signal Mode
      5. 10.2.5 Expected Conversion Results
      6. 10.2.6 Interpreting Conversion Results
    3. 10.3  SOC Principle of Operation
      1. 10.3.1 SOC Configuration
      2. 10.3.2 Trigger Operation
      3. 10.3.3 ADC Acquisition (Sample and Hold) Window
      4. 10.3.4 ADC Input Models
      5. 10.3.5 Channel Selection
    4. 10.4  SOC Configuration Examples
      1. 10.4.1 Single Conversion from ePWM Trigger
      2. 10.4.2 Oversampled Conversion from ePWM Trigger
      3. 10.4.3 Multiple Conversions from CPU Timer Trigger
      4. 10.4.4 Software Triggering of SOCs
    5. 10.5  ADC Conversion Priority
    6. 10.6  Burst Mode
      1. 10.6.1 Burst Mode Example
      2. 10.6.2 Burst Mode Priority Example
    7. 10.7  EOC and Interrupt Operation
      1. 10.7.1 Interrupt Overflow
      2. 10.7.2 Continue to Interrupt Mode
      3. 10.7.3 Early Interrupt Configuration Mode
    8. 10.8  Post-Processing Blocks
      1. 10.8.1 PPB Offset Correction
      2. 10.8.2 PPB Error Calculation
      3. 10.8.3 PPB Limit Detection and Zero-Crossing Detection
      4. 10.8.4 PPB Sample Delay Capture
    9. 10.9  Opens/Shorts Detection Circuit (OSDETECT)
      1. 10.9.1 Implementation
      2. 10.9.2 Detecting an Open Input Pin
      3. 10.9.3 Detecting a Shorted Input Pin
    10. 10.10 Power-Up Sequence
    11. 10.11 ADC Calibration
      1. 10.11.1 ADC Zero Offset Calibration
    12. 10.12 ADC Timings
      1. 10.12.1 ADC Timing Diagrams
    13. 10.13 Additional Information
      1. 10.13.1 Ensuring Synchronous Operation
        1. 10.13.1.1 Basic Synchronous Operation
        2. 10.13.1.2 Synchronous Operation with Multiple Trigger Sources
        3. 10.13.1.3 Synchronous Operation with Uneven SOC Numbers
        4. 10.13.1.4 Non-overlapping Conversions
      2. 10.13.2 Choosing an Acquisition Window Duration
      3. 10.13.3 Achieving Simultaneous Sampling
      4. 10.13.4 Result Register Mapping
      5. 10.13.5 Internal Temperature Sensor
      6. 10.13.6 Designing an External Reference Circuit
    14. 10.14 Software
      1. 10.14.1 ADC Examples
        1. 10.14.1.1  ADC Software Triggering
        2. 10.14.1.2  ADC ePWM Triggering
        3. 10.14.1.3  ADC Temperature Sensor Conversion
        4. 10.14.1.4  ADC Synchronous SOC Software Force (adc_soc_software_sync)
        5. 10.14.1.5  ADC Continuous Triggering (adc_soc_continuous)
        6. 10.14.1.6  ADC PPB Offset (adc_ppb_offset)
        7. 10.14.1.7  ADC PPB Limits (adc_ppb_limits)
        8. 10.14.1.8  ADC PPB Delay Capture (adc_ppb_delay)
        9. 10.14.1.9  ADC ePWM Triggering Multiple SOC
        10. 10.14.1.10 ADC Burst Mode
        11. 10.14.1.11 ADC Burst Mode Oversampling
        12. 10.14.1.12 ADC SOC Oversampling
        13. 10.14.1.13 ADC PPB PWM trip (adc_ppb_pwm_trip)
    15. 10.15 ADC Registers
      1. 10.15.1 ADC Base Addresses
      2. 10.15.2 ADC_RESULT_REGS Registers
      3. 10.15.3 ADC_REGS Registers
      4. 10.15.4 ADC Registers to Driverlib Functions
  13. 11Buffered Digital-to-Analog Converter (DAC)
    1. 11.1 Introduction
      1. 11.1.1 DAC Related Collateral
      2. 11.1.2 Features
      3. 11.1.3 Block Diagram
    2. 11.2 Using the DAC
      1. 11.2.1 Initialization Sequence
      2. 11.2.2 DAC Offset Adjustment
      3. 11.2.3 EPWMSYNCPER Signal
    3. 11.3 Lock Registers
    4. 11.4 Software
      1. 11.4.1 DAC Examples
        1. 11.4.1.1 Buffered DAC Enable
        2. 11.4.1.2 Buffered DAC Random
        3. 11.4.1.3 Buffered DAC Sine (buffdac_sine)
    5. 11.5 DAC Registers
      1. 11.5.1 DAC Base Addresses
      2. 11.5.2 DAC_REGS Registers
      3. 11.5.3 DAC Registers to Driverlib Functions
  14. 12Comparator Subsystem (CMPSS)
    1. 12.1 Introduction
      1. 12.1.1 CMPSS Related Collateral
      2. 12.1.2 Features
      3. 12.1.3 Block Diagram
    2. 12.2 Comparator
    3. 12.3 Reference DAC
    4. 12.4 Ramp Generator
      1. 12.4.1 Ramp Generator Overview
      2. 12.4.2 Ramp Generator Behavior
      3. 12.4.3 Ramp Generator Behavior at Corner Cases
    5. 12.5 Digital Filter
      1. 12.5.1 Filter Initialization Sequence
    6. 12.6 Using the CMPSS
      1. 12.6.1 LATCHCLR and EPWMSYNCPER Signals
      2. 12.6.2 Synchronizer, Digital Filter, and Latch Delays
      3. 12.6.3 Calibrating the CMPSS
      4. 12.6.4 Enabling and Disabling the CMPSS Clock
    7. 12.7 Software
      1. 12.7.1 CMPSS Examples
        1. 12.7.1.1 CMPSS Asynchronous Trip
        2. 12.7.1.2 CMPSS Digital Filter Configuration
    8. 12.8 CMPSS Registers
      1. 12.8.1 CMPSS Base Addresses
      2. 12.8.2 CMPSS_REGS Registers
      3. 12.8.3 CMPSS Registers to Driverlib Functions
  15. 13Sigma Delta Filter Module (SDFM)
    1. 13.1  Introduction
      1. 13.1.1 SDFM Related Collateral
      2. 13.1.2 Features
      3. 13.1.3 Block Diagram
    2. 13.2  Configuring Device Pins
    3. 13.3  Input Control Unit
    4. 13.4  Sinc Filter
      1. 13.4.1 Data Rate and Latency of the Sinc Filter
    5. 13.5  Data (Primary) Filter Unit
      1. 13.5.1 32-bit or 16-bit Data Filter Output Representation
      2. 13.5.2 SDSYNC Event
    6. 13.6  Comparator (Secondary) Filter Unit
      1. 13.6.1 Higher Threshold (HLT) Comparator
      2. 13.6.2 Lower Threshold (LLT) Comparator
    7. 13.7  Theoretical SDFM Filter Output
    8. 13.8  Interrupt Unit
      1. 13.8.1 SDFM (SDINT) Interrupt Sources
    9. 13.9  Register Descriptions
    10. 13.10 Software
      1. 13.10.1 SDFM Examples
    11. 13.11 SDFM Registers
      1. 13.11.1 SDFM Base Addresses
      2. 13.11.2 SDFM_REGS Registers
      3. 13.11.3 SDFM Registers to Driverlib Functions
  16. 14Enhanced Pulse Width Modulator (ePWM)
    1. 14.1  Introduction
      1. 14.1.1 EPWM Related Collateral
      2. 14.1.2 Submodule Overview
    2. 14.2  Configuring Device Pins
    3. 14.3  ePWM Modules Overview
    4. 14.4  Time-Base (TB) Submodule
      1. 14.4.1 Purpose of the Time-Base Submodule
      2. 14.4.2 Controlling and Monitoring the Time-Base Submodule
      3. 14.4.3 Calculating PWM Period and Frequency
        1. 14.4.3.1 Time-Base Period Shadow Register
        2. 14.4.3.2 Time-Base Clock Synchronization
        3. 14.4.3.3 Time-Base Counter Synchronization
      4. 14.4.4 Phase Locking the Time-Base Clocks of Multiple ePWM Modules
      5. 14.4.5 Simultaneous Writes to TBPRD and CMPx Registers Between ePWM Modules
      6. 14.4.6 Time-Base Counter Modes and Timing Waveforms
      7. 14.4.7 Global Load
        1. 14.4.7.1 Global Load Pulse Pre-Scalar
        2. 14.4.7.2 One-Shot Load Mode
        3. 14.4.7.3 One-Shot Sync Mode
    5. 14.5  Counter-Compare (CC) Submodule
      1. 14.5.1 Purpose of the Counter-Compare Submodule
      2. 14.5.2 Controlling and Monitoring the Counter-Compare Submodule
      3. 14.5.3 Operational Highlights for the Counter-Compare Submodule
      4. 14.5.4 Count Mode Timing Waveforms
    6. 14.6  Action-Qualifier (AQ) Submodule
      1. 14.6.1 Purpose of the Action-Qualifier Submodule
      2. 14.6.2 Action-Qualifier Submodule Control and Status Register Definitions
      3. 14.6.3 Action-Qualifier Event Priority
      4. 14.6.4 AQCTLA and AQCTLB Shadow Mode Operations
      5. 14.6.5 Configuration Requirements for Common Waveforms
    7. 14.7  Dead-Band Generator (DB) Submodule
      1. 14.7.1 Purpose of the Dead-Band Submodule
      2. 14.7.2 Dead-band Submodule Additional Operating Modes
      3. 14.7.3 Operational Highlights for the Dead-Band Submodule
    8. 14.8  PWM Chopper (PC) Submodule
      1. 14.8.1 Purpose of the PWM Chopper Submodule
      2. 14.8.2 Operational Highlights for the PWM Chopper Submodule
      3. 14.8.3 Waveforms
        1. 14.8.3.1 One-Shot Pulse
        2. 14.8.3.2 Duty Cycle Control
    9. 14.9  Trip-Zone (TZ) Submodule
      1. 14.9.1 Purpose of the Trip-Zone Submodule
      2. 14.9.2 Operational Highlights for the Trip-Zone Submodule
        1. 14.9.2.1 Trip-Zone Configurations
      3. 14.9.3 Generating Trip Event Interrupts
    10. 14.10 Event-Trigger (ET) Submodule
      1. 14.10.1 Operational Overview of the ePWM Event-Trigger Submodule
    11. 14.11 Digital Compare (DC) Submodule
      1. 14.11.1 Purpose of the Digital Compare Submodule
      2. 14.11.2 Enhanced Trip Action Using CMPSS
      3. 14.11.3 Using CMPSS to Trip the ePWM on a Cycle-by-Cycle Basis
      4. 14.11.4 Operation Highlights of the Digital Compare Submodule
        1. 14.11.4.1 Digital Compare Events
        2. 14.11.4.2 Event Filtering
        3. 14.11.4.3 Valley Switching
    12. 14.12 ePWM Crossbar (X-BAR)
    13. 14.13 Applications to Power Topologies
      1. 14.13.1  Overview of Multiple Modules
      2. 14.13.2  Key Configuration Capabilities
      3. 14.13.3  Controlling Multiple Buck Converters With Independent Frequencies
      4. 14.13.4  Controlling Multiple Buck Converters With Same Frequencies
      5. 14.13.5  Controlling Multiple Half H-Bridge (HHB) Converters
      6. 14.13.6  Controlling Dual 3-Phase Inverters for Motors (ACI and PMSM)
      7. 14.13.7  Practical Applications Using Phase Control Between PWM Modules
      8. 14.13.8  Controlling a 3-Phase Interleaved DC/DC Converter
      9. 14.13.9  Controlling Zero Voltage Switched Full Bridge (ZVSFB) Converter
      10. 14.13.10 Controlling a Peak Current Mode Controlled Buck Module
      11. 14.13.11 Controlling H-Bridge LLC Resonant Converter
    14. 14.14 High-Resolution Pulse Width Modulator (HRPWM)
      1. 14.14.1 Operational Description of HRPWM
        1. 14.14.1.1 Controlling the HRPWM Capabilities
        2. 14.14.1.2 HRPWM Source Clock
        3. 14.14.1.3 Configuring the HRPWM
        4. 14.14.1.4 Configuring High-Resolution in Deadband Rising-Edge and Falling-Edge Delay
        5. 14.14.1.5 Principle of Operation
          1. 14.14.1.5.1 Edge Positioning
          2. 14.14.1.5.2 Scaling Considerations
          3. 14.14.1.5.3 Duty Cycle Range Limitation
          4. 14.14.1.5.4 High-Resolution Period
            1. 14.14.1.5.4.1 High-Resolution Period Configuration
        6. 14.14.1.6 Deadband High-Resolution Operation
        7. 14.14.1.7 Scale Factor Optimizing Software (SFO)
        8. 14.14.1.8 HRPWM Examples Using Optimized Assembly Code
          1. 14.14.1.8.1 #Defines for HRPWM Header Files
          2. 14.14.1.8.2 Implementing a Simple Buck Converter
            1. 14.14.1.8.2.1 HRPWM Buck Converter Initialization Code
            2. 14.14.1.8.2.2 HRPWM Buck Converter Run-Time Code
          3. 14.14.1.8.3 Implementing a DAC Function Using an R+C Reconstruction Filter
            1. 14.14.1.8.3.1 PWM DAC Function Initialization Code
            2. 14.14.1.8.3.2 PWM DAC Function Run-Time Code
      2. 14.14.2 SFO Library Software - SFO_TI_Build_V8.lib
        1. 14.14.2.1 Scale Factor Optimizer Function - int SFO()
        2. 14.14.2.2 Software Usage
          1. 14.14.2.2.1 A Sample of How to Add "Include" Files
          2.        730
          3. 14.14.2.2.2 Declaring an Element
          4.        732
          5. 14.14.2.2.3 Initializing With a Scale Factor Value
          6.        734
          7. 14.14.2.2.4 SFO Function Calls
    15. 14.15 ePWM Registers
      1. 14.15.1 ePWM Base Addresses
      2. 14.15.2 EPWM_REGS Registers
      3. 14.15.3 Register to Driverlib Function Mapping
        1. 14.15.3.1 EPWM Registers to Driverlib Functions
        2. 14.15.3.2 HRPWM Registers to Driverlib Functions
  17. 15Enhanced Capture (eCAP)
    1. 15.1 Introduction
      1. 15.1.1 Features
      2. 15.1.2 ECAP Related Collateral
    2. 15.2 Description
    3. 15.3 Configuring Device Pins for the eCAP
    4. 15.4 Capture and APWM Operating Mode
    5. 15.5 Capture Mode Description
      1. 15.5.1  Event Prescaler
      2. 15.5.2  Edge Polarity Select and Qualifier
      3. 15.5.3  Continuous/One-Shot Control
      4. 15.5.4  32-Bit Counter and Phase Control
      5. 15.5.5  CAP1-CAP4 Registers
      6. 15.5.6  eCAP Synchronization
        1. 15.5.6.1 Example 1 - Using SWSYNC with ECAP Module
      7. 15.5.7  Interrupt Control
      8. 15.5.8  DMA Interrupt
      9. 15.5.9  Shadow Load and Lockout Control
      10. 15.5.10 APWM Mode Operation
    6. 15.6 Application of the eCAP Module
      1. 15.6.1 Example 1 - Absolute Time-Stamp Operation Rising-Edge Trigger
      2. 15.6.2 Example 2 - Absolute Time-Stamp Operation Rising- and Falling-Edge Trigger
      3. 15.6.3 Example 3 - Time Difference (Delta) Operation Rising-Edge Trigger
      4. 15.6.4 Example 4 - Time Difference (Delta) Operation Rising- and Falling-Edge Trigger
    7. 15.7 Application of the APWM Mode
      1. 15.7.1 Example 1 - Simple PWM Generation (Independent Channels)
    8. 15.8 Software
      1. 15.8.1 ECAP Examples
        1. 15.8.1.1 eCAP APWM Example
        2. 15.8.1.2 eCAP Capture PWM Example
        3. 15.8.1.3 eCAP APWM Phase-shift Example
        4. 15.8.1.4 eCAP Software Sync Example
    9. 15.9 eCAP Registers
      1. 15.9.1 eCAP Base Addresses
      2. 15.9.2 ECAP_REGS Registers
      3. 15.9.3 ECAP Registers to Driverlib Functions
  18. 16Enhanced Quadrature Encoder Pulse (eQEP)
    1. 16.1  Introduction
      1. 16.1.1 EQEP Related Collateral
    2. 16.2  Configuring Device Pins
    3. 16.3  Description
      1. 16.3.1 EQEP Inputs
      2. 16.3.2 Functional Description
      3. 16.3.3 eQEP Memory Map
    4. 16.4  Quadrature Decoder Unit (QDU)
      1. 16.4.1 Position Counter Input Modes
        1. 16.4.1.1 Quadrature Count Mode
        2. 16.4.1.2 Direction-Count Mode
        3. 16.4.1.3 Up-Count Mode
        4. 16.4.1.4 Down-Count Mode
      2. 16.4.2 eQEP Input Polarity Selection
      3. 16.4.3 Position-Compare Sync Output
    5. 16.5  Position Counter and Control Unit (PCCU)
      1. 16.5.1 Position Counter Operating Modes
        1. 16.5.1.1 Position Counter Reset on Index Event (QEPCTL[PCRM]=00)
        2. 16.5.1.2 Position Counter Reset on Maximum Position (QEPCTL[PCRM]=01)
        3. 16.5.1.3 Position Counter Reset on the First Index Event (QEPCTL[PCRM] = 10)
        4. 16.5.1.4 Position Counter Reset on Unit Time-out Event (QEPCTL[PCRM] = 11)
      2. 16.5.2 Position Counter Latch
        1. 16.5.2.1 Index Event Latch
        2. 16.5.2.2 Strobe Event Latch
      3. 16.5.3 Position Counter Initialization
      4. 16.5.4 eQEP Position-compare Unit
    6. 16.6  eQEP Edge Capture Unit
    7. 16.7  eQEP Watchdog
    8. 16.8  eQEP Unit Timer Base
    9. 16.9  eQEP Interrupt Structure
    10. 16.10 eQEP Registers
      1. 16.10.1 eQEP Base Addresses
      2. 16.10.2 EQEP_REGS Registers
      3. 16.10.3 EQEP Registers to Driverlib Functions
  19. 17Serial Peripheral Interface (SPI)
    1. 17.1 Introduction
      1. 17.1.1 Features
      2. 17.1.2 SPI Related Collateral
      3. 17.1.3 Block Diagram
    2. 17.2 System-Level Integration
      1. 17.2.1 SPI Module Signals
      2. 17.2.2 Configuring Device Pins
        1. 17.2.2.1 GPIOs Required for High-Speed Mode
      3. 17.2.3 SPI Interrupts
      4. 17.2.4 DMA Support
    3. 17.3 SPI Operation
      1. 17.3.1  Introduction to Operation
      2. 17.3.2  Master Mode
      3. 17.3.3  Slave Mode
      4. 17.3.4  Data Format
        1. 17.3.4.1 Transmission of Bit from SPIRXBUF
      5. 17.3.5  Baud Rate Selection
        1. 17.3.5.1 Baud Rate Determination
        2. 17.3.5.2 Baud Rate Calculation in Non-High Speed Mode (HS_MODE = 0)
      6. 17.3.6  SPI Clocking Schemes
      7. 17.3.7  SPI FIFO Description
      8. 17.3.8  SPI DMA Transfers
        1. 17.3.8.1 Transmitting Data Using SPI with DMA
        2. 17.3.8.2 Receiving Data Using SPI with DMA
      9. 17.3.9  SPI High-Speed Mode
      10. 17.3.10 SPI 3-Wire Mode Description
    4. 17.4 Programming Procedure
      1. 17.4.1 Initialization Upon Reset
      2. 17.4.2 Configuring the SPI
      3. 17.4.3 Configuring the SPI for High-Speed Mode
      4. 17.4.4 Data Transfer Example
      5. 17.4.5 SPI 3-Wire Mode Code Examples
        1. 17.4.5.1 3-Wire Master Mode Transmit
        2.       847
          1. 17.4.5.2.1 3-Wire Master Mode Receive
        3.       849
          1. 17.4.5.2.1 3-Wire Slave Mode Transmit
        4.       851
          1. 17.4.5.2.1 3-Wire Slave Mode Receive
      6. 17.4.6 SPI STEINV Bit in Digital Audio Transfers
    5. 17.5 Software
      1. 17.5.1 SPI Examples
        1. 17.5.1.1 SPI Digital Loopback
        2. 17.5.1.2 SPI Digital Loopback with FIFO Interrupts
        3. 17.5.1.3 SPI Digital External Loopback without FIFO Interrupts
        4. 17.5.1.4 SPI Digital External Loopback with FIFO Interrupts
        5. 17.5.1.5 SPI Digital Loopback with DMA
        6. 17.5.1.6 SPI EEPROM
        7. 17.5.1.7 SPI DMA EEPROM
    6. 17.6 SPI Registers
      1. 17.6.1 SPI Base Addresses
      2. 17.6.2 SPI_REGS Registers
      3. 17.6.3 SPI Registers to Driverlib Functions
  20. 18Serial Communications Interface (SCI)
    1. 18.1  Introduction
      1. 18.1.1 Features
      2. 18.1.2 SCI Related Collateral
      3. 18.1.3 Block Diagram
    2. 18.2  Architecture
    3. 18.3  SCI Module Signal Summary
    4. 18.4  Configuring Device Pins
    5. 18.5  Multiprocessor and Asynchronous Communication Modes
    6. 18.6  SCI Programmable Data Format
    7. 18.7  SCI Multiprocessor Communication
      1. 18.7.1 Recognizing the Address Byte
      2. 18.7.2 Controlling the SCI TX and RX Features
      3. 18.7.3 Receipt Sequence
    8. 18.8  Idle-Line Multiprocessor Mode
      1. 18.8.1 Idle-Line Mode Steps
      2. 18.8.2 Block Start Signal
      3. 18.8.3 Wake-Up Temporary (WUT) Flag
        1. 18.8.3.1 Sending a Block Start Signal
      4. 18.8.4 Receiver Operation
    9. 18.9  Address-Bit Multiprocessor Mode
      1. 18.9.1 Sending an Address
    10. 18.10 SCI Communication Format
      1. 18.10.1 Receiver Signals in Communication Modes
      2. 18.10.2 Transmitter Signals in Communication Modes
    11. 18.11 SCI Port Interrupts
      1. 18.11.1 Break Detect
    12. 18.12 SCI Baud Rate Calculations
    13. 18.13 SCI Enhanced Features
      1. 18.13.1 SCI FIFO Description
      2. 18.13.2 SCI Auto-Baud
      3. 18.13.3 Autobaud-Detect Sequence
    14. 18.14 Software
      1. 18.14.1 SCI Examples
    15. 18.15 SCI Registers
      1. 18.15.1 SCI Base Addresses
      2. 18.15.2 SCI_REGS Registers
      3. 18.15.3 SCI Registers to Driverlib Functions
  21. 19Inter-Integrated Circuit Module (I2C)
    1. 19.1 Introduction
      1. 19.1.1 I2C Related Collateral
      2. 19.1.2 Features
      3. 19.1.3 Features Not Supported
      4. 19.1.4 Functional Overview
      5. 19.1.5 Clock Generation
      6. 19.1.6 I2C Clock Divider Registers (I2CCLKL and I2CCLKH)
        1. 19.1.6.1 Formula for the Master Clock Period
    2. 19.2 Configuring Device Pins
    3. 19.3 I2C Module Operational Details
      1. 19.3.1  Input and Output Voltage Levels
      2. 19.3.2  Selecting Pullup Resistors
      3. 19.3.3  Data Validity
      4. 19.3.4  Operating Modes
      5. 19.3.5  I2C Module START and STOP Conditions
      6. 19.3.6  Non-repeat Mode versus Repeat Mode
      7. 19.3.7  Serial Data Formats
        1. 19.3.7.1 7-Bit Addressing Format
        2. 19.3.7.2 10-Bit Addressing Format
        3. 19.3.7.3 Free Data Format
        4. 19.3.7.4 Using a Repeated START Condition
      8. 19.3.8  Clock Synchronization
      9. 19.3.9  Arbitration
      10. 19.3.10 Digital Loopback Mode
      11. 19.3.11 NACK Bit Generation
    4. 19.4 Interrupt Requests Generated by the I2C Module
      1. 19.4.1 Basic I2C Interrupt Requests
      2. 19.4.2 I2C FIFO Interrupts
    5. 19.5 Resetting or Disabling the I2C Module
    6. 19.6 Software
      1. 19.6.1 I2C Examples
        1. 19.6.1.1 C28x-I2C Library source file for FIFO interrupts
        2. 19.6.1.2 C28x-I2C Library source file for FIFO using polling
        3. 19.6.1.3 C28x-I2C Library source file for FIFO interrupts
        4. 19.6.1.4 I2C Digital Loopback with FIFO Interrupts
        5. 19.6.1.5 I2C EEPROM
        6. 19.6.1.6 I2C Digital External Loopback with FIFO Interrupts
        7. 19.6.1.7 I2C EEPROM
        8. 19.6.1.8 I2C controller target communication using FIFO interrupts
        9. 19.6.1.9 I2C EEPROM
    7. 19.7 I2C Registers
      1. 19.7.1 I2C Base Addresses
      2. 19.7.2 I2C_REGS Registers
      3. 19.7.3 I2C Registers to Driverlib Functions
  22. 20Multichannel Buffered Serial Port (McBSP)
    1. 20.1  Introduction
      1. 20.1.1 MCBSP Related Collateral
      2. 20.1.2 Features of the McBSPs
      3. 20.1.3 McBSP Pins/Signals
        1. 20.1.3.1 McBSP Generic Block Diagram
    2. 20.2  Configuring Device Pins
    3. 20.3  McBSP Operation
      1. 20.3.1 Data Transfer Process of McBSPs
        1. 20.3.1.1 Data Transfer Process for Word Length of 8, 12, or 16 Bits
        2. 20.3.1.2 Data Transfer Process for Word Length of 20, 24, or 32 Bits
      2. 20.3.2 Companding (Compressing and Expanding) Data
        1. 20.3.2.1 Companding Formats
        2. 20.3.2.2 Capability to Compand Internal Data
        3. 20.3.2.3 Reversing Bit Order: Option to Transfer LSB First
      3. 20.3.3 Clocking and Framing Data
        1. 20.3.3.1 Clocking
        2. 20.3.3.2 Serial Words
        3. 20.3.3.3 Frames and Frame Synchronization
        4. 20.3.3.4 Generating Transmit and Receive Interrupts
          1. 20.3.3.4.1 Detecting Frame-Synchronization Pulses, Even in Reset State
        5. 20.3.3.5 Ignoring Frame-Synchronization Pulses
        6. 20.3.3.6 Frame Frequency
        7. 20.3.3.7 Maximum Frame Frequency
      4. 20.3.4 Frame Phases
        1. 20.3.4.1 Number of Phases, Words, and Bits Per Frame
        2. 20.3.4.2 Single-Phase Frame Example
        3. 20.3.4.3 Dual-Phase Frame Example
        4. 20.3.4.4 Implementing the AC97 Standard With a Dual-Phase Frame
      5. 20.3.5 McBSP Reception
      6. 20.3.6 McBSP Transmission
      7. 20.3.7 Interrupts and DMA Events Generated by a McBSP
    4. 20.4  McBSP Sample Rate Generator
      1. 20.4.1 Block Diagram
        1. 20.4.1.1 Clock Generation in the Sample Rate Generator
        2. 20.4.1.2 Choosing an Input Clock
        3. 20.4.1.3 Choosing a Polarity for the Input Clock
        4. 20.4.1.4 Choosing a Frequency for the Output Clock (CLKG)
          1. 20.4.1.4.1 CLKG Frequency
        5. 20.4.1.5 Keeping CLKG Synchronized to External MCLKR
      2. 20.4.2 Frame Synchronization Generation in the Sample Rate Generator
        1. 20.4.2.1 Choosing the Width of the Frame-Synchronization Pulse on FSG
        2. 20.4.2.2 Controlling the Period Between the Starting Edges of Frame-Synchronization Pulses on FSG
        3. 20.4.2.3 Keeping FSG Synchronized to an External Clock
      3. 20.4.3 Synchronizing Sample Rate Generator Outputs to an External Clock
        1. 20.4.3.1 Operating the Transmitter Synchronously with the Receiver
        2. 20.4.3.2 Synchronization Examples
      4. 20.4.4 Reset and Initialization Procedure for the Sample Rate Generator
    5. 20.5  McBSP Exception/Error Conditions
      1. 20.5.1 Types of Errors
      2. 20.5.2 Overrun in the Receiver
        1. 20.5.2.1 Example of Overrun Condition
        2. 20.5.2.2 Example of Preventing Overrun Condition
      3. 20.5.3 Unexpected Receive Frame-Synchronization Pulse
        1. 20.5.3.1 Possible Responses to Receive Frame-Synchronization Pulses
        2. 20.5.3.2 Example of Unexpected Receive Frame-Synchronization Pulse
        3. 20.5.3.3 Preventing Unexpected Receive Frame-Synchronization Pulses
      4. 20.5.4 Overwrite in the Transmitter
        1. 20.5.4.1 Example of Overwrite Condition
        2. 20.5.4.2 Preventing Overwrites
      5. 20.5.5 Underflow in the Transmitter
        1. 20.5.5.1 Example of the Underflow Condition
        2. 20.5.5.2 Example of Preventing Underflow Condition
      6. 20.5.6 Unexpected Transmit Frame-Synchronization Pulse
        1. 20.5.6.1 Possible Responses to Transmit Frame-Synchronization Pulses
        2. 20.5.6.2 Example of Unexpected Transmit Frame-Synchronization Pulse
        3. 20.5.6.3 Preventing Unexpected Transmit Frame-Synchronization Pulses
    6. 20.6  Multichannel Selection Modes
      1. 20.6.1 Channels, Blocks, and Partitions
      2. 20.6.2 Multichannel Selection
      3. 20.6.3 Configuring a Frame for Multichannel Selection
      4. 20.6.4 Using Two Partitions
        1. 20.6.4.1 Assigning Blocks to Partitions A and B
        2. 20.6.4.2 Reassigning Blocks During Reception/Transmission
      5. 20.6.5 Using Eight Partitions
      6. 20.6.6 Receive Multichannel Selection Mode
      7. 20.6.7 Transmit Multichannel Selection Modes
        1. 20.6.7.1 Disabling/Enabling Versus Masking/Unmasking
        2. 20.6.7.2 Activity on McBSP Pins for Different Values of XMCM
      8. 20.6.8 Using Interrupts Between Block Transfers
    7. 20.7  SPI Operation Using the Clock Stop Mode
      1. 20.7.1 SPI Protocol
      2. 20.7.2 Clock Stop Mode
      3. 20.7.3 Enable and Configure the Clock Stop Mode
      4. 20.7.4 Clock Stop Mode Timing Diagrams
      5. 20.7.5 Procedure for Configuring a McBSP for SPI Operation
      6. 20.7.6 McBSP as the SPI Master
      7. 20.7.7 McBSP as an SPI Slave
    8. 20.8  Receiver Configuration
      1. 20.8.1  Programming the McBSP Registers for the Desired Receiver Operation
      2. 20.8.2  Resetting and Enabling the Receiver
        1. 20.8.2.1 Reset Considerations
      3. 20.8.3  Set the Receiver Pins to Operate as McBSP Pins
      4. 20.8.4  Digital Loopback Mode
      5. 20.8.5  Clock Stop Mode
      6. 20.8.6  Receive Multichannel Selection Mode
      7. 20.8.7  Receive Frame Phases
      8. 20.8.8  Receive Word Lengths
        1. 20.8.8.1 Word Length Bits
      9. 20.8.9  Receive Frame Length
        1. 20.8.9.1 Selected Frame Length
      10. 20.8.10 Receive Frame-Synchronization Ignore Function
        1. 20.8.10.1 Unexpected Frame-Synchronization Pulses and the Frame-Synchronization Ignore Function
        2. 20.8.10.2 Examples of Effects of RFIG
      11. 20.8.11 Receive Companding Mode
        1. 20.8.11.1 Companding
        2. 20.8.11.2 Format of Expanded Data
        3. 20.8.11.3 Companding Internal Data
        4. 20.8.11.4 Option to Receive LSB First
      12. 20.8.12 Receive Data Delay
        1. 20.8.12.1 Data Delay
        2. 20.8.12.2 0-Bit Data Delay
        3. 20.8.12.3 2-Bit Data Delay
      13. 20.8.13 Receive Sign-Extension and Justification Mode
        1. 20.8.13.1 Sign-Extension and the Justification
      14. 20.8.14 Receive Interrupt Mode
      15. 20.8.15 Receive Frame-Synchronization Mode
        1. 20.8.15.1 Receive Frame-Synchronization Modes
      16. 20.8.16 Receive Frame-Synchronization Polarity
        1. 20.8.16.1 Frame-Synchronization Pulses, Clock Signals, and Their Polarities
        2. 20.8.16.2 Frame-Synchronization Period and the Frame-Synchronization Pulse Width
      17. 20.8.17 Receive Clock Mode
        1. 20.8.17.1 Selecting a Source for the Receive Clock and a Data Direction for the MCLKR Pin
      18. 20.8.18 Receive Clock Polarity
        1. 20.8.18.1 Frame Synchronization Pulses, Clock Signals, and Their Polarities
      19. 20.8.19 SRG Clock Divide-Down Value
        1. 20.8.19.1 Sample Rate Generator Clock Divider
      20. 20.8.20 SRG Clock Synchronization Mode
      21. 20.8.21 SRG Clock Mode (Choose an Input Clock)
      22. 20.8.22 SRG Input Clock Polarity
        1. 20.8.22.1 Using CLKXP/CLKRP to Choose an Input Clock Polarity
    9. 20.9  Transmitter Configuration
      1. 20.9.1  Programming the McBSP Registers for the Desired Transmitter Operation
      2. 20.9.2  Resetting and Enabling the Transmitter
        1. 20.9.2.1 Reset Considerations
      3. 20.9.3  Set the Transmitter Pins to Operate as McBSP Pins
      4. 20.9.4  Digital Loopback Mode
      5. 20.9.5  Clock Stop Mode
      6. 20.9.6  Transmit Multichannel Selection Mode
      7. 20.9.7  XCERs Used in the Transmit Multichannel Selection Mode
      8. 20.9.8  Transmit Frame Phases
      9. 20.9.9  Transmit Word Lengths
        1. 20.9.9.1 Word Length Bits
      10. 20.9.10 Transmit Frame Length
        1. 20.9.10.1 Selected Frame Length
      11. 20.9.11 Enable/Disable the Transmit Frame-Synchronization Ignore Function
        1. 20.9.11.1 Unexpected Frame-Synchronization Pulses and Frame-Synchronization Ignore
        2. 20.9.11.2 Examples Showing the Effects of XFIG
      12. 20.9.12 Transmit Companding Mode
        1. 20.9.12.1 Companding
        2. 20.9.12.2 Format for Data To Be Compressed
        3. 20.9.12.3 Capability to Compand Internal Data
        4. 20.9.12.4 Option to Transmit LSB First
      13. 20.9.13 Transmit Data Delay
        1. 20.9.13.1 Data Delay
        2. 20.9.13.2 0-Bit Data Delay
        3. 20.9.13.3 2-Bit Data Delay
      14. 20.9.14 Transmit DXENA Mode
      15. 20.9.15 Transmit Interrupt Mode
      16. 20.9.16 Transmit Frame-Synchronization Mode
        1. 20.9.16.1 Other Considerations
      17. 20.9.17 Transmit Frame-Synchronization Polarity
        1. 20.9.17.1 Frame Synchronization Pulses, Clock Signals, and Their Polarities
      18. 20.9.18 SRG Frame-Synchronization Period and Pulse Width
        1. 20.9.18.1 Frame-Synchronization Period and Frame-Synchronization Pulse Width
      19. 20.9.19 Transmit Clock Mode
        1. 20.9.19.1 Selecting a Source for the Transmit Clock and a Data Direction for the MCLKX pin
        2. 20.9.19.2 Other Considerations
      20. 20.9.20 Transmit Clock Polarity
        1. 20.9.20.1 Frame Synchronization Pulses, Clock Signals, and Their Polarities
    10. 20.10 Emulation and Reset Considerations
      1. 20.10.1 McBSP Emulation Mode
      2. 20.10.2 Resetting and Initializing McBSPs
        1. 20.10.2.1 McBSP Pin States: DSP Reset Versus Receiver/Transmitter Reset
        2. 20.10.2.2 Device Reset, McBSP Reset, and Sample Rate Generator Reset
        3. 20.10.2.3 McBSP Initialization Procedure
        4. 20.10.2.4 Resetting the Transmitter While the Receiver is Running
          1. 20.10.2.4.1 Resetting and Configuring McBSP Transmitter While McBSP Receiver Running
    11. 20.11 Data Packing Examples
      1. 20.11.1 Data Packing Using Frame Length and Word Length
      2. 20.11.2 Data Packing Using Word Length and the Frame-Synchronization Ignore Function
    12. 20.12 Interrupt Generation
      1. 20.12.1 McBSP Receive Interrupt Generation
      2. 20.12.2 McBSP Transmit Interrupt Generation
      3. 20.12.3 Error Flags
    13. 20.13 McBSP Modes
    14. 20.14 Special Case: External Device is the Transmit Frame Master
    15. 20.15 Software
      1. 20.15.1 MCBSP Examples
    16. 20.16 McBSP Registers
      1. 20.16.1 McBSP Base Addresses
      2. 20.16.2 McBSP_REGS Registers
      3. 20.16.3 MCBSP Registers to Driverlib Functions
  23. 21Controller Area Network (CAN)
    1. 21.1  Introduction
      1. 21.1.1 DCAN Related Collateral
      2. 21.1.2 Features
      3. 21.1.3 Block Diagram
        1. 21.1.3.1 CAN Core
        2. 21.1.3.2 Message Handler
        3. 21.1.3.3 Message RAM
        4. 21.1.3.4 Registers and Message Object Access (IFx)
    2. 21.2  Functional Description
      1. 21.2.1 Configuring Device Pins
      2. 21.2.2 Address/Data Bus Bridge
    3. 21.3  Operating Modes
      1. 21.3.1 Initialization
      2. 21.3.2 CAN Message Transfer (Normal Operation)
        1. 21.3.2.1 Disabled Automatic Retransmission
        2. 21.3.2.2 Auto-Bus-On
      3. 21.3.3 Test Modes
        1. 21.3.3.1 Silent Mode
        2. 21.3.3.2 Loopback Mode
        3. 21.3.3.3 External Loopback Mode
        4. 21.3.3.4 Loopback Combined with Silent Mode
    4. 21.4  Multiple Clock Source
    5. 21.5  Interrupt Functionality
      1. 21.5.1 Message Object Interrupts
      2. 21.5.2 Status Change Interrupts
      3. 21.5.3 Error Interrupts
      4. 21.5.4 Peripheral Interrupt Expansion (PIE) Module Nomenclature for DCAN Interrupts
      5. 21.5.5 Interrupt Topologies
    6. 21.6  Parity Check Mechanism
      1. 21.6.1 Behavior on Parity Error
    7. 21.7  Debug Mode
    8. 21.8  Module Initialization
    9. 21.9  Configuration of Message Objects
      1. 21.9.1 Configuration of a Transmit Object for Data Frames
      2. 21.9.2 Configuration of a Transmit Object for Remote Frames
      3. 21.9.3 Configuration of a Single Receive Object for Data Frames
      4. 21.9.4 Configuration of a Single Receive Object for Remote Frames
      5. 21.9.5 Configuration of a FIFO Buffer
    10. 21.10 Message Handling
      1. 21.10.1  Message Handler Overview
      2. 21.10.2  Receive/Transmit Priority
      3. 21.10.3  Transmission of Messages in Event Driven CAN Communication
      4. 21.10.4  Updating a Transmit Object
      5. 21.10.5  Changing a Transmit Object
      6. 21.10.6  Acceptance Filtering of Received Messages
      7. 21.10.7  Reception of Data Frames
      8. 21.10.8  Reception of Remote Frames
      9. 21.10.9  Reading Received Messages
      10. 21.10.10 Requesting New Data for a Receive Object
      11. 21.10.11 Storing Received Messages in FIFO Buffers
      12. 21.10.12 Reading from a FIFO Buffer
    11. 21.11 CAN Bit Timing
      1. 21.11.1 Bit Time and Bit Rate
        1. 21.11.1.1 Synchronization Segment
        2. 21.11.1.2 Propagation Time Segment
        3. 21.11.1.3 Phase Buffer Segments and Synchronization
        4. 21.11.1.4 Oscillator Tolerance Range
      2. 21.11.2 Configuration of the CAN Bit Timing
        1. 21.11.2.1 Calculation of the Bit Timing Parameters
        2. 21.11.2.2 Example for Bit Timing at High Baudrate
        3. 21.11.2.3 Example for Bit Timing at Low Baudrate
    12. 21.12 Message Interface Register Sets
      1. 21.12.1 Message Interface Register Sets 1 and 2 (IF1 and IF2)
      2. 21.12.2 Message Interface Register Set 3 (IF3)
    13. 21.13 Message RAM
      1. 21.13.1 Structure of Message Objects
      2. 21.13.2 Addressing Message Objects in RAM
      3. 21.13.3 Message RAM Representation in Debug Mode
    14. 21.14 Software
      1. 21.14.1 CAN Examples
    15. 21.15 CAN Registers
      1. 21.15.1 CAN Base Addresses
      2. 21.15.2 CAN_REGS Registers
      3. 21.15.3 CAN Registers to Driverlib Functions
  24. 22Universal Serial Bus (USB) Controller
    1. 22.1 Introduction
      1. 22.1.1 Features
      2. 22.1.2 USB Related Collateral
      3. 22.1.3 Block Diagram
        1. 22.1.3.1 Signal Description
        2. 22.1.3.2 VBus Recommendations
    2. 22.2 Functional Description
      1. 22.2.1 Operation as a Device
        1. 22.2.1.1 Control and Configurable Endpoints
          1. 22.2.1.1.1 IN Transactions as a Device
          2. 22.2.1.1.2 Out Transactions as a Device
          3. 22.2.1.1.3 Scheduling
          4. 22.2.1.1.4 Additional Actions
          5. 22.2.1.1.5 Device Mode Suspend
          6. 22.2.1.1.6 Start of Frame
          7. 22.2.1.1.7 USB Reset
          8. 22.2.1.1.8 Connect/Disconnect
      2. 22.2.2 Operation as a Host
        1. 22.2.2.1 Endpoint Registers
        2. 22.2.2.2 IN Transactions as a Host
        3. 22.2.2.3 OUT Transactions as a Host
        4. 22.2.2.4 Transaction Scheduling
        5. 22.2.2.5 USB Hubs
        6. 22.2.2.6 Babble
        7. 22.2.2.7 Host SUSPEND
        8. 22.2.2.8 USB RESET
        9. 22.2.2.9 Connect/Disconnect
      3. 22.2.3 DMA Operation
      4. 22.2.4 Address/Data Bus Bridge
    3. 22.3 Initialization and Configuration
      1. 22.3.1 Pin Configuration
      2. 22.3.2 Endpoint Configuration
    4. 22.4 USB Global Interrupts
    5. 22.5 Software
      1. 22.5.1 USB Examples
    6. 22.6 USB Registers
      1. 22.6.1 USB Base Address
      2. 22.6.2 USB Register Map
      3. 22.6.3 Register Descriptions
        1. 22.6.3.1  USB Device Functional Address Register (USBFADDR), offset 0x000
        2. 22.6.3.2  USB Power Management Register (USBPOWER), offset 0x001
        3. 22.6.3.3  USB Transmit Interrupt Status Register
        4. 22.6.3.4  USB Receive Interrupt Status Register
        5. 22.6.3.5  USB Transmit Interrupt Enable Register
        6. 22.6.3.6  USB Receive Interrupt Enable Register
        7. 22.6.3.7  USB General Interrupt Status Register (USBIS), offset 0x00A
        8. 22.6.3.8  USB Interrupt Enable Register (USBIE), offset 0x00B
        9. 22.6.3.9  USB Frame Value Register (USBFRAME), offset 0x00C
        10. 22.6.3.10 USB Endpoint Index Register (USBEPIDX), offset 0x00E
        11. 22.6.3.11 USB Test Mode Register (USBTEST), offset 0x00F
        12. 22.6.3.12 USB FIFO Endpoint n Register (USBFIFO[0]-USBFIFO[3])
        13. 22.6.3.13 USB Device Control Register (USBDEVCTL), offset 0x060
        14. 22.6.3.14 USB Transmit Dynamic FIFO Sizing Register (USBTXFIFOSZ), offset 0x062
        15. 22.6.3.15 USB Receive Dynamic FIFO Sizing Register (USBRXFIFOSZ), offset 0x063
        16. 22.6.3.16 USB Transmit FIFO Start Address Register (USBTXFIFOADD), offset 0x064
        17. 22.6.3.17 USB Receive FIFO Start Address Register (USBRXFIFOADD), offset 0x066
        18. 22.6.3.18 USB Connect Timing Register (USBCONTIM), offset 0x07A
        19. 22.6.3.19 USB Full-Speed Last Transaction to End of Frame Timing Register (USBFSEOF), offset 0x07D
        20. 22.6.3.20 USB Low-Speed Last Transaction to End of Frame Timing Register (USBLSEOF), offset 0x07E
        21. 22.6.3.21 USB Transmit Functional Address Endpoint n Registers (USBTXFUNCADDR[0]-USBTXFUNCADDR[n])
        22. 22.6.3.22 USB Transmit Hub Address Endpoint n Registers (USBTXHUBADDR[0]-USBTXHUBADDR[n])
        23. 22.6.3.23 USB Transmit Hub Port Endpoint n Registers (USBTXHUBPORT[0]-USBTXHUBPORT[n])
        24. 22.6.3.24 USB Receive Functional Address Endpoint n Registers (USBRXFUNCADDR[1]-USBRXFUNCADDR[n)
        25. 22.6.3.25 USB Receive Hub Address Endpoint n Registers (USBRXHUBADDR[1]-USBRXHUBADDR[n])
        26. 22.6.3.26 USB Receive Hub Port Endpoint n Register (USBRXHUBPORT[1]-USBRXHUBPORT[n])
        27. 22.6.3.27 USB Maximum Transmit Data Endpoint n Registers (USBTXMAXP[1]-USBTXMAXP[n])
        28. 22.6.3.28 USB Control and Status Endpoint 0 Low Register (USBCSRL0), offset 0x102
        29. 22.6.3.29 USB Control and Status Endpoint 0 High Register (USBCSRH0), offset 0x103
        30. 22.6.3.30 USB Receive Byte Count Endpoint 0 Register (USBCOUNT0), offset 0x108
        31. 22.6.3.31 USB Type Endpoint 0 Register (USBTYPE0), offset 0x10A
        32. 22.6.3.32 USB NAK Limit Register (USBNAKLMT), offset 0x10B
        33. 22.6.3.33 USB Transmit Control and Status Endpoint n Low Register (USBTXCSRL[1]-USBTXCSRL[n])
        34. 22.6.3.34 USB Transmit Control and Status Endpoint n High Register (USBTXCSRH[1]-USBTXCSRH[n])
        35. 22.6.3.35 USB Maximum Receive Data Endpoint n Registers (USBRXMAXP[1]-USBRXMAXP[n])
        36. 22.6.3.36 USB Receive Control and Status Endpoint n Low Register (USBRXCSRL[1]-USBRXCSRL[n])
        37. 22.6.3.37 USB Receive Control and Status Endpoint n High Register (USBRXCSRH[1]-USBRXCSRH[n])
        38. 22.6.3.38 USB Receive Byte Count Endpoint n Register (USBRXCOUNT[1]-USBRXCOUNT[n])
        39. 22.6.3.39 USB Host Transmit Configure Type Endpoint n Registers (USBTXTYPE[1]-USBTXTYPE[n])
        40. 22.6.3.40 USB Host Transmit Interval Endpoint n Registers (USBTXINTERVAL[1]-USBTXINTERVAL[n])
        41. 22.6.3.41 USB Host Configure Receive Type Endpoint n Register (USBRXTYPE[1]-USBRXTYPE[n])
        42. 22.6.3.42 USB Host Receive Polling Interval Endpoint n Registers (USBRXINTERVAL[1]-USBRXINTERVAL[n])
        43. 22.6.3.43 USB Request Packet Count in Block Transfer Endpoint n Registers (USBRQPKTCOUNT[1]-USBRQPKTCOUNT[n])
        44. 22.6.3.44 USB Receive Double Packet Buffer Disable Register (USBRXDPKTBUFDIS), offset 0x340
        45. 22.6.3.45 USB Transmit Double Packet Buffer Disable Register (USBTXDPKTBUFDIS), offset 0x342
        46. 22.6.3.46 USB External Power Control Register (USBEPC), offset 0x400
        47. 22.6.3.47 USB External Power Control Raw Interrupt Status Register (USBEPCRIS), offset 0x404
        48. 22.6.3.48 USB External Power Control Interrupt Mask Register (USBEPCIM), offset 0x408
        49. 22.6.3.49 USB External Power Control Interrupt Status and Clear Register (USBEPCISC), offset 0x40C
        50. 22.6.3.50 USB Device RESUME Raw Interrupt Status Register (USBDRRIS), offset 0x410
        51. 22.6.3.51 USB Device RESUME Raw Interrupt Mask Register (USBDRIM), offset 0x414
        52. 22.6.3.52 USB Device RESUME Interrupt Status and Clear Register (USBDRISC), offset 0x418
        53. 22.6.3.53 USB General-Purpose Control and Status Register (USBGPCS), offset 0x41C
        54. 22.6.3.54 USB DMA Select Register (USBDMASEL), offset 0x450
      4. 22.6.4 USB Registers to Driverlib Functions
  25. 23External Memory Interface (EMIF)
    1. 23.1 Introduction
      1. 23.1.1 Purpose of the Peripheral
      2. 23.1.2 EMIF Related Collateral
      3. 23.1.3 Features
        1. 23.1.3.1 Asynchronous Memory Support
        2. 23.1.3.2 Synchronous DRAM Memory Support
      4. 23.1.4 Functional Block Diagram
      5. 23.1.5 Configuring Device Pins
    2. 23.2 EMIF Module Architecture
      1. 23.2.1  EMIF Clock Control
      2. 23.2.2  EMIF Requests
      3. 23.2.3  EMIF Signal Descriptions
      4. 23.2.4  EMIF Signal Multiplexing Control
      5. 23.2.5  SDRAM Controller and Interface
        1. 23.2.5.1  SDRAM Commands
        2. 23.2.5.2  Interfacing to SDRAM
        3. 23.2.5.3  SDRAM Configuration Registers
        4. 23.2.5.4  SDRAM Auto-Initialization Sequence
        5. 23.2.5.5  SDRAM Configuration Procedure
        6. 23.2.5.6  EMIF Refresh Controller
          1. 23.2.5.6.1 Determining the Appropriate Value for the RR Field
        7. 23.2.5.7  Self-Refresh Mode
        8. 23.2.5.8  Power-Down Mode
        9. 23.2.5.9  SDRAM Read Operation
        10. 23.2.5.10 SDRAM Write Operations
        11. 23.2.5.11 Mapping from Logical Address to EMIF Pins
      6. 23.2.6  Asynchronous Controller and Interface
        1. 23.2.6.1 Interfacing to Asynchronous Memory
        2. 23.2.6.2 Accessing Larger Asynchronous Memories
        3. 23.2.6.3 Configuring EMIF for Asynchronous Accesses
        4. 23.2.6.4 Read and Write Operations in Normal Mode
          1. 23.2.6.4.1 Asynchronous Read Operations (Normal Mode)
          2. 23.2.6.4.2 Asynchronous Write Operations (Normal Mode)
        5. 23.2.6.5 Read and Write Operation in Select Strobe Mode
          1. 23.2.6.5.1 Asynchronous Read Operations (Select Strobe Mode)
          2. 23.2.6.5.2 Asynchronous Write Operations (Select Strobe Mode)
        6. 23.2.6.6 Extended Wait Mode and the EM1WAIT Pin
      7. 23.2.7  Data Bus Parking
      8. 23.2.8  Reset and Initialization Considerations
      9. 23.2.9  Interrupt Support
        1. 23.2.9.1 Interrupt Events
      10. 23.2.10 DMA Event Support
      11. 23.2.11 EMIF Signal Multiplexing
      12. 23.2.12 Memory Map
      13. 23.2.13 Priority and Arbitration
      14. 23.2.14 System Considerations
        1. 23.2.14.1 Asynchronous Request Times
      15. 23.2.15 Power Management
        1. 23.2.15.1 Power Management Using Self-Refresh Mode
        2. 23.2.15.2 Power Management Using Power Down Mode
      16. 23.2.16 Emulation Considerations
    3. 23.3 Example Configuration
      1. 23.3.1 Hardware Interface
      2. 23.3.2 Software Configuration
        1. 23.3.2.1 Configuring the SDRAM Interface
          1. 23.3.2.1.1 PLL Programming for EMIF to K4S641632H-TC(L)70 Interface
          2. 23.3.2.1.2 SDRAM Timing Register (SDRAM_TR) Settings for EMIF to K4S641632H-TC(L)70 Interface
          3. 23.3.2.1.3 SDRAM Self Refresh Exit Timing Register (SDR_EXT_TMNG) Settings for EMIF to K4S641632H-TC(L)70 Interface
          4. 23.3.2.1.4 SDRAM Refresh Control Register (SDRAM_RCR) Settings for EMIF to K4S641632H-TC(L)70 Interface
          5. 23.3.2.1.5 SDRAM Configuration Register (SDRAM_CR) Settings for EMIF to K4S641632H-TC(L)70 Interface
        2. 23.3.2.2 Configuring the Flash Interface
          1. 23.3.2.2.1 Asynchronous 1 Configuration Register (ASYNC_CS2_CFG) Settings for EMIF to LH28F800BJE-PTTL90 Interface
    4. 23.4 EMIF Registers
      1. 23.4.1 EMIF Base Addresses
      2. 23.4.2 EMIF_REGS Registers
      3. 23.4.3 EMIF1_CONFIG_REGS Registers
      4. 23.4.4 EMIF2_CONFIG_REGS Registers
      5. 23.4.5 EMIF Registers to Driverlib Functions
  26. 24Configurable Logic Block (CLB)
    1. 24.1 Introduction
      1. 24.1.1 CLB Related Collateral
    2. 24.2 Description
      1. 24.2.1 CLB Clock
    3. 24.3 CLB Input/Output Connection
      1. 24.3.1 Overview
      2. 24.3.2 CLB Input Selection
      3. 24.3.3 CLB Output Selection
      4. 24.3.4 CLB Output Signal Multiplexer
    4. 24.4 CLB Tile
      1. 24.4.1 Static Switch Block
      2. 24.4.2 Counter Block
        1. 24.4.2.1 Counter Description
        2. 24.4.2.2 Counter Operation
      3. 24.4.3 FSM Block
      4. 24.4.4 LUT4 Block
      5. 24.4.5 Output LUT Block
      6. 24.4.6 High Level Controller (HLC)
        1. 24.4.6.1 High Level Controller Events
        2. 24.4.6.2 High Level Controller Instructions
        3. 24.4.6.3 <Src> and <Dest>
        4. 24.4.6.4 Operation of the PUSH and PULL Instructions (Overflow and Underflow Detection)
    5. 24.5 CPU Interface
      1. 24.5.1 Register Description
      2. 24.5.2 Non-Memory Mapped Registers
    6. 24.6 DMA Access
    7. 24.7 Software
      1. 24.7.1 CLB Examples
        1. 24.7.1.1  CLB Empty Project
        2. 24.7.1.2  CLB Combinational Logic
        3. 24.7.1.3  CLB GPIO Input Filter
        4. 24.7.1.4  CLB Auxilary PWM
        5. 24.7.1.5  CLB PWM Protection
        6. 24.7.1.6  CLB Event Window
        7. 24.7.1.7  CLB Signal Generator
        8. 24.7.1.8  CLB State Machine
        9. 24.7.1.9  CLB External Signal AND Gate
        10. 24.7.1.10 CLB Timer
        11. 24.7.1.11 CLB Timer Two States
        12. 24.7.1.12 CLB Interrupt Tag
        13. 24.7.1.13 CLB Output Intersect
        14. 24.7.1.14 CLB PUSH PULL
        15. 24.7.1.15 CLB Multi Tile
        16. 24.7.1.16 CLB Tile to Tile Delay
        17. 24.7.1.17 CLB based One-shot PWM
        18. 24.7.1.18 CLB Trip Zone Timestamp
    8. 24.8 CLB Registers
      1. 24.8.1 CLB Base Addresses
      2. 24.8.2 CLB_LOGIC_CONFIG_REGS Registers
      3. 24.8.3 CLB_LOGIC_CONTROL_REGS Registers
      4. 24.8.4 CLB_DATA_EXCHANGE_REGS Registers
      5. 24.8.5 CLB Registers to Driverlib Functions
  27. 25Revision History

EPWM_REGS Registers

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

Table 14-20 EPWM_REGS Registers
OffsetAcronymRegister NameWrite ProtectionSection
0hTBCTLTime Base Control RegisterGo
1hTBCTL2Time Base Control Register 2Go
4hTBCTRTime Base Counter RegisterGo
5hTBSTSTime Base Status RegisterGo
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 RegisterGo
51hDBREDDead-Band Generator Rising Edge Delay Count RegisterGo
52hDBFEDHRDead-Band Generator Falling Edge Delay High Resolution RegisterGo
53hDBFEDDead-Band Generator Falling Edge Delay Count RegisterGo
60hTBPHSTime Base Phase RegisterGo
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 2EALLOWGo
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
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
FDhHWVDELVALHardware Valley Mode Delay RegisterGo
FEhVCNTVALHardware Valley Counter RegisterGo

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

Table 14-21 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
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.

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

TBCTL is shown in Figure 14-94 and described in Table 14-22.

Return to the Summary Table.

Time Base Control Register

Figure 14-94 TBCTL Register
15141312111098
FREE_SOFTPHSDIRCLKDIVHSPCLKDIV
R/W-0hR/W-0hR/W-0hR/W-1h
76543210
HSPCLKDIVSWFSYNCSYNCOSELPRDLDPHSENCTRMODE
R/W-1hR-0/W1S-0hR/W-0hR/W-0hR/W-0hR/W-3h
Table 14-22 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 affects EPWMxSYNCO only when SYNCOSEL = 00.

Reset type: SYSRSn

5-4SYNCOSELR/W0hSync Output Select

00: EPWMxSYNCI / SWFSYNC
01: CTR = zero: Time-base counter equal to zero (TBCTR = 0x00)
10: CTR = CMPB : Time-base counter equal to counter-compare B (TBCTR = CMPB)
11: EPWMXSYNCO is defined by TBCTL2[SYNCOSELX]

Reset type: SYSRSn

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

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

TBCTL2 is shown in Figure 14-95 and described in Table 14-23.

Return to the Summary Table.

Time Base Control Register 2

Figure 14-95 TBCTL2 Register
15141312111098
PRDLDSYNCSYNCOSELXRESERVED
R/W-0hR/W-0hR-0-0h
76543210
OSHTSYNCOSHTSYNCMODERESERVEDRESERVED
R-0/W1S-0hR/W-0hR/W-0hR-0-0h
Table 14-23 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-12SYNCOSELXR/W0hExtended selection bits for SYNCOUT

00: Disabled EPWMxSYNCO sync signal
01: EPWMxSYNCO = CMPC
10: EPWMxSYNCO = CMPD
11: Reserved

Reset type: SYSRSn

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

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

TBCTR is shown in Figure 14-96 and described in Table 14-24.

Return to the Summary Table.

Time Base Counter Register

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

Reset type: SYSRSn

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

TBSTS is shown in Figure 14-97 and described in Table 14-25.

Return to the Summary Table.

Time Base Status Register

Figure 14-97 TBSTS Register
15141312111098
RESERVED
R-0-0h
76543210
RESERVEDCTRMAXSYNCICTRDIR
R-0-0hR/W1C-0hR/W1C-0hR-1h
Table 14-25 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

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

CMPCTL is shown in Figure 14-98 and described in Table 14-26.

Return to the Summary Table.

Counter Compare Control Register

Figure 14-98 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 14-26 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

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

CMPCTL2 is shown in Figure 14-99 and described in Table 14-27.

Return to the Summary Table.

Counter Compare Control Register 2

Figure 14-99 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 14-27 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

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

DBCTL is shown in Figure 14-100 and described in Table 14-28.

Return to the Summary Table.

Dead-Band Generator Control Register

Figure 14-100 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 14-28 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

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

DBCTL2 is shown in Figure 14-101 and described in Table 14-29.

Return to the Summary Table.

Dead-Band Generator Control Register 2

Figure 14-101 DBCTL2 Register
15141312111098
RESERVED
R-0-0h
76543210
RESERVEDSHDWDBCTLMODELOADDBCTLMODE
R-0-0hR/W-0hR/W-0h
Table 14-29 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

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

AQCTL is shown in Figure 14-102 and described in Table 14-30.

Return to the Summary Table.

Action Qualifier Control Register

Figure 14-102 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 14-30 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

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

AQTSRCSEL is shown in Figure 14-103 and described in Table 14-31.

Return to the Summary Table.

Action Qualifier Trigger Event Source Select Register

Figure 14-103 AQTSRCSEL Register
15141312111098
RESERVED
R-0-0h
76543210
T2SELT1SEL
R/W-0hR/W-0h
Table 14-31 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
1xxx: 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
1xxx: Reserved

Reset type: SYSRSn

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

PCCTL is shown in Figure 14-104 and described in Table 14-32.

Return to the Summary Table.

PWM Chopper Control Register

Figure 14-104 PCCTL Register
15141312111098
RESERVEDCHPDUTY
R-0-0hR/W-0h
76543210
CHPFREQOSHTWTHCHPEN
R/W-0hR/W-0hR/W-0h
Table 14-32 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

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

VCAPCTL is shown in Figure 14-105 and described in Table 14-33.

Return to the Summary Table.

Valley Capture Control Register

Figure 14-105 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 14-33 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

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

VCNTCFG is shown in Figure 14-106 and described in Table 14-34.

Return to the Summary Table.

Valley Counter Config Register

Figure 14-106 VCNTCFG Register
15141312111098
STOPEDGESTSRESERVEDSTOPEDGE
R-0hR-0-0hR/W-0h
76543210
STARTEDGESTSRESERVEDSTARTEDGE
R-0hR-0-0hR/W-0h
Table 14-34 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

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

HRCNFG is shown in Figure 14-107 and described in Table 14-35.

Return to the Summary Table.

HRPWM Configuration Register

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

Figure 14-107 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 14-35 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

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

HRPWR is shown in Figure 14-108 and described in Table 14-36.

Return to the Summary Table.

HRPWM Power Register

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

Figure 14-108 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 14-36 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

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

HRMSTEP is shown in Figure 14-109 and described in Table 14-37.

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 14-109 HRMSTEP Register
15141312111098
RESERVED
R-0-0h
76543210
HRMSTEP
R/W-0h
Table 14-37 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

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

HRCNFG2 is shown in Figure 14-110 and described in Table 14-38.

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 14-110 HRCNFG2 Register
15141312111098
RESERVEDRESERVEDRESERVED
R/W-0hR-0/W1S-0hR-0-0h
76543210
RESERVEDCTLMODEDBFEDCTLMODEDBREDEDGMODEDB
R-0-0hR/W-0hR/W-0hR/W-0h
Table 14-38 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

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

HRPCTL is shown in Figure 14-111 and described in Table 14-39.

Return to the Summary Table.

High Resolution Period Control Register

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

Figure 14-111 HRPCTL Register
15141312111098
RESERVED
R-0-0h
76543210
RESERVEDPWMSYNCSELXRESERVEDTBPHSHRLOADEPWMSYNCSELHRPE
R-0-0hR/W-0hR/W-0hR/W-0hR/W-0hR/W-0h
Table 14-39 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

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

TRREM is shown in Figure 14-112 and described in Table 14-40.

Return to the Summary Table.

HRPWM High Resolution Remainder Register

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

Figure 14-112 TRREM Register
15141312111098
RESERVEDTRREM
R-0-0hR/W-0h
76543210
TRREM
R/W-0h
Table 14-40 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

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

GLDCTL is shown in Figure 14-113 and described in Table 14-41.

Return to the Summary Table.

Global PWM Load Control Register

Figure 14-113 GLDCTL Register
15141312111098
RESERVEDGLDCNTGLDPRD
R-0-0hR-0hR/W-0h
76543210
GLDPRDRESERVEDOSHTMODEGLDMODEGLD
R/W-0hR-0-0hR/W-0hR/W-0hR/W-0h
Table 14-41 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

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

GLDCFG is shown in Figure 14-114 and described in Table 14-42.

Return to the Summary Table.

Global PWM Load Config Register

Figure 14-114 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 14-42 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

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

AQCTLA is shown in Figure 14-116 and described in Table 14-44.

Return to the Summary Table.

Action Qualifier Control Register For Output A

Figure 14-116 AQCTLA Register
15141312111098
RESERVEDCBDCBU
R-0-0hR/W-0hR/W-0h
76543210
CADCAUPRDZRO
R/W-0hR/W-0hR/W-0hR/W-0h
Table 14-44 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

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

AQCTLA2 is shown in Figure 14-117 and described in Table 14-45.

Return to the Summary Table.

Additional Action Qualifier Control Register For Output A

Figure 14-117 AQCTLA2 Register
15141312111098
RESERVED
R-0-0h
76543210
T2DT2UT1DT1U
R/W-0hR/W-0hR/W-0hR/W-0h
Table 14-45 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

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

AQCTLB is shown in Figure 14-118 and described in Table 14-46.

Return to the Summary Table.

Action Qualifier Control Register For Output B

Figure 14-118 AQCTLB Register
15141312111098
RESERVEDCBDCBU
R-0-0hR/W-0hR/W-0h
76543210
CADCAUPRDZRO
R/W-0hR/W-0hR/W-0hR/W-0h
Table 14-46 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

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

AQCTLB2 is shown in Figure 14-119 and described in Table 14-47.

Return to the Summary Table.

Additional Action Qualifier Control Register For Output B

Figure 14-119 AQCTLB2 Register
15141312111098
RESERVED
R-0-0h
76543210
T2DT2UT1DT1U
R/W-0hR/W-0hR/W-0hR/W-0h
Table 14-47 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

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

AQSFRC is shown in Figure 14-120 and described in Table 14-48.

Return to the Summary Table.

Action Qualifier Software Force Register

Figure 14-120 AQSFRC Register
15141312111098
RESERVED
R-0-0h
76543210
RLDCSFOTSFBACTSFBOTSFAACTSFA
R/W-0hR-0/W1S-0hR/W-0hR-0/W1S-0hR/W-0h
Table 14-48 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

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

AQCSFRC is shown in Figure 14-121 and described in Table 14-49.

Return to the Summary Table.

Action Qualifier Continuous S/W Force Register

Figure 14-121 AQCSFRC Register
15141312111098
RESERVED
R-0-0h
76543210
RESERVEDCSFBCSFA
R-0-0hR/W-0hR/W-0h
Table 14-49 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

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

DBREDHR is shown in Figure 14-122 and described in Table 14-50.

Return to the Summary Table.

Dead-Band Generator Rising Edge Delay High Resolution Register

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

Reset type: SYSRSn

8RESERVEDR0hReserved
7-1RESERVEDR0hReserved
0RESERVEDR0hReserved

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

DBRED is shown in Figure 14-123 and described in Table 14-51.

Return to the Summary Table.

Dead-Band Generator Rising Edge Delay Count Register

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

Reset type: SYSRSn

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

DBFEDHR is shown in Figure 14-124 and described in Table 14-52.

Return to the Summary Table.

Dead-Band Generator Falling Edge Delay High Resolution Register

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

Reset type: SYSRSn

8RESERVEDR0hReserved
7-1RESERVEDR0hReserved
0RESERVEDR0hReserved

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

DBFED is shown in Figure 14-125 and described in Table 14-53.

Return to the Summary Table.

Dead-Band Generator Falling Edge Delay Count Register

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

14-bit counter

Reset type: SYSRSn

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

TBPHS is shown in Figure 14-126 and described in Table 14-54.

Return to the Summary Table.

Time Base Phase Register

Figure 14-126 TBPHS Register
313029282726252423222120191817161514131211109876543210
TBPHSTBPHSHR
R/W-0hR/W-0h
Table 14-54 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

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

TBPRDHR is shown in Figure 14-127 and described in Table 14-55.

Return to the Summary Table.

Time Base Period High Resolution Register

Figure 14-127 TBPRDHR Register
15141312111098
TBPRDHR
R/W-0h
76543210
TBPRDHR
R/W-0h
Table 14-55 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

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

TBPRD is shown in Figure 14-128 and described in Table 14-56.

Return to the Summary Table.

Time Base Period Register

Figure 14-128 TBPRD Register
15141312111098
TBPRD
R/W-0h
76543210
TBPRD
R/W-0h
Table 14-56 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

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

CMPA is shown in Figure 14-129 and described in Table 14-57.

Return to the Summary Table.

Counter Compare A Register

Figure 14-129 CMPA Register
313029282726252423222120191817161514131211109876543210
CMPACMPAHR
R/W-0hR/W-0h
Table 14-57 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

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

CMPB is shown in Figure 14-130 and described in Table 14-58.

Return to the Summary Table.

Compare B Register

Figure 14-130 CMPB Register
313029282726252423222120191817161514131211109876543210
CMPBCMPBHR
R/W-0hR/W-0h
Table 14-58 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

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

CMPC is shown in Figure 14-131 and described in Table 14-59.

Return to the Summary Table.

Counter Compare C Register

LINK feature access should always be 16-bit

Figure 14-131 CMPC Register
15141312111098
CMPC
R/W-0h
76543210
CMPC
R/W-0h
Table 14-59 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

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

CMPD is shown in Figure 14-132 and described in Table 14-60.

Return to the Summary Table.

Counter Compare D Register

LINK feature access should always be 16-bit

Figure 14-132 CMPD Register
15141312111098
CMPD
R/W-0h
76543210
CMPD
R/W-0h
Table 14-60 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

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

GLDCTL2 is shown in Figure 14-133 and described in Table 14-61.

Return to the Summary Table.

Global PWM Load Control Register 2

Figure 14-133 GLDCTL2 Register
15141312111098
RESERVED
R-0-0h
76543210
RESERVEDGFRCLDOSHTLD
R-0-0hR-0/W1S-0hR-0/W1S-0h
Table 14-61 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

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

SWVDELVAL is shown in Figure 14-134 and described in Table 14-62.

Return to the Summary Table.

Software Valley Mode Delay Register

Figure 14-134 SWVDELVAL Register
15141312111098
SWVDELVAL
R/W-0h
76543210
SWVDELVAL
R/W-0h
Table 14-62 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

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

TZSEL is shown in Figure 14-135 and described in Table 14-63.

Return to the Summary Table.

Trip Zone Select Register

Figure 14-135 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 14-63 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

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

TZDCSEL is shown in Figure 14-136 and described in Table 14-64.

Return to the Summary Table.

Trip Zone Digital Comparator Select Register

Figure 14-136 TZDCSEL Register
15141312111098
RESERVEDDCBEVT2DCBEVT1
R-0-0hR/W-0hR/W-0h
76543210
DCBEVT1DCAEVT2DCAEVT1
R/W-0hR/W-0hR/W-0h
Table 14-64 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

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

TZCTL is shown in Figure 14-137 and described in Table 14-65.

Return to the Summary Table.

Trip Zone Control Register

Figure 14-137 TZCTL Register
15141312111098
RESERVEDDCBEVT2DCBEVT1
R-0-0hR/W-0hR/W-0h
76543210
DCAEVT2DCAEVT1TZBTZA
R/W-0hR/W-0hR/W-0hR/W-0h
Table 14-65 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

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

TZCTL2 is shown in Figure 14-138 and described in Table 14-66.

Return to the Summary Table.

Additional Trip Zone Control Register

Figure 14-138 TZCTL2 Register
15141312111098
ETZERESERVEDTZBDTZBU
R/W-0hR-0-0hR/W-0hR/W-0h
76543210
TZBUTZADTZAU
R/W-0hR/W-0hR/W-0h
Table 14-66 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

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

TZCTLDCA is shown in Figure 14-139 and described in Table 14-67.

Return to the Summary Table.

Trip Zone Control Register Digital Compare A

Figure 14-139 TZCTLDCA Register
15141312111098
RESERVEDDCAEVT2DDCAEVT2U
R-0-0hR/W-0hR/W-0h
76543210
DCAEVT2UDCAEVT1DDCAEVT1U
R/W-0hR/W-0hR/W-0h
Table 14-67 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

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

TZCTLDCB is shown in Figure 14-140 and described in Table 14-68.

Return to the Summary Table.

Trip Zone Control Register Digital Compare B

Figure 14-140 TZCTLDCB Register
15141312111098
RESERVEDDCBEVT2DDCBEVT2U
R-0-0hR/W-0hR/W-0h
76543210
DCBEVT2UDCBEVT1DDCBEVT1U
R/W-0hR/W-0hR/W-0h
Table 14-68 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

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

TZEINT is shown in Figure 14-141 and described in Table 14-69.

Return to the Summary Table.

Trip Zone Enable Interrupt Register

Figure 14-141 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 14-69 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

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

TZFLG is shown in Figure 14-142 and described in Table 14-70.

Return to the Summary Table.

Trip Zone Flag Register

Figure 14-142 TZFLG Register
15141312111098
RESERVED
R-0-0h
76543210
RESERVEDDCBEVT2DCBEVT1DCAEVT2DCAEVT1OSTCBCINT
R-0-0hR-0hR-0hR-0hR-0hR-0hR-0hR-0h
Table 14-70 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

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

TZCBCFLG is shown in Figure 14-143 and described in Table 14-71.

Return to the Summary Table.

Trip Zone CBC Flag Register

Figure 14-143 TZCBCFLG Register
15141312111098
RESERVED
R-0-0h
76543210
DCBEVT2DCAEVT2CBC6CBC5CBC4CBC3CBC2CBC1
R-0hR-0hR-0hR-0hR-0hR-0hR-0hR-0h
Table 14-71 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

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

TZOSTFLG is shown in Figure 14-144 and described in Table 14-72.

Return to the Summary Table.

Trip Zone OST Flag Register

Figure 14-144 TZOSTFLG Register
15141312111098
RESERVED
R-0-0h
76543210
DCBEVT1DCAEVT1OST6OST5OST4OST3OST2OST1
R-0hR-0hR-0hR-0hR-0hR-0hR-0hR-0h
Table 14-72 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

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

TZCLR is shown in Figure 14-145 and described in Table 14-73.

Return to the Summary Table.

Trip Zone Clear Register

Figure 14-145 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 14-73 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

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

TZCBCCLR is shown in Figure 14-146 and described in Table 14-74.

Return to the Summary Table.

Trip Zone CBC Clear Register

Figure 14-146 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 14-74 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

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

TZOSTCLR is shown in Figure 14-147 and described in Table 14-75.

Return to the Summary Table.

Trip Zone OST Clear Register

Figure 14-147 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 14-75 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

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

TZFRC is shown in Figure 14-148 and described in Table 14-76.

Return to the Summary Table.

Trip Zone Force Register

Figure 14-148 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 14-76 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

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

ETSEL is shown in Figure 14-149 and described in Table 14-77.

Return to the Summary Table.

Event Trigger Selection Register

Figure 14-149 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 14-77 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

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

ETPS is shown in Figure 14-150 and described in Table 14-78.

Return to the Summary Table.

Event Trigger Pre-Scale Register

Figure 14-150 ETPS Register
15141312111098
SOCBCNTSOCBPRDSOCACNTSOCAPRD
R-0hR/W-0hR-0hR/W-0h
76543210
RESERVEDSOCPSSELINTPSSELINTCNTINTPRD
R-0-0hR/W-0hR/W-0hR-0hR/W-0h
Table 14-78 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

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

ETFLG is shown in Figure 14-151 and described in Table 14-79.

Return to the Summary Table.

Event Trigger Flag Register

Figure 14-151 ETFLG Register
15141312111098
RESERVED
R-0-0h
76543210
RESERVEDSOCBSOCARESERVEDINT
R-0-0hR-0hR-0hR-0-0hR-0h
Table 14-79 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

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

ETCLR is shown in Figure 14-152 and described in Table 14-80.

Return to the Summary Table.

Event Trigger Clear Register

Figure 14-152 ETCLR Register
15141312111098
RESERVED
R-0-0h
76543210
RESERVEDSOCBSOCARESERVEDINT
R-0-0hR-0/W1S-0hR-0/W1S-0hR-0-0hR-0/W1S-0h
Table 14-80 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

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

ETFRC is shown in Figure 14-153 and described in Table 14-81.

Return to the Summary Table.

Event Trigger Force Register

Figure 14-153 ETFRC Register
15141312111098
RESERVED
R-0-0h
76543210
RESERVEDSOCBSOCARESERVEDINT
R-0-0hR-0/W1S-0hR-0/W1S-0hR-0-0hR-0/W1S-0h
Table 14-81 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

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

ETINTPS is shown in Figure 14-154 and described in Table 14-82.

Return to the Summary Table.

Event-Trigger Interrupt Pre-Scale Register

Figure 14-154 ETINTPS Register
15141312111098
RESERVED
R-0-0h
76543210
INTCNT2INTPRD2
R-0hR/W-0h
Table 14-82 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

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

ETSOCPS is shown in Figure 14-155 and described in Table 14-83.

Return to the Summary Table.

Event-Trigger SOC Pre-Scale Register

Figure 14-155 ETSOCPS Register
15141312111098
SOCBCNT2SOCBPRD2
R-0hR/W-0h
76543210
SOCACNT2SOCAPRD2
R-0hR/W-0h
Table 14-83 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

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

ETCNTINITCTL is shown in Figure 14-156 and described in Table 14-84.

Return to the Summary Table.

Event-Trigger Counter Initialization Control Register

Figure 14-156 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 14-84 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

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

ETCNTINIT is shown in Figure 14-157 and described in Table 14-85.

Return to the Summary Table.

Event-Trigger Counter Initialization Register

Figure 14-157 ETCNTINIT Register
15141312111098
RESERVEDSOCBINIT
R-0hR/W-0h
76543210
SOCAINITINTINIT
R/W-0hR/W-0h
Table 14-85 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

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

DCTRIPSEL is shown in Figure 14-158 and described in Table 14-86.

Return to the Summary Table.

Digital Compare Trip Select Register

Figure 14-158 DCTRIPSEL Register
15141312111098
DCBLCOMPSELDCBHCOMPSEL
R/W-0hR/W-0h
76543210
DCALCOMPSELDCAHCOMPSEL
R/W-0hR/W-0h
Table 14-86 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

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

DCACTL is shown in Figure 14-159 and described in Table 14-87.

Return to the Summary Table.

Digital Compare A Control Register

Figure 14-159 DCACTL Register
15141312111098
RESERVEDEVT2FRCSYNCSELEVT2SRCSEL
R-0-0hR/W-0hR/W-0h
76543210
RESERVEDEVT1SYNCEEVT1SOCEEVT1FRCSYNCSELEVT1SRCSEL
R-0-0hR/W-0hR/W-0hR/W-0hR/W-0h
Table 14-87 DCACTL Register Field Descriptions
BitFieldTypeResetDescription
15-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

7-4RESERVEDR-00hReserved
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

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

DCBCTL is shown in Figure 14-160 and described in Table 14-88.

Return to the Summary Table.

Digital Compare B Control Register

Figure 14-160 DCBCTL Register
15141312111098
RESERVEDEVT2FRCSYNCSELEVT2SRCSEL
R-0-0hR/W-0hR/W-0h
76543210
RESERVEDEVT1SYNCEEVT1SOCEEVT1FRCSYNCSELEVT1SRCSEL
R-0-0hR/W-0hR/W-0hR/W-0hR/W-0h
Table 14-88 DCBCTL Register Field Descriptions
BitFieldTypeResetDescription
15-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

7-4RESERVEDR-00hReserved
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

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

DCFCTL is shown in Figure 14-161 and described in Table 14-89.

Return to the Summary Table.

Digital Compare Filter Control Register

Figure 14-161 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 14-89 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: Reserved

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

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

DCCAPCTL is shown in Figure 14-162 and described in Table 14-90.

Return to the Summary Table.

Digital Compare Capture Control Register

Figure 14-162 DCCAPCTL Register
15141312111098
CAPMODECAPCLRCAPSTSRESERVED
R/W-0hR-0/W1S-0hR-0hR-0-0h
76543210
RESERVEDSHDWMODECAPE
R-0-0hR/W-0hR/W-0h
Table 14-90 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

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

DCFOFFSET is shown in Figure 14-163 and described in Table 14-91.

Return to the Summary Table.

Digital Compare Filter Offset Register

Figure 14-163 DCFOFFSET Register
15141312111098
DCFOFFSET
R/W-0h
76543210
DCFOFFSET
R/W-0h
Table 14-91 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

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

DCFOFFSETCNT is shown in Figure 14-164 and described in Table 14-92.

Return to the Summary Table.

Digital Compare Filter Offset Counter Register

Figure 14-164 DCFOFFSETCNT Register
15141312111098
DCFOFFSETCNT
R-0h
76543210
DCFOFFSETCNT
R-0h
Table 14-92 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

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

DCFWINDOW is shown in Figure 14-165 and described in Table 14-93.

Return to the Summary Table.

Digital Compare Filter Window Register

Figure 14-165 DCFWINDOW Register
15141312111098
DCFWINDOW
R/W-0h
76543210
DCFWINDOW
R/W-0h
Table 14-93 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

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

DCFWINDOWCNT is shown in Figure 14-166 and described in Table 14-94.

Return to the Summary Table.

Digital Compare Filter Window Counter Register

Figure 14-166 DCFWINDOWCNT Register
15141312111098
DCFWINDOWCNT
R-0h
76543210
DCFWINDOWCNT
R-0h
Table 14-94 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

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

DCCAP is shown in Figure 14-167 and described in Table 14-95.

Return to the Summary Table.

Digital Compare Counter Capture Register

Figure 14-167 DCCAP Register
15141312111098
DCCAP
R-0h
76543210
DCCAP
R-0h
Table 14-95 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

14.15.2.75 DCAHTRIPSEL Register (Offset = D2h) [Reset = 0000h]

DCAHTRIPSEL is shown in Figure 14-168 and described in Table 14-96.

Return to the Summary Table.

Digital Compare AH Trip Select

Figure 14-168 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 14-96 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

14.15.2.76 DCALTRIPSEL Register (Offset = D3h) [Reset = 0000h]

DCALTRIPSEL is shown in Figure 14-169 and described in Table 14-97.

Return to the Summary Table.

Digital Compare AL Trip Select

Figure 14-169 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 14-97 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

14.15.2.77 DCBHTRIPSEL Register (Offset = D4h) [Reset = 0000h]

DCBHTRIPSEL is shown in Figure 14-170 and described in Table 14-98.

Return to the Summary Table.

Digital Compare BH Trip Select

Figure 14-170 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 14-98 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

14.15.2.78 DCBLTRIPSEL Register (Offset = D5h) [Reset = 0000h]

DCBLTRIPSEL is shown in Figure 14-171 and described in Table 14-99.

Return to the Summary Table.

Digital Compare BL Trip Select

Figure 14-171 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 14-99 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

14.15.2.79 HWVDELVAL Register (Offset = FDh) [Reset = 0000h]

HWVDELVAL is shown in Figure 14-172 and described in Table 14-100.

Return to the Summary Table.

Hardware Valley Mode Delay Register

Figure 14-172 HWVDELVAL Register
15141312111098
HWVDELVAL
R-0h
76543210
HWVDELVAL
R-0h
Table 14-100 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

14.15.2.80 VCNTVAL Register (Offset = FEh) [Reset = 0000h]

VCNTVAL is shown in Figure 14-173 and described in Table 14-101.

Return to the Summary Table.

Hardware Valley Counter Register

Figure 14-173 VCNTVAL Register
15141312111098
VCNTVAL
R-0h
76543210
VCNTVAL
R-0h
Table 14-101 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