infineon4engi@twitter infineon@linkedin infineon4engineers infineon@youtube
twitter Facebook Linkedin Youtube

+ Reply to Thread
Results 1 to 3 of 3

Thread: TLE9879 Eval Kit onboard ADC Pot Issue.

  1. #1
    New Member New Member Litun is on a distinguished road
    Join Date
    Aug 2017

    TLE9879 Eval Kit onboard ADC Pot Issue.

    I am using TLE9879 Eval Kit V1.2. So i have connected VDDP to JP6 pin no 1(As described in the user manual). And i have confirmed with a scope that in Pin 2.4 the voltage veries from 0V to 5V as
    I turn Potentiometer. So potentiometer works fine.

    I am using the "ADC1_POTI_EIM_EXAMPLE_TLE987X" from the Examples. And I see that the digital ADC value is 0 at potentiometer null position(Extreme left) and as I turn the potentiometer a just little
    it seems like ADC value is 1023.(I could see from the LED behavior). It means at 0V, ADC value is 0 and at 0.3V(instead of 5V), ADC value is 1023. Why?

    To confirm, when I check with debugger mode the variable which stores ADC value mV shows <Can not evaluate> in the watch window. Why?

    Click image for larger version

Views:	3
Size:	194.4 KB
ID:	3320

  2. #2

    Infineon Employee
    Infineon Employee
    Mc-Key will become famous soon enough
    Join Date
    Jan 2018
    the example code works fine on my side!
    I tested the project on a TLE9879 Evalkit Rev1.2.

    Please check, if you use the latest Pack file. (Version 1.3.2)

    Please try the project I tested:
    The LEDs should act like a bargraph for the poti position.

    It is important to activate VAREF for the ADC1. (ConfigWizard-->ADC1)
    In my case it is already enabled in the project.
    Of Course, I also had to connect JP6 Pin1 to VDDP.

    It is important to remove JP4 for this example. (Evalkit User Manual Chapter 9.1)

    Please check, if VAREF Pin has a voltage level of ~5V.

    "mV" in the Debug Window:
    "mV" is a local variable in the function Poti_Handler().
    If you want to track the variable in the watch window, you have two options:
    - place a breakpoint in the function
    - change "mV" to be a global variable

    I'm looking forward for your feedback.

    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 Litun is on a distinguished road
    Join Date
    Aug 2017
    Dear M.K.,
    Thank you very much for the info.

    The VREF shows voltage in millivolts range(not 5V). Found out that VDDEXT is down. Removed JP4. Then VREF is 5V.
    The user manual says JP4 to use of VDDEXT. But from the circuit diagram, it true that VDDEXT can affect VREF.

    Looking for the possible cause of VDDEXT failure.
    And thanks for the info about the Global variable in the watch window.
    Last edited by Litun; Feb 1st, 2018 at 08:17 AM.

+ Reply to Thread

Tags for this 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.