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.

TM4C129 EPI ALE

Hello,

I've been using this code to configure the EPI with EPIS030 as ALE strobe high. My signal capture shows it as strobe low. 


MAP_EPIModeSet(EPI0_BASE, EPI_MODE_HB8);

MAP_EPIDividerSet(EPI0_BASE, 0x1);

MAP_EPIAddressMapSet(EPI0_BASE, (EPI_FLASH_SIZE | EPI_ADDR_RAM_BASE));

MAP_EPIConfigHB8Set(EPI0_BASE, EPI_HB8_MODE_ADMUX, EPI_HB8_ALE_HIGH);

Might someone tell me what I am missing.

Thank you,

Victor

  • Hello Victor

    And when you make the parameter as EPI_HB8_ALE_LOW, then does it strobe high?

    Please provide the snapshot of the register window in CCS for EPI.
  • Hello Amit,

    Thanks for the insight on the EPI register dump.

    Here are the before and after dumps for

    MAP_EPIConfigHB8Set(EPI0_BASE, EPI_HB8_MODE_ADMUX, (EPI_HB8_RDWAIT_0 | EPI_HB8_ALE_HIGH));

    EPI0 External Peripheral Interface register offsets
    EPI_CFG 0x00000012 EPI Configuration [Memory Mapped]
    EPI_BAUD 0x00000001 EPI Main Baud Rate [Memory Mapped]
    EPI_BAUD2 0x00000000 EPI Main Baud Rate [Memory Mapped]
    EPI_HB16CFG 0x0008FF00 EPI Host-Bus 16 Configuration [Memory Mapped]
    EPI_GPCFG 0x0008FF00 EPI General-Purpose Configuration [Memory Mapped]
    EPI_SDRAMCFG 0x0008FF00 EPI SDRAM Configuration [Memory Mapped]
    EPI_HB8CFG 0x0008FF00 EPI Host-Bus 8 Configuration [Memory Mapped]
    EPI_HB8CFG2 0x00080000 EPI Host-Bus 8 Configuration 2 [Memory Mapped]
    EPI_HB16CFG2 0x00080000 EPI Host-Bus 16 Configuration 2 [Memory Mapped]

    EPI0 External Peripheral Interface register offsets
    EPI_CFG 0x00000012 EPI Configuration [Memory Mapped]
    EPI_BAUD 0x00000001 EPI Main Baud Rate [Memory Mapped]
    EPI_BAUD2 0x00000000 EPI Main Baud Rate [Memory Mapped]
    EPI_HB16CFG 0x08000000 EPI Host-Bus 16 Configuration [Memory Mapped]
    EPI_GPCFG 0x08000000 EPI General-Purpose Configuration [Memory Mapped]
    EPI_SDRAMCFG 0x08000000 EPI SDRAM Configuration [Memory Mapped]
    EPI_HB8CFG 0x08000000 EPI Host-Bus 8 Configuration [Memory Mapped]
    EPI_HB8CFG2 0x00000000 EPI Host-Bus 8 Configuration 2 [Memory Mapped]
    EPI_HB16CFG2 0x00000000 EPI Host-Bus 16 Configuration 2 [Memory Mapped]
    EPI_ADDRMAP 0x0000000D EPI Address Map [Memory Mapped]

    The default Host8 seems to be working for me so I'll go with that for now and not use MAP_EPIConfigHB8Set. Let me know if you need anything more from me.

    Thanks,

    Victor
  • Hello Victor

    And can you show a signal capture? I checked one of my older code

    EPIModeSet(EPI0_BASE, EPI_MODE_HB8);

    EPIDividerSet(EPI0_BASE, 0x1);

    EPIConfigHB8CSSet(EPI0_BASE, 0, (EPI_HB8_CSCFG_ALE_SINGLE_CS | EPI_HB8_ALE_HIGH | EPI_HB8_WRWAIT_0 |
    EPI_HB8));

    And this works...