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: Reading discrete pins via EMIF Module

Part Number: TMS570LC4357


Tool/software:

Hi all,

How we can get discrete signals with EMIF module. We want to read 8 Discrete signal from this module might be in the future we will use many of this module. Than I guess we will use multiplexer architecture.

If you have a example code do not hesitate to share with us.

Best Regards,

Furkan

  • Hi Furkan,

    What do you mean by discrete signal, can you elaborate your requirement more clearly.

    The primary purpose of EMIF is to interface external memories of type synchronous and asynchronous. So, please elaborate your requirement and i will analyze and let you know whether it is possible or not.

    --

    Thanks & regards,
    Jagadish.

  • Hi jagadish,

    We want to read input output signals with EMIF module. I called general I/O signals as discrete signals. The purpose of using EMIF here is multiple I/O read or write at one time.

    Best Regards,

    Furkan

  • Hi Furkan,

    I created one example for EMIF pins as GIO inputs.

    EMIF_As_GIO_LC4357.zip

    In this example i am reading the GIO status from EMIF data lines for every one second i am displaying corresponding values on UART terminal.

    Here is the output on terminal:

    As you can see when i connected GND to some terminal the corresponding value becomes zero.

    On my launch pad EMIF pins were terminated to very small connector very i can't be able to distinguish pins, that is the reason i can't able to change the status of specific pins you can try at your end.

    Also regarding GIO output, we can do it in similar way, just need to change the code to write into the memory. But my only concern here is that the instantaneous output of GIO may not be hold until next write

    It might be hold for few clocks only like as shown below:

    Just try to test it on your end and it is not possible to do this test on my setup. If output is not holding until for next write, then we might need place some latch in between EMIF data lines and other end device for output GIO lines.

    --
    Thanks & regards,
    Jagadish.

  • Hi jagadish,

    Thanks for explanation. How we can configure EMIF Address pins?

    We did not see any reference about EMIF Address pins.

    Best Regards,

    Furkan

  • Hi Furkan,

    How we can configure EMIF Address pins?

    We did not see any reference about EMIF Address pins.

    As per my knowledge, we cannot use address pins as GIO, because they are not bidirectional pins, and they are only outputs as shown in below:

    Whereas data pins are bi-directional pins so we can use them as GIO's

    And to operate data pins as GIO inputs, we no need to configure the address pins because we can just read the any address range with in EMIF to get the GIO status on data lines, so we can just ignore their configuration here.

    --
    Thanks & regards,
    Jagadish.

  • Hi jagadish,

    Actually, we want some addresses to reach different devices. In summary, we do not want to use address pins as GIO; we only want to use them as address selection.

    Best Regards,

    Furkan

  • Hi Furkan,

    Actually, we want some addresses to reach different devices. In summary, we do not want to use address pins as GIO; we only want to use them as address selection.

    That will be possible, for this just try to configure the address pins in the pinmux table and try to access the corresponding address. If you try to access the address, then corresponding address will be transmitted to address lines of EMIF.

    --
    Thanks & regards,
    Jagadish.