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.

Read and Write Register used in TM4C129 IN EPI

I am new with Arm Crtex M4. i am trying to read and write data through TM4C129 to FPGA in General purpose mode of EPI.

I will use 8bit data size. so PORT H and PORT C must be used (EPIOS0-EPIOS7). My question is how to put data and to which register data must be put so that it is transferred to FPGA?

And How to read the data(which port or register must be read) ?  

  • Hello Bharath,

    The EPI uses memory mapped regions to access external devices. In this case the region could be 0x6000.0000, 0x8000.0000, 0xA000.0000 or 0xC000.0000 as configured by the EPIADDRMAP register.

    The CPU has to access the address range specified above to be able to perform read and write to the external device. As an example a write operation to 0x6000.0000 would be directed to the EPI to perform a byte access to the external device.

    Regards
    Amit
  • Hi Amith,

    Thank you for your help. I need 1 more help say If i use 0xA000.0000 address location then, how can i put data to that location?

    can i use something like this?

    1. for writing

    char *buf;

    buf=0xA0000000;

    *buf=0xFF; //i want to send data FF to FPGA 

    2. for reading

    if i use *buf value

    I know this is basics but as i am a beginner i need some help in understanding this 

  • Hello Bharath

    Yes, that is correct. You can refer to the EPI example in TivaWare where a pointer approach is taken to write and read data from the external memory

    Regards
    Amit