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 eCAPx, eQEPx

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Hello

Regarding the control of special multiplexed options for eCAPx, there are discrepancies between the documents SPNS195C (JUNE 2016) in "Table 7-8. Device-Level Input Connection to eCAPx Modules" and SPNU563A (March 2018) in "Table 6-8. Controls for eCAPx Inputs" of the TMS570LC43x for the setting of PINMMR169 and PINMMR170.

Is the correct setting for using the double-VCLK3-synchronised input with no filter 01b respectively bits 0, 8, 16, 24 are set to 1, e.g. PINMMR169[1:0] = 01 analogoue to eQEPx modules (e.g. PINMMR170[17:16] = 01)?

Thanks in advance for the support

Mathieu

  • Hi Mathieu,

    First of all, thanks for pointing out this discrepancy.

    Is the correct setting for using the double-VCLK3-synchronised input with no filter 01b respectively bits 0, 8, 16, 24 are set to 1, e.g. PINMMR169[1:0] = 01 analogoue to eQEPx modules (e.g. PINMMR170[17:16] = 01)?

    No, this is not correct.

    Actually, the TRM table (Table 6-8. Controls for eCAPx Inputs) was correct and datasheet table was wrong(Input Connection to eCAPx Modules).

    I am saying this because i tested with HALCoGen generated code.

    As you can see i enabled filters for eCAP1, eCAP2 and eCAP3. I disabled filters for eCAP4, eCAP5 and eCAP6.

    The above is the corresponding generated code.

    After executing the code i got following values to the PINMMR169 and PINMMR170 registers.

    PINMMR169 = 0x00020202

    PINMMR170 = 0x00000000

    If we enable the filter then eCAPx value is equal to the 0x2

    And if we disable the filter then eCAPx value is equal to the 0x0

    So, in your case if you want to select no filter for eCAP0, eCAP1, eCAP2 and eCAP3, then you just need to write 0x0 to the PINMMR169 register.

    We will correct this typo in next version of datasheet.

    --

    Thanks & regards,
    Jagadish.