Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

How to store file from RS232 to SDRAM/FLASH/SRAM ?

Hi everyone, do you know how to store file from RS232 to SDRAM/SRAM/Flash?

Thank you very much.

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    This is for SRAM:

    1. the RS232 should pass 1'st the RS232 to LVTTL or LVCMOS by hardware

    2. then, in FPGA you may instantiate UART (with the right settings and BOUD rate).

    3. Then, when you get the octets, each octet should be written into SRAM (produce WR pulse) and address counter. should be incremented to next sample location.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thank for your ans... can i have any reference of it? I am a beginner of it.. Thank you very much ..

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The lrvrl converter may be the following:

    http://focus.ti.com/lit/ds/symlink/trsf3221e.pdf

    for UART.... you should write it or get something like this:

    http://soursecodes.blogspot.com/

    You need only the RX part and the modules which serve it...

    For writing into SRAM look at the DPR specification. It is usually like this:

    CLK: ____________|--------------

    _________

    xxxxxxxxxx WR DATA xxxxxxxxxxx

    -------------

    _________

    xxxxxxxxxxx WR ADDR xxxxxxxxxxx

    -------------

    WR_EN ____|-----------|__________