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.

CCS/TMS570LC4357: Temperature sensor usage.

Part Number: TMS570LC4357

Tool/software: Code Composer Studio

I am confused of the the temperature sensors selection.   In the manual it says I need to activate AD1CHNSEL(31) to select temperature sensor 1.   I can't find this AD1CHNSEL register in ADC section.  Is it the same as the ADG1SEL register?  And it also says that temp sensor 2 and 3 are multiplexed with AD2IN[31] and AD2IN[30],  but AD2 has only 25 inputs based on the manual.  Please advice.

Thanks,

XG

  • Hello XG,

    The ADC1[31] is pinmuxed with one of the die sensors. You can use either ADG1SEL or ADG2SEL based on which ADC group is used to sample data from ADC1[31].

    Please refer to this application note:

    www.ti.com/.../spna216.pdf

  • Hi QJ,

    The information you supply is exact the same as on the manual which I can't understand.   My question is:

    1.  Where to find ADG1SEL register?

    2.  Where is ADC2[31] pin and ADC2[30]?  Based on the manual ADC2 has only 25 pins.

    Regards,

    XG

  • Hello XG,

    There are three instances of temperature sensors in this microcontroller. The measured temperatures are analog signals. These analog signals are connected to the on-chip ADCs for conversion. Before the temperature sensors can be used, they must be enabled.

    By default, they are disabled with PINMMR174[24] = 1. To enable the temperature sensors, PINMMR174[24] must be cleared to 0.

    • Temperature sensor 1's output is multiplexed with AD1IN[31].
    • Temperature sensor 2's output is multiplexed with AD2IN[31].
    • Temperature sensor 3's output is multiplexed with AD2IN[30].

    AD2IN[31] and AD2IN[30] are not exposed on terminals but internally they exists and are used for temperature sensors.