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.

TMS570LS1227: Use of AWM1_EXT_ENA

Part Number: TMS570LS1227
Other Parts Discussed in Thread: TMS570LS3137

Hello Team,

Could you please help answer this question.

i have some questions to ADC of the TMS570

 

I have read the datasheets, and I like to summarize my info.

Could you please clarify, if my assumptions are correct

 

  1. The TMS570LS1227 zwt have 2 Port to control external analog multiplexer  (AWM1_EXT_SEL[0] + AWM1_EXT_SEL[1])
  2. The TMS570LS3137 zwt has no port to control external analog multiplexer
  3. The TMS570LC3457 zwt has 5 Port to control external analog multiplexer

 

 

There is a additional Port to enable the external multiplexer AWM1_EXT_ENA.

 

From the I got this sheet

  

 

My Questions:

 Is it possible to use AWM1_EXT_ENA as an addition select line?  What is the usecase to have the Analog Multiplexer not enabled

 

Thank you,

- Needhu

  • Hello Needhu,

    Needhu Gunasegaran said:

    Could you please clarify, if my assumptions are correct

     

    1. The TMS570LS1227 zwt have 2 Port to control external analog multiplexer  (AWM1_EXT_SEL[0] + AWM1_EXT_SEL[1])
    2. The TMS570LS3137 zwt has no port to control external analog multiplexer
    3. The TMS570LC3457 zwt has 5 Port to control external analog multiplexer

     

    Your statements are correct.

    Needhu Gunasegaran said:

    My Questions:

     Is it possible to use AWM1_EXT_ENA as an addition select line?  What is the usecase to have the Analog Multiplexer not enabled

    I would suppose it would be possible to use the ENA as an additional mux selection. i.e., you could double the muxes and have the AWM1_EXT_ENA signal inverted to half of them so the EXT_ENA acts as a select for a group of muxes with the AWM1_EXT_SEL[n:0] pins selecting the mux channels that are output by the active muxes. A use case for not enabling may be application dependent or tied to diagnostic modes of the ADC to remove loading for calibration or self-test, although I don't think this would be entirely necessary. 

  • Hi Chuck,

    Thank you very much for your quick support.

    I will get back to you as soon as I get a feedback from my customer.

    Thanks,
    Needhu
  • Team,

    After taking the question online to discuss further, I have a general follow up question. In bold is the question first asked by the customer and an answer from chuck.

    Is it possible to have a Group with more than 32 Channels?We like to be compatible between the LS1227 and the LC4357
    CWDEach ADC module has a total of 32 channels. In the case of the LS1227 only 24 are bonded out to a pin. In the case of the LC4357 you have the full 32 channels for ADC1 with 16 shared channels with ADC2 and an additional 9 ADC2 channels that are not shared (could be used for the 8 direct channels). If you have channels selected for conversion in the LS1227 that are not actually bonded, these channels will be floating and will have indeterminate values.

    Could you please answer the follow up questions asked below.

    • What I mean is that in Software it is only possibly to have 2 groups with 32 Channels. For the 1227 it would mean if we use 4:1 Multiplexer we could use 8 ADC Pins  AD1in[0-7] in one group.   Is it possible to have a bigger group? (Esspecially for the LC4357 using 8:1 or 16:1 multiplexer)
    • i have a problem with the HET of  the  LC4357 Board.

       This is my program

       P02_Period   PCNT { hr_lr=HIGH,type=RISE2RISE,pin=2};

      ;P02_HighTime   PCNT { hr_lr=LOW,type=RISE2FALL,pin=2};

      P02_EventCount ECNT { pin=2,event=RISE,reg=A,data=0};

      P02_Branch     BR   { next=P02_Last,cond_addr=P02_PeriodSave ,pin=2,event=RISE};

      P02_PeriodSave   ADD { src1=REM,src2=ZERO,dest=IMM,remote=P02_Period,data=0};

      P02_DJZ        DJZ  { next=P02_Add,cond_addr=P02_Move,reg=A,data=8}; Anzahl Nocken zu zählen

      P02_Add   ADD { src1=REM,src2=IMM,dest=IMM,next=P02_Last,remote=P02_Period,data=0};

      P02_Move   ADD { src1=REM,src2=ZERO,dest=IMM,remote=P02_Add,data=0};Ergebnis hier speichern

      P02_ResetDJZ   MOV32 { remote=P02_DJZ,type=IMTOREG&REM,reg=A,data=8};

      P02_ResetSum   MOV32 { remote=P02_Add,type=IMTOREG&REM,reg=A,data=0};

      P02_Last       BR { next=P00_Period,cond_addr=P00_Period,event=NOCOND};

      P02_Period  works fine, if I do not use (comment out)  the P02_HighTime.

      If I use the P02_Hightime there seems to be an Problem with the HR Data.

      I don’t want to use HR Share, because I need the Pins.

      For me it is ok, to have the P02_Hightime only with Low Resolution.

       Where is my mistake

    Thank you very much in advance.

    -Needhu

  • Team,

    This is an urgent question, Could I please have a feedback?

    Thank you ,

    -Needhu
  • Needhu,

    Each group has up to 32 ADC channels that can be assigned to it. There are 3 groups EVENT Group, Group1 and Group2. The TMS570LS1227 has a total of 24 ADC channels and 2 AWD1_EXT_SEL pins bonded out in the ZWT package. Each time a conversion is initiated, the device will clock in the ADC count of the channels assigned to the specified group. If there are external muxes involved, the SW will need to configure the muxes according to the intended inputs to be converted.

    So, in summary, a single group can have up to 24 channels associated with it in the LS1227 device and perform up to 24 conversions with a single instantiation of the ADC Group conversion. Through the use of the additional AWM1_EXT_SEL bits and external muxes, it is possible to extend the number of channels of the device, but each of the combinations of the AWM1_EXT_SEL bits would be effectively a new group of conversions since each would require a new conversion cycle. The same is true for the LS4357 except it has a total of 32 ADIN channels that can be chosen per group and 5 AWM1_EXT_SEL bits allowing further expansion of the number of combinations of channels (groups) that can be converted in a single ADC conversion trigger.

    Please take the time to review the ADC chapter of the TRM. This is stated pretty clearly there.

    In regard to the NHET question. Please post to a separate thread for tracking purposes and to make sure we can get the right resources looking at it. NHET programming is not a strong point for me.