+ Reply to Thread
Results 1 to 3 of 3

Thread: TLE9879 Evaluation Kit

  1. #1
    Beginner Beginner x94ho2 is on a distinguished road
    Join Date
    Feb 2019
    Posts
    12
    Points
    85.15625

    TLE9879 Evaluation Kit

    Hi,
    I am trying to read ADC1 port P2.4. I went to IFXConfigWizard and select Sequence 1 - 6 and select channel 4 (P2.4). If want want to read the ADC only when require how do I do that. Currently I am able to read from the interrupt when I enable Interrupt Channel 4 (P2.4) like the example with Function name called Poti_Handler.
    If I use the interrupt enable when I run the motor the motor not able to run properly. Is there any other around this. I do not need to read ADC while I am running the motor.

    Thank you,
    Eugene

  2. #2
    Beginner Beginner x94ho2 is on a distinguished road
    Join Date
    Feb 2019
    Posts
    12
    Points
    85.15625
    Finally I managed to get the ADC working. Below is the code I used

    value_valid = ADC1_GetChResult_mV(&mV, ADC1_CH4);

    if (value_valid == true)
    {
    _ADC1 = mV;
    }

    if (_ADC1 > 3000)
    {
    PORT_ChangePin(LED7, PORT_ACTION_SET);
    }
    else
    {
    PORT_ChangePin(LED7, PORT_ACTION_CLEAR);
    }

    I configured all the sequencer 1 to Sequencer 6 with Channel 4(P2.4) check. After compiled I am able to read the ADC P2.4.

    Do I need to configure sequencer 1 to Sequencer 6 for P2.4?

    Click image for larger version

Name:	Configuration.gif
Views:	0
Size:	52.7 KB
ID:	5405

    Thanks,
    Eugene Ho

  3. #3
    Beginner Beginner troppsa is on a distinguished road
    Join Date
    Mar 2021
    Posts
    2
    Points
    50
    Can you help me a bit more? I am trying to repeat the code but with no success. So I need somebody to help me identify where I make a mistake. I am from https://worldpostalcode.com/canada/ontario/. If you are from my time zone and have enough skills to help me, I will appreciate it a lot. So waiting for volunteers who could solve my helpless situation. Many thanks
    Last edited by troppsa; Mar 30th, 2021 at 11:18 AM.

+ Reply to Thread

Tags for this Thread

Disclaimer

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.