This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM-Q1: Configuring TDA4 SoC to generate PWM and Interrupt from the same pin

Part Number: TDA4VM-Q1


Tool/software:

Hi,

For our business logic, we want to configure a PWM O/P at defined frequency (30Hz). Question is can we have the same PWM interface be configured to interrupt (the SoC) when there's a rising or falling edge ?

Thanks,
Deepak Kumar

  • The PWM can generate an interrupt upon any of these events:

    • Time-base counter equal to zero (EPWM_TBCNT[15-0] TBCNT = 0000h).

    • Time-base counter equal to period (EPWM_TBCNT[15-0] TBCNT = EPWM_TBPRD[15-0] TBPRD).

    • Time-base counter equal to the compare A register (EPWM_CMPA) when the timer is incrementing.

    • Time-base counter equal to the compare A register (EPWM_CMPA) when the timer is decrementing.

    • Time-base counter equal to the compare B register (EPWM_CMPB) when the timer is incrementing.

    • Time-base counter equal to the compare B register (EPWM_CMPB) when the timer is decrementing.

    The number of events that have occurred can be read from the interrupt event counter (EPWM_ETPS[3-2]

  • Thanks for the reply