整理做过的东西(电子警察)

      这个东西最前端的东西就是利用FPGA通过IO口接了一块转接板,用来采集图像的。转接板的其实就是一块芯片ICX274.要做的工作就是对这个芯片进行配置,以便得到正确的图像数据,在利用FPGA的逻辑资源进行bayer转RGB即可了。

  关于这个ICX274的的配置是很复杂的,他的芯片手册就有80多页,而且大部分还都是要看的,因为大部分都是讲配置寄存器的,总的算下来有几百个寄存器吧。在研究了大概一个多月,自己也配置了不少,但是信号不对,实验室的示波器带宽太小了,高频的方波看起来就成正选或三角波了。后来也算接到了示波器。最后这前端工作也算是完成了,在此吧配置贴出来0x0000001010,
0x0000002090
,0x0000002091
,0x000200047b
,0x000000047a
,0x0000000479
,0x0000020478
,0x09c800047f
,0x000000047e
,0x000000047d
,0x000000247c
,0x1ffe000483
,0x0000000482
,0x0000881481
,0x0178780480
,0x3ffe000453
,0x1000000452
,0x20d3069451
,0x0f00003450
,0x0002001457
,0x0002001456
,0x0000000455
,0x0168033454
,0x3ffffff45b
,0x3ffffff45a
,0x3ffffff459
,0x3ffffff458
,0x020003445f
//,0x0ED802445f
,0x005000a45e
,0x0e03fff45d
,0x020003445c
//,0x0ED800045c
,0x0000000463
,0x0000000462
,0x0000000461
,0x0000000460
,0x3ffe000467
,0x1000000466
,0x0001069465
,0x0f0010b464
,0x000200146b
,0x000200146a
,0x0000000469
,0x0168033468
,0x3ffffff46f
,0x3ffffff46e
,0x3ffffff46d
,0x008c01446c
,0x3ffffff473
,0x3ffffff472
,0x0e03fff471
,0x0200034470
//,0x0ED8000470
,0x0000000477
,0x0000000476
,0x0000000475
,0x0000000474
,0x0000000403
,0x0092013402
,0x0000000401
,0x00b6001400
,0x0000000407
,0x00fe025406
,0x0000000405
,0x00da037404
,0x000000040b
,0x00fe02540a
,0x0000000409
,0x00da037408
,0x000000040f
,0x009201340e
,0x000000040d
,0x00b600140c
,0x0000000413
,0x0000000412
,0x0000000411
,0x0000000410
,0x0000000417
,0x0000000415
,0x0000000415
,0x0000000414
,0x000000041b
,0x000000041a
,0x0000000419
,0x0000000418
,0x000000041f
,0x000000041e
,0x000000041d
,0x000000041c
,0x0000000423
,0x0000000422
,0x0000000421
,0x0000000420
,0x0000000427
,0x0000000426
,0x0000000425
,0x00fe025424
,0x000000042b
,0x000004442a
,0x0000000429
,0x0000008428
,0x000000032f
,0x000000042e
,0x000000042d
,0x000000042c
,0x0000000433
,0x0000000432
,0x0000000431
,0x0000000430
,0x0000000438
,0x0000044436
,0x0000000435
,0x0000008434
,0x000000043b
,0x000000043a
,0x0000000439
,0x0000000438
,0x000000043f
,0x000000043e
,0x000000043d
,0x000000043c
,0x0000000443
,0x0000000442
,0x0000000441
,0x0000000440
,0x0000000447
,0x0000000446
,0x0000000445
,0x0000000444
,0x000000044b
,0x000000044a
,0x0000000449
,0x0000000448
,0x000000044f
,0x000000044e
,0x000000044d
,0x000000044c
,0x1ffefff040
,0x1ffefff041
,0x1ffefff042
,0x1ffefff043
,0x1ffefff044
,0x1ffefff045
//,0x0000000043
//,0x0000000044
//,0x0000000045
,0x00000ff050
,0x09c444c051
,0x3ffffff052
,0x3ffffff053
,0x3ffffff054
,0x3ffffff055
,0x3ffffff056
,0x3ffffff057
,0x3ffffff058
,0x0000001066
,0x0186087067
,0x3ffffff068
,0x000000706d
,0x0000fff06e
,0x000000006f
,0x0000fff070
,0x000001e071
,0x0000002072
,0x0000001073
,0x0000005074
,0x0000002075
,0x0000030076
,0x0000003077
,0x0000fff078
,0x3ffefff079
,0x0000fff07a
,0x3ffefff07b
,0x000000307c
,0x0000fff07d
,0x3ffefff07e
,0x0000fff07f
,0x3ffefff080
,0x0000064005
,0x00001ec006

,0x0000004000// step 5
,0x00000600ea// step 5
,0x0000001015//step 6

,0x0000001020
,0x0000000021//178
,0x001205a022
,0x0012000031
,0x0012000032
,0x0012000033
,0x0010a00034
,0x0000003035
,0x0777777036//185
,0x0000800038
,0x0000000016
,0x0046000064
,0x0000001011//190
,0x0000001012// set 0 or 1.?
,0x0000000013//192
,0x0000001013//193
,0x0000000880//194

上面的数据包含了地址和数据,具体的已经记不清了。。悲剧,学东西一定要做好记录的习惯。

posted @ 2012-10-17 10:10  winnter  阅读(435)  评论(0编辑  收藏  举报