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.

TMS570LC4357: Multiplexing special function temperature sensors

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Hello

Regarding the control of special multiplexed options for the temperature sensors selection:

1) Is the correct understanding for setting PINMMR174[24] = 1, it means that the temperature sensors are disabled, neither Temp Sensor 1/2/3, AD1IN[31], AD2IN[31] nor AD2IN[30] is usable or available (despite a possible setting as stated in SPNU563A "Table 6-11. Temperature Sensor Selection")?

2) But when using Temp Sensor 1/2/3, AD1IN[31], AD2IN[31] or AD2IN[30], PINMMR174[24] has to be 0 + corresponding setting as given in the table;

e.g. using Temp Sensor 2: PINMMR174[24] = 0 and AD2CHNSEL(31) = 1, PINMMR173(24) = 0, PINMMR173(25) = 1

Thanks in advance for your support

Mathieu

  • Hello Jagadish

    I have read SPNU563A and even this FAQ. But for me, these do not help for the understanding, especially 1), whether it is completely fully disabled, no signal is usable/available and PINMMR173[17:16, 25:24] do not need to be set. The examples and descriptions are mainly about the ADxIN[y]-signals.

    Thanks for your support!

  • Hi Mathieu,

    1) Is the correct understanding for setting PINMMR174[24] = 1, it means that the temperature sensors are disabled, neither Temp Sensor 1/2/3, AD1IN[31], AD2IN[31] nor AD2IN[30] is usable or available (despite a possible setting as stated in SPNU563A "Table 6-11. Temperature Sensor Selection")?

    2) But when using Temp Sensor 1/2/3, AD1IN[31], AD2IN[31] or AD2IN[30], PINMMR174[24] has to be 0 + corresponding setting as given in the table;

    Looks like you are confused, let me clarify for you.

    The temperature sensor pins are multiplexed with analog pins like as given below.

    As temperature sensors are multiplexed with three of analog pins, at a time any one of them can be used right? that means if we used temperature sensor functionality then we can't use analog functionality and vice versa.

    PINMMR174[24]:

    If we set this bit (PINMMR174[24] = 1), means we are not using any temperature sensor. And all the 3 signals will act as ADC pins and neither of them will work as temperature sensor functionality.

    To use at least one temperature sensor functionality the use must clear this bit.

    Once we cleared the PINMMR174[24] bit we must also do following configurations to use respective temperature sensors.

    For example:

    1. When i disable all the temperature sensors in HALCoGen

    the below is the generated code:

    you can see that,

    Here we are first doing PINMMR174[24] = 1 and after this 

    We are writing 

    PINMMR173[17] = 0 and PINMMR173[16] = 1 to use AD1IN[31] as ADC pin

    PINMMR173[25] = 0 and PINMMR173[24] = 1 to use AD2IN[31] as ADC pin

    PINMMR174[1] = 0 and PINMMR174[0] = 1 to use AD2IN[30] as ADC pin

    2. When i enabled, temperature sensor-1

    The below is the generated code:

    you can see that,

    Here we are first doing PINMMR174[24] = 0 and after this 

    We are writing 

    PINMMR173[17] = 1 and PINMMR173[16] = 0 to use AD1IN[31] as Temperature sensor-1 pin

    PINMMR173[25] = 0 and PINMMR173[24] = 1 to use AD2IN[31] as ADC pin

    PINMMR174[1] = 0 and PINMMR174[0] = 1 to use AD2IN[30] as ADC pin

    Note: 

    And do remaining configurations also at your end and observe the code. Once we did this configuration in HALCoGen then the next thing we need to do is to enable the corresponding ADC channel and should need to read the ADC value to calculate temperature sensor value if we enabled the temperature functionality.

    --

    Thanks & regards,
    Jagadish.