(1)摄像头已由厂商配置,主机未重新配置, 图片:1280×720 yuv422 10bit;
(2) 参考DS90UB96X-Q1EVM用户指南配置
print “CSI_PORT_SEL” board.WriteReg(0x32,0x01) # CSI0 select time.sleep(0.1) print “CSI_PLL_CTL” board.WriteReg(0x1f,0x02) # CSI0 800mbps time.sleep(0.1) print “CSI_EN” board.WriteReg(0x33,0x1) # CSI_EN & CSI0 4L time.sleep(0.1) print “FWD_PORT” board.WriteReg(0x20,0xe0) # forwarding of RX 0 to CSI0 time.sleep(0.1) print “FPD3_PORT_SEL” board.WriteReg(0x4c,0x01) # RX_PORT0 time.sleep(0.1) print “enable pass throu” board.WriteReg(0x58,0x58) # enable pass throu time.sleep(0.1) board.WriteReg(0x5c,0x18) # print “SER_ALIAS_ID 0x5c value “, hex(board.ReadReg(0x5c)) time.sleep(0.1) board.WriteReg(0x5d,0x60) # print “SlaveID[0] 0x5d value “, hex(board.ReadReg(0x5d)) time.sleep(0.1) board.WriteReg(0x65,0x60) # print “SlaveAlias[0] 0x65 value “, hex(board.ReadReg(0x65)) time.sleep(0.1) print “FV_POLARITY” board.WriteReg(0x7c,0x01) # FV active low time.sleep(0.1) print “YUV422 DT” board.WriteReg(0x70,0x1f) # VC0 and CSI0 datatype 0x1f yuv422_10b time.sleep(0.1) print “FPD_MODE” board.WriteReg(0x6d,0x7f) # 913A 10-bit mode time.sleep(0.1)(3)采集图像
2. 操作流程(1) sensor已经初始化,因为在934并行输入上测试它: soc可以从934捕获正常图像,测量仅[D0~D7]有数据:
a.示意图:
b. 没有配置934,使用默认的reg,数据仍然可以正常捕获
open 934 device: /dev/i2c-2, chip_addr: 0x30 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F —————————————————- 00 | 60 00 1e 10 cc 01 00 fe 1c 10 7a 7a 01 b9 28 7f 10 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 0a 20 | 30 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30 | 00 00 00 00 40 00 00 00 00 00 00 01 14 6f 00 40 40 | 00 86 74 01 00 00 00 00 00 00 00 12 00 03 04 25 50 | 55 00 00 00 00 00 00 00 18 00 00 ba 00 00 00 00 60 | 00 00 00 00 00 00 00 00 00 00 00 00 00 7f 88 88 70 | 2b 2c e4 00 00 00 00 c5 00 01 00 00 20 00 00 00 80 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 90 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a0 | 02 0f 00 00 08 00 00 00 00 00 00 00 00 00 00 00 b0 | 08 14 1f 08 25 00 08 00 8f 33 03 74 80 00 00 00 c0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 d0 | 00 43 94 05 60 f4 00 00 00 00 00 00 00 00 00 00 e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f0 | 5f 55 42 39 33 34 00 00 00 00 00 00 00 00 00 00(2) 从上面的测试中可以看到 934的输出是yuv422-8-bit 964-mipi的输出也是yuv422-8-bit SOC只支持8bit (MEDIA_BUS_FMT_UYVY8_2X8):
3. 修改并行传输高低位修改 Raw 10 8位模式: 0x7c寄存器[7:6] 使用低8位的8位处理 捕获图像正常;
4. 硬件注意事项确保只使用连接到REFCLK输入的振荡器 TESTEN销钉必须系在GND上。 为了只使用8位,需要正确地配置寄存器0x7C[7:6]
5. 如何通过解串器判断是否连接摄像头如何获取摄像头是否插好,可以判断哪一个没有连接到摄像头
对于RX0,您需要选择Port0 ==> reg 0x4C = 0x01,然后读取寄存器0x4D[0] 对于RX1,你需要选择Port1 ==> reg 0x4C = 0x12,然后读取寄存器0x4D[0]
免责声明:文章内容来自互联网,本站不对其真实性负责,也不承担任何法律责任,如有侵权等情况,请与本站联系删除。
转载请注明出处:DS90UB964-Q1 图像采集调试 https://www.yhzz.com.cn/a/11953.html