資源簡介
本項目是基于FPGA的視頻采集系統(tǒng),使用CCD攝像頭采集視頻數(shù)據(jù),IIc總線傳輸,使用niosII編寫的Sram和IIc總線協(xié)議,F(xiàn)IFO進行數(shù)據(jù)緩存?zhèn)鬏數(shù)絆PD投影儀。完成視頻的采集。壓縮包包括工程所有代碼,以及IP核的編寫,以及用到的資料和論文。
代碼片段和文件信息
/*
?*?“Hello?World“?example.
?*
?*?This?example?prints?‘Hello?from?Nios?II‘?to?the?STDOUT?stream.?It?runs?on
?*?the?Nios?II?‘standard‘?‘full_featured‘?‘fast‘?and?‘low_cost‘?example
?*?designs.?It?runs?with?or?without?the?MicroC/OS-II?RTOS?and?requires?a?STDOUT
?*?device?in?your?system‘s?hardware.
?*?The?memory?footprint?of?this?hosted?application?is?~69?kbytes?by?default
?*?using?the?standard?reference?design.
?*
?*?For?a?reduced?footprint?version?of?this?template?and?an?explanation?of?how
?*?to?reduce?the?memory?footprint?for?a?given?application?see?the
?*?“small_hello_world“?template.
?*
?*/
#include?
#include
#include“system.h“
#include“sopc.h“
#include“iic.h“
void?cmos_port()
{
OE->DATA=0;
RESET->DATA=0;
TRIGGER->DATA=0;
STANDBY->DATA=0;
usleep(10000);
RESET->DATA=1;
SYNC_RESET->DATA=0;
}
void?cmos_soft_reset()
{
cmos_wr(0xba0x0d0x0001);
usleep(10000);
cmos_wr(0xba0x0d0x0000);
}
void?cmos_cfg()
{
// unsigned?short?int?dat=0;
cmos_wr(0xba0x010x0110); //0x0110
cmos_wr(0xba0x020x00d4); //0X00d4
cmos_wr(0xba0x1e0x8000);
// cmos_wr(0xba0x200x1117);
cmos_wr(0xba0x030x01DF);
cmos_wr(0xba0x040x0355);
cmos_wr(0xba0x050x00ff);
cmos_wr(0xba0x060x01e0);
cmos_wr(0xba0x090x0019);
// cmos_wr(0xba0x070x0042);
// cmos_wr(0xba0x320x0004);
cmos_wr(0xba0x350x0060);
}
int?main()
{
unsigned?short?int?dat;
cmos_port();
port_init();
cmos_soft_reset();
dat=cmos_read(0xba0x00);
printf(“chip?id?is?%d\n“dat);
usleep(100000);
SYNC_RESET->DATA=1;
cmos_cfg();
return?0;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????69??2015-10-04?21:04??time_test\.sopc_builder\filters.xm
?????文件??????12339??2015-10-04?21:05??time_test\.sopc_builder\install.ptf
?????文件??????29853??2015-10-04?21:04??time_test\.sopc_builder\install2.ptf
?????文件????????610??2015-10-04?21:06??time_test\.sopc_builder\preferences.xm
?????目錄??????????0??2015-10-06?19:16??time_test\.sopc_builder
?????文件????????840??2015-10-04?21:06??time_test\cpu.ocp
?????文件???????3218??2015-10-04?21:06??time_test\cpu.sdc
?????文件?????376144??2015-10-04?21:06??time_test\cpu.v
?????文件???????2392??2015-10-04?21:06??time_test\cpu_bht_ram.mif
?????文件???????1625??2015-10-04?21:06??time_test\cpu_ic_tag_ram.mif
?????文件???????6749??2015-10-04?21:06??time_test\cpu_jtag_debug_module_sysclk.v
?????文件???????7927??2015-10-04?21:06??time_test\cpu_jtag_debug_module_tck.v
?????文件???????9332??2015-10-04?21:06??time_test\cpu_jtag_debug_module_wrapper.v
?????文件???????6105??2015-10-04?21:06??time_test\cpu_mult_cell.v
?????文件???????5878??2015-10-04?21:06??time_test\cpu_ociram_default_contents.mif
?????文件???????1328??2015-10-04?21:06??time_test\cpu_oci_test_bench.v
?????文件????????600??2015-10-04?21:06??time_test\cpu_rf_ram_a.mif
?????文件????????600??2015-10-04?21:06??time_test\cpu_rf_ram_b.mif
?????文件??????30509??2015-10-04?21:06??time_test\cpu_test_bench.v
?????文件???????1629??2015-10-04?18:06??time_test\data_trans.bsf
?????文件????????196??2015-10-04?18:06??time_test\data_trans.V
?????文件??????51220??2015-10-04?21:08??time_test\db\altsyncram_0a02.tdf
?????文件??????30109??2015-10-04?21:08??time_test\db\altsyncram_41b1.tdf
?????文件??????15644??2015-10-04?18:06??time_test\db\altsyncram_6m31.tdf
?????文件??????15676??2015-10-05?14:26??time_test\db\altsyncram_8m31.tdf
?????文件??????36899??2015-10-04?21:08??time_test\db\altsyncram_b7f1.tdf
?????文件???????6366??2015-10-04?21:08??time_test\db\altsyncram_bpf1.tdf
?????文件??????36899??2015-10-04?21:08??time_test\db\altsyncram_c7f1.tdf
?????文件??????37789??2015-10-04?21:08??time_test\db\altsyncram_cjd1.tdf
?????文件??????51180??2015-10-04?21:08??time_test\db\altsyncram_f572.tdf
............此處省略881個文件信息
評論
共有 條評論