AnsweredAssumed Answered

Some questions in the PWM project ?

Question asked by 陈 文龙 on Feb 26, 2020
Latest reply on Mar 7, 2020 by 陈 文龙

Hi,

   When reading the PWM project, I have some questions:

   (1)What does the following code do? Some people say they are trying to turn off the fault protection? If so, I want to know how do they work?

 

/* Set the PWM Fault inputs to a low value */
XBARA_Init(XBARA1);
XBARA_SetSignalsConnection(XBARA1, kXBARA1_InputLogicHigh, kXBARA1_OutputFlexpwm1Fault0);
XBARA_SetSignalsConnection(XBARA1, kXBARA1_InputLogicHigh, kXBARA1_OutputFlexpwm1Fault1);
XBARA_SetSignalsConnection(XBARA1, kXBARA1_InputLogicHigh, kXBARA1_OutputFlexpwm1234Fault2);
XBARA_SetSignalsConnection(XBARA1, kXBARA1_InputLogicHigh, kXBARA1_OutputFlexpwm1234Fault3);

 

   (2)What's the difference between signed center-aligned and unsigned cente-alignes ? 

   (3)What's the difference between signed edge-aligned and unsigned edge-aligned ? 

 

/*! @brief PWM operation mode */
typedef enum _pwm_mode
{
kPWM_SignedCenterAligned = 0U, /*!< Signed center-aligned */
kPWM_CenterAligned, /*!< Unsigned cente-aligned */
kPWM_SignedEdgeAligned, /*!< Signed edge-aligned */
kPWM_EdgeAligned /*!< Unsigned edge-aligned */
} pwm_mode_t;

Outcomes