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.

AM2634: ADC Count value differ in SDK software and EB Mcal

Part Number: AM2634

Hello team,

I have tested ADC using adc_soc_software from MCU+SDK for AM263x(9.1.0.41) and EB Mcal(MCAL_AM263x_09.00.01.00).

using same configurations- prescalar, sample window, clock and everything.

I found out that there is difference in ADC count values from SDK and EBMcal.

please refer below table,

Multimeter value in Voltage Expected ADC Count ADC Count form SDK software ADC Count from EB Mcal
2.815 3603.2 3570 3070
2.131 2727.68 2696 2545
1.889 2417.92 2392 2365
1.494 1912.32 1894 2068
1.159 1483.52 1483 1800
0.101 129.28 133 452

Could you please confirm, why there is a large difference value between EB Mcal and SDK software?

Thanks 

Aswathy J G

  • Hi Aswathy,

    Can you please share the MCAL EB configuration?Adc_PBcfg.c, Adc_Cfg.c and Adc_Cfg.h

    BR,

    Sunil

  • Hi Sunil,

    PFA

    Adc_Cfg.h

    2117.Adc_PBcfg.c
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    /*
    *
    * Copyright (c) 2023 Texas Instruments Incorporated
    *
    * All rights reserved not granted herein.
    *
    * Limited License.
    *
    * Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
    * license under copyrights and patents it now or hereafter owns or controls to make,
    * have made, use, import, offer to sell and sell ("Utilize") this software subject to the
    * terms herein. With respect to the foregoing patent license, such license is granted
    * solely to the extent that any such patent is necessary to Utilize the software alone.
    * The patent license shall not apply to any combinations which include this software,
    * other than combinations with devices manufactured by or for TI ("TI Devices").
    * No hardware patent is licensed hereunder.
    *
    * Redistributions must preserve existing copyright notices and reproduce this license
    * (including the above copyright notice and the disclaimer and (if applicable) source
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Thanks

    Aswathy J G

  • Hi

    Could you please give feedback on the above query.

    Thanks

    Aswathy J g

  • Hi Aswathy,

    By default the ADC Clock Pre-scaler value for MCAL is div by 1 and for MCU_PLUS_SDK is div by 4.

    Could you confirm if these are the same in your case and the issue still persists.
    If the values are still default, could you make them same and then try to get the result again?

    Regards,
    Akshit