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.

AM4372: ePWM module

Guru 10085 points
Part Number: AM4372

Hi Support Team,

The buzzer on the board is controlled by using the AM4372 ePWM module on the customer's custom board.

The buzzer sounding ON/OFF (= PWM output ON/OFF) is realized by the following method,
but is there any particular problem in this usage?

-------------------------------------------------
[PWM output ON]
Set CTRMODE[1:0] of TBCTL Register to "00".
Set ZRO[1:0] of AQCTLA Register to "10".

[PWM output OFF]
Set CTRMODE[1:0] of TBCTL Register to "11".
Set ZRO[1:0] of AQCTLA Register to "01".
-------------------------------------------------

If there is a more appropriate control method for ON/OFF control of PWM output, please let me know.

Best regards,
Kanae

  • Hello Kanae,

    Thank you for the query. 

    I will check on this internally and update you.

    "is there any particular problem in this usage"

    Can you please explain what problem you are facing or expecting here.  

    Thanks

    Rajashri

  • Hi Rajashri,

    Thank you for your reply.

    Regarding your question, there is no problem as far as the operation of the customer's custom board is concerned.

    The reason for the concern is the following description of the CTRMODE bit in the TRM, which begs the question,
    "Is it acceptable to change this bit for frequent on/off usage like buzzer control?"


    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.


    If this is inappropriate, please let us know the correct setting or an idea of an alternative.


    Best regards,
    Kanae

  • Hi Rajashri,

    Could you please just let us know when you will have an answer,
    or at least a timeline, as I need to report back to my customer?

    Best regards,
    Kanae

  • Hello Kanae,

    I have reviewed this use case of changing CTRMODE bit of TBCTL register to control the buzzer on/off.

    However, I am checking on this with the experts internally. I will update you based on their response.

    Regards

    Rajashri

  • Hi Rajashri,

    Thank you for your support.
    It has been two weeks since my first post and I have been urged by my customer to reply.
    Could you please provide me with an estimated date when I can have a reply from the experts?

    Best regards,
    Kanae

  • Hello Kanae, 

    Thank you for the note and we are following up internally.

    Would you be able to please  check with the customer on the buzzer frequency being configured.

    Regards,

    Sreenivasa

     

  • Hi Sreenivasa,

    Thank you for your reply.

    I will confirm the buzzer frequency setting with my customer,
    but will the buzzer frequency affect this register setting?
    Please let us know the reason for your question.

    Best regards,
    Kanae

  • Hello Kanae, 

    Thank you for the inputs.

    but will the buzzer frequency affect this register setting? Please refer below note that implies there could be one clock count effect ( i guess this should not be a concern for the buzzer as seen by customer but it is always good to understand the frequency of operation). 

    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.

    Please refer below inputs received from the expert

    While it is “not normal” to change  the CTRLMODE during operation, there is no issue with the use case detailed in the E2E

    Regards,

    Sreenivasa

  • Hi Sreenivasa,

    Thank you for your support!
    I will share with my customer that the following settings on the custom board are fine.



    The buzzer sounding ON/OFF (= PWM output ON/OFF) is realized by the following method.

    -------------------------------------------------
    [PWM output ON]
    Set CTRMODE[1:0] of TBCTL Register to "00".
    Set ZRO[1:0] of AQCTLA Register to "10".

    [PWM output OFF].
    Set CTRMODE[1:0] of TBCTL Register to "11".
    Set ZRO[1:0] of AQCTLA Register to "01".
    -------------------------------------------------


    Best regards,

    Kanae

  • Hello Kanae, 

    Thank you for the input.

    I was checking for the buzzer frequency (On/Off duration) 

    Regards,

    Sreenivasa

  • Hello Kanae, 

    If possible and available, Please help to update the buzzer frequency. This information could be of help to customer referencing the thread.

    Thank you for the support.

    Regards,

    Sreenivasa

  • Hi Sreenivasa,

    Thank you for your reply.
    The following is the information received from the customer.

    PWM frequency for buzzer control is based on 4.0 kHz and can be set from 0 to 8 KHz in 0.1 KHz steps.
    I am not sure if your question is about the frequency or the setting value,
    but please let us know if there is any missing information on this subject.

    Best regards,
    Kanae

  • Hello Kanae, 

    Thank you for the inputs and appreciate you updating the thread with the buzzer frequency.

    Frequency is fine and as always if you have the configuration values for a specific frequency, updating those would help.

    Regards,

    Sreenivasa

  • Hi Sreenivasa,

    I checked it my customer.

    The frequency setting value is 4.0 kHz.
    If the volume does not meet the standard due to individual differences in the buzzer
    during the delivery inspection, an adjustment of about ±0.1 kHz will be made.

    In addition, a customer has asked the following question.

    Q. I am relieved to hear that the answer is that there is no problem with the current settings,
    but is it correct to understand that "there is no more appropriate control method"
    for the following that you posted at the beginning of this article?

    *From the first post*

    ”If there is a more appropriate control method for ON/OFF control of PWM output, please let me know.”

    Best regards,
    Kanae

  • Hello Kanae, 

    Thank you for the inputs.

    Based on the use case there is no issue seen with the implementation.

    Given the use case, we do not have any alternate implementation suggestion.

    Regards,

    Sreenivasa