DL_MCPWM_TimeBaseConfig

Module: Driverlib (AM13E230X) APIs / Driverlib MCPWM API

MCPWM Time Base configuration structure.

#include <dl_mcpwm.h>

Public Attributes

Name

DL_MCPWM_CLOCK_DIVIDER

clockDivider

DL_MCPWM_TIME_BASE_COUNT_MODE

counterMode

DL_MCPWM_SYNC_COUNT_MODE

counterDirectionAfterSync

uint16_t

periodValue

uint16_t

initialCounterValue

bool

enablePhaseShift

uint16_t

phaseShiftValue

DL_MCPWM_SYNC_IN_PULSE_SOURCE

syncInSource

DL_MCPWM_SYNCPERSEL_SOURCE

syncPerSource

DL_MCPWM_SYNC_OUT_PULSE_MODE

syncOutPulseMode

DL_MCPWM_EMULATION_MODE

emulationMode

Public Attributes Documentation

variable clockDivider

DL_MCPWM_CLOCK_DIVIDER clockDivider;

Configure clock prescale/divider. Configures TBCTL.CLKDIV

variable counterMode

DL_MCPWM_TIME_BASE_COUNT_MODE counterMode;

Select Time Base Counter mode. Configures TBCTL.CTR_MODE

variable counterDirectionAfterSync

DL_MCPWM_SYNC_COUNT_MODE counterDirectionAfterSync;

Direction of counter after Sync. Configures TBCTL.PHSDIR

variable periodValue

uint16_t periodValue;

Set Time Base Period. Configures TBCTL.TBPRD and TBCTL.TBPRDS

  • Valid values: 16 bit unsigned period value in cycles

variable initialCounterValue

uint16_t initialCounterValue;

Configures initial value of TBCTR.TBCTR

  • Valid values: 16 bit unsigned integer

variable enablePhaseShift

bool enablePhaseShift;

Enable phase shift load. Configures TBCTL.PHSEN

  • true : enable phase shift loading

  • false : disable phase shift loading

variable phaseShiftValue

uint16_t phaseShiftValue;

Configure Phase Shift count. Configures TBCTL.TBPHS

  • Valid values: 16 bit unsigned phase count in cycles

variable syncInSource

DL_MCPWM_SYNC_IN_PULSE_SOURCE syncInSource;

Select Sync In pulse source. Configures TBCTL.SYNCISEL

variable syncPerSource

DL_MCPWM_SYNCPERSEL_SOURCE syncPerSource;

Select SYNCPER source. Configures TBCTL.SYNCPERSEL

variable syncOutPulseMode

DL_MCPWM_SYNC_OUT_PULSE_MODE syncOutPulseMode;

Select Sync Out pulse source. Configures TBCTL.SYNCOSEL

variable emulationMode

DL_MCPWM_EMULATION_MODE emulationMode;

Set emulation mode. Configures TBCTL.FREE_SOFT