infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 3 of 3

Thread: TLE9879 Demo Kits BLDC_BEMF

  1. #1
    New Member New Member x94ho2 is on a distinguished road
    Join Date
    Feb 2019

    TLE9879 Demo Kits BLDC_BEMF

    Can anyone help me?

    I am trying to modify the code for BLDC_BEMF as below
    1) Run the motor forward and reverse.
    2) Run to 2 A current limit and stop the motor

    I did look into the code but not able to understand where to change the code or which function do the direction and limit the current.


  2. #2

    Infineon Employee
    Infineon Employee
    Mc-Key will become famous soon enough
    Join Date
    Jan 2018
    The example code is capable to run in reverse direction.

    You can change line 101 in the main.c file.

    The direction control is selected in Emo.c line 151-158

    Easiest way to reverse the direction is to stop the motor, reverse refspeed and start again.

    According to your second question.
    There is no current limitation implemented to the democode.
    The current sense amplifier (CSA) is connected to ADC1/CH1.
    If you use one of the TLE9879 Evalkits, you will have a 5mOhm Shunt connected to the CSA.
    This results in a current range of +/- 30A at a Gain of 10.

    I hope this hints will help you,

    Best Regards,
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  3. #3
    New Member New Member x94ho2 is on a distinguished road
    Join Date
    Feb 2019
    Hi Mc-Key,

    I am using KEIL uVision with TLE9879 Evalkits demo code.
    I did what you suggested changing Emo_setspeedreferenz(-2000);. The motor run for 0.5 s and stop. Is there anywhere else I need to modify?
    When I run forward with load, the motor stop running after heavy load. Is there a overload current set in the demo code?
    I wish who write this code create function for speed and current so that user can test the hardware by simply changing the value from positive to negative for speed and integer value for current limit.

    Please let me know if you have any other suggestion.

    Thank you,
    Eugene Ho

+ Reply to Thread

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.

Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.