can anyone have a look in this coding.....my project using 2 de2-70 board. i want to send data captured from one de2-70 board to another de2-70 board by using rs232. anyone have done this before?urgent..can share some coding here?
链接已复制
3 回复数
How?? there is the data...how to send to out from one board to another board or how u do..any module?rs232 module?
Sdram_Control_4Port sdram0 ( // HOST Side .REF_CLK(iCLK_50), .RESET_N(1'b1), .CLK(sdram_ctrl_clk), // FIFO Write Side 1 image 1 .WR1_DATA({sCCD_G[11:7], sCCD_B[11:2]}), .WR1(sCCD_DVAL), .WR1_ADDR(0), .WR1_MAX_ADDR(800*480), .WR1_LENGTH(9'h100), .WR1_LOAD(!DLY_RST_0), .WR1_CLK(CCD_PIXCLK), // FIFO Read Side 1 .RD1_DATA(Read_DATA1), .RD1(Read), .RD1_ADDR(0), .RD1_MAX_ADDR(800*480), .RD1_LENGTH(9'h100), .RD1_LOAD(!DLY_RST_0), .RD1_CLK(~ltm_nclk), // SDRAM Side .SA(oDRAM0_A[11:0]), .BA(oDRAM0_BA), .CS_N(oDRAM0_CS_N), .CKE(oDRAM0_CKE), .RAS_N(oDRAM0_RAS_N), .CAS_N(oDRAM0_CAS_N), .WE_N(oDRAM0_WE_N), .DQ(DRAM_DQ[15:0]), .DQM({oDRAM0_UDQM1,oDRAM0_LDQM0}) ); Sdram_Control_4Port sdram1 ( // HOST Side .REF_CLK(iCLK_50), .RESET_N(1'b1), .CLK(sdram_ctrl_clk), // FIFO Write Side 1 .WR1_DATA({sCCD_G[6:2], sCCD_R[11:2]}), .WR1(sCCD_DVAL), .WR1_ADDR(0), .WR1_MAX_ADDR(800*480), .WR1_LENGTH(9'h100), .WR1_LOAD(!DLY_RST_0), .WR1_CLK(CCD_PIXCLK), // FIFO Read Side 1 .RD1_DATA(Read_DATA2), .RD1(Read), .RD1_ADDR(0), .RD1_MAX_ADDR(800*480), .RD1_LENGTH(9'h100), .RD1_LOAD(!DLY_RST_0), .RD1_CLK(~ltm_nclk), // SDRAM Side .SA(oDRAM1_A[11:0]), .BA(oDRAM1_BA), .CS_N(oDRAM1_CS_N), .CKE(oDRAM1_CKE), .RAS_N(oDRAM1_RAS_N), .CAS_N(oDRAM1_CAS_N), .WE_N(oDRAM1_WE_N), .DQ(DRAM_DQ[31:16]), .DQM({oDRAM1_UDQM1,oDRAM1_LDQM0}) );Hi cycy, i found this link that could help you but it is for the DE2 board.
http://www.johnloomis.org/digitallab/rs232/rs232lab.html I have tested it with my DE2 board. After you have download the code into your board you can also use this to connect your board to your pc .(In my case i use usb to serial converter). The program i use to transmit the data from pc are free program called Realterm. http://realterm.sourceforge.net/ This program can submit data to the board and also displays what the board has sent to your pc.