Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

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

Altera_Forum
Honored Contributor II
1,973 Views

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

 

Thank you very much.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
828 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
828 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
828 Views

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 ____|-----------|__________
0 Kudos
Reply