RX66T-R5F566TAEGFP PWM generation

Dear All,

       1.  I already generate the pwm .but  that configuration was need to be confirm. configuration attached here.

       2.   if configuration was not correct .How to generate Complementary pwm .

       3.  how calculate the duty ratio & switching frequency of Rx66T controller.

  • Hello dear Raja, thank you for posting to the community. 

    Let me gather information about this. 

    Meanwhile, I'll be grateful if you provide me more details about the specific application which you want to use. 

    Thanks for your patience 

  • Dear Hossein, Thank you for your response. 

    I need the complementary PWM in R5F566TAEGFP controller. to drive a motor control application.

  • Hi Raja, I hope you’re doing well.

    If you’re willing to generate a complementary symmetric PWM using MTU3-4 you can follow these steps:

    Your initial setup is correct. and can adjust its values based on the below information

    You can utilize the configuration for generating a 3-phase phase complementary PWM :

    Here’s the output for the above setup:

    According to my setup, ‘Timer operation period’ specifies the carrier frequency of all the channels. (Which is 1KHz here).

    ‘MTU3.TGRB’ specifies the duty cycle of the MTIO3B related output pins

    ‘MTU4.TGRA’ specifies the duty cycle of the MTIO4A related output pins

    ‘MTU4.TGRB’ specifies the duty cycle of the MTIO4B related output pins

    The value of the duty cycle is determined in this way:

    MTU3.TGRB/MTU3.TGRA (4000/15900) for MTIO3B related output pins

    MTU3.TGRB/MTU4.TGRB (2000/15900) for MTIO4A related output pins

    MTU3.TGRB/MTU4.TGRB (1000/15900) for MTIO4B related output pins.

    And about the output channel configuration options, those determine the active-high, and active-low state for each channel and are hardware-specific features that you’ll need to choose based on your H-bridge driver trigger signals.

    If you need to adjust those settings in runtime and for motor control, you’ll need to go through different examples which are provided in the below links.

    First, choose the needed PWM mode, then investigate the related sample code explanations and files.

     

    There's a complete guide for different modes of PWM in RX66T with example files, which you can find it on this link. Also, there are more examples of Brushless motors and other motor control applications here.

     

    I hope you’ll find that information useful. Check the links and don’t hesitate to ask further questions if needed.

    Best regards, Hossein.

    If this response, or one provided by another user, answers your question, please verify the answer. Thank you!

    Renesas Engineering Community Moderator
    https://community.renesas.com/
    https://academy.renesas.com/
    https://en-support.renesas.com/knowledgeBase/

  • Dear Hossein,

                           Sorry for the delay of response. Thank you for your hope full support. i have one doubt on count clock selection. is it  possible to use main clock 120MHz either 160 MHz ?.

  • Dear Hossein,

          please confirm the configuration of option. for marked one if need?. i have checked without enable MTIOC3A toggle output PWM was generated. that is i asked

  • Hello dear Raja.

    MTIOC3A toggle output is optional and you can use it for refrence or some synchronization if needed, the top waveform shown in figure in the comment above shows that signal.

    And about using high frequency clocks, yes you can choose the main clock without prescaler, but usign higher frequencies will result in higher output frequency. You can adjust it based on you needs.

    If this response, or one provided by another user, answers your question, please verify the answer. Thank you!

    Renesas Engineering Community Moderator
    https://community.renesas.com/
    https://academy.renesas.com/
    https://en-support.renesas.com/knowledgeBase/

  • Hi Hossein,

      please clarify , Commanly the Negative channel turn on after the  given Deadtime of Positive channel turn off .but here Negative channel turn on then dead time after positive channel turn on it's due to reason of symmetric PWM is it?

  • Excuse me Raja, I think I mixxed up naming the channels in analyzer app but you can configure the positive, negative channels on your own. Symmetric PWM just makes signals Symmetric with the each other and the MTIO3A signal (the reference timer overflow pulse), you can check out reset synchronized mode to see the difference. 

  • Hello Dear Hossein,

                     Here i have been tested. the same output was came that's why i asked. Ok i will check.