3840
- 收藏
- 点赞
- 分享
- 举报
请教IMX185 binning竖条纹的问题
按imx185 规格书配置的寄存器,图像有竖条纹
寄存器配置
{
/* imx185 1080p30 */
sensor_write_register (0x200, 0x01); /* standby *///BINNING
sensor_write_register (0x205, 0x01); /* ADBIT=1(12-bit), STD12EN=0*///BINNING
sensor_write_register (0x206, 0x33); /* MODE: All-pix scan *///BINNING
sensor_write_register (0x207, 0x00); /* WINMODE: HD 1080p *///BINNING
sensor_write_register (0x209, 0x01); /* FRSEL[1:0] 2h:25fps;1h:30fps*///BINNING
sensor_write_register (0x218, 0x94); /* VMAX[7:0] *///BINNING
sensor_write_register (0x219, 0x02); /* VMAX[15:8] *///BINNING
sensor_write_register (0x21a, 0x00); /* VMAX[16] *///BINNING
sensor_write_register (0x21b, 0xA6); /* HMAX[7:0] *///BINNING
sensor_write_register (0x21c, 0x0E); /* HMAX[15:8] *///BINNING
sensor_write_register (0x244, 0xE1); /* ODBIT=1, OPORTSEL=0xE :CSI-2 */
/*diference with Built-in WDR*/
sensor_write_register (0x20C, 0x00); /* WDMODE 2h:Built-in WDR */
sensor_write_register (0x20F, 0x01); /* WDC_CMPEN 4h:Output compressed */
sensor_write_register (0x210, 0x39); /* */
sensor_write_register (0x212, 0x50); /* */
sensor_write_register (0x21E, 0x01); /* */
sensor_write_register (0x265, 0x20); /* */
sensor_write_register (0x284, 0x00); /* */
sensor_write_register (0x286, 0x01); /* */
sensor_write_register (0x2CF, 0xD1); /* */
sensor_write_register (0x2D0, 0x1B); /* */
sensor_write_register (0x2D2, 0x5F); /* */
sensor_write_register (0x2D3, 0x00); /* */
/*before not set*/
sensor_write_register (0x31D, 0x0A);
sensor_write_register (0x323, 0x0F);
sensor_write_register (0x347, 0x87);
sensor_write_register (0x3E1, 0x9E);
sensor_write_register (0x3E2, 0x01);
sensor_write_register (0x3E5, 0x05);
sensor_write_register (0x3E6, 0x05);
sensor_write_register (0x3E7, 0x3A);
sensor_write_register (0x3E8, 0x3A);
sensor_write_register (0x503, 0x02); /* REPETITION=1 *///BINNING
sensor_write_register (0x505, 0x03); /* PHYSICAL Lane NUM 3h:4 lanes; 2h:2 lanes */
sensor_write_register (0x514, 0x06); /* OB_SIZE_V[5:0]*///BINNING
sensor_write_register (0x515, 0x01); /* NULL0_SIZE_V[5:0]*/
sensor_write_register (0x516, 0x02); /* NULL1_SIZE_V[5:0]*///BINNING
sensor_write_register (0x517, 0x02); /* NULL2_SIZE_V[5:0]*///BINNING
sensor_write_register (0x518, 0x60); /* PIC_SIZE_V[7:0]*///BINNING
sensor_write_register (0x519, 0x02); /* PIC_SIZE_V[11:8]*///BINNING
sensor_write_register (0x52c, 0x28); /* THSEXIT: Global Timing Setting30*///BINNING
sensor_write_register (0x52d, 0x20); /* TCLKPRE: Global Timing Setting*///BINNING
sensor_write_register (0x52e, 0x03); /* TLPXESC*/
sensor_write_register (0x53e, 0x0c); /* CSI_DT_FMT[7:0]*/ /* CSI_DT_FMT=0x0c0c 12bit CSI_DT_FMT=0x0a0a 10bit*/
sensor_write_register (0x53f, 0x0c); /* CSI_DT_FMT[15:8]*/
sensor_write_register (0x540, 0x03); /* CSI_LANE_MODE*/
sensor_write_register (0x543, 0x58); /* TCLK_POST*/
sensor_write_register (0x544, 0x10); /* THS_PREPARE 10*/
sensor_write_register (0x545, 0x30); /* THS_ZERO_MIN 30*/
sensor_write_register (0x546, 0x10); /* THS_TRAIL 18*/
sensor_write_register (0x547, 0x0b); /* TCLK_TRAIL_MIN 10*/
sensor_write_register (0x548, 0x08); /* TCLK_PREPARE 10*/
sensor_write_register (0x549, 0x30); /* TCLK_ZERO 48*/
sensor_write_register (0x54A, 0x20); /* TCPX*/
/* INCK , CSI-2 Serial output (INCK=37.125MHz) */
sensor_write_register (0x25C, 0x20); /* INCKSEL1*/
sensor_write_register (0x25D, 0x00); /* INCKSEL2*/
sensor_write_register (0x25E, 0x18); /* INCKSEL3*/
sensor_write_register (0x25F, 0x00); /* INCKSEL4*/
sensor_write_register (0x263, 0x74); /* INCKSEL574h*///BINNING
sensor_write_register (0x541, 0x20); /* INCK_FREQ[7:0]*/
sensor_write_register (0x542, 0x25); /* INCK_FREQ[15:8]*/
sensor_write_register (0x54E, 0xb4); /* INCK_FREQ2[7:0]b4*/
sensor_write_register (0x54F, 0x01); /* INCK_FREQ2[10:8]01*/
/*gain, black level, exposure, etc.*/
sensor_write_register (0x20A, 0xF0); /* BLKLEVEL[7:0]*/
sensor_write_register (0x20B, 0x00); /* BLKLEVEL[8]*/
sensor_write_register (0x220, 0x14); /* SHS1[7:0]*/
sensor_write_register (0x221, 0x00); /* SHS1[15:8]*/
sensor_write_register (0x222, 0x00); /* SHS1[16]*/
sensor_write_register (0x214, 0x28); /* GAIN*/
/* registers must be changed */
sensor_write_register (0x403, 0xC8);
sensor_write_register (0x407, 0x54);
sensor_write_register (0x413, 0x16);
sensor_write_register (0x415, 0xF6);
sensor_write_register (0x41A, 0x14);
sensor_write_register (0x41B, 0x51);
sensor_write_register (0x429, 0xE7);
sensor_write_register (0x42A, 0xF0);
sensor_write_register (0x42B, 0x10);
sensor_write_register (0x431, 0xE7);
sensor_write_register (0x432, 0xF0);
sensor_write_register (0x433, 0x10);
sensor_write_register (0x43C, 0xE8);
sensor_write_register (0x43D, 0x70);
sensor_write_register (0x443, 0x08);
sensor_write_register (0x444, 0xE1);
sensor_write_register (0x445, 0x10);
sensor_write_register (0x447, 0xE7);
sensor_write_register (0x448, 0x60);
sensor_write_register (0x449, 0x1E);
sensor_write_register (0x44B, 0x00);
sensor_write_register (0x44C, 0x41);
sensor_write_register (0x450, 0x30);
sensor_write_register (0x451, 0x0A);
sensor_write_register (0x452, 0xFF);
sensor_write_register (0x453, 0xFF);
sensor_write_register (0x454, 0xFF);
sensor_write_register (0x455, 0x02);
sensor_write_register (0x457, 0xF0);
sensor_write_register (0x45A, 0xA6);
sensor_write_register (0x45D, 0x14);
sensor_write_register (0x45E, 0x51);
sensor_write_register (0x460, 0x00);
sensor_write_register (0x461, 0x61);
sensor_write_register (0x466, 0x30);
sensor_write_register (0x467, 0x05);
sensor_write_register (0x475, 0xE7);
sensor_write_register (0x481, 0xEA);
sensor_write_register (0x482, 0x70);
sensor_write_register (0x485, 0xFF);
sensor_write_register (0x48A, 0xF0);
sensor_write_register (0x48D, 0xB6);
sensor_write_register (0x48E, 0x40);
sensor_write_register (0x490, 0x42);
sensor_write_register (0x491, 0x51);
sensor_write_register (0x492, 0x1E);
sensor_write_register (0x494, 0xC4);
sensor_write_register (0x495, 0x20);
sensor_write_register (0x497, 0x50);
sensor_write_register (0x498, 0x31);
sensor_write_register (0x499, 0x1F);
sensor_write_register (0x49B, 0xC0);
sensor_write_register (0x49C, 0x60);
sensor_write_register (0x49E, 0x4C);
sensor_write_register (0x49F, 0x71);
sensor_write_register (0x4A0, 0x1F);
sensor_write_register (0x4A2, 0xB6);
sensor_write_register (0x4A3, 0xC0);
sensor_write_register (0x4A4, 0x0B);
sensor_write_register (0x4A9, 0x24);
sensor_write_register (0x4AA, 0x41);
sensor_write_register (0x4B0, 0x25);
sensor_write_register (0x4B1, 0x51);
sensor_write_register (0x4B7, 0x1C);
sensor_write_register (0x4B8, 0xC1);
sensor_write_register (0x4B9, 0x12);
sensor_write_register (0x4BE, 0x1D);
sensor_write_register (0x4BF, 0xD1);
sensor_write_register (0x4C0, 0x12);
sensor_write_register (0x4C2, 0xA8);
sensor_write_register (0x4C3, 0xC0);
sensor_write_register (0x4C4, 0x0A);
sensor_write_register (0x4C5, 0x1E);
sensor_write_register (0x4C6, 0x21);
sensor_write_register (0x4C9, 0xB0);
sensor_write_register (0x4CA, 0x40);
sensor_write_register (0x4CC, 0x26);
sensor_write_register (0x4CD, 0xA1);
sensor_write_register (0x4D0, 0xB6);
sensor_write_register (0x4D1, 0xC0);
sensor_write_register (0x4D2, 0x0B);
sensor_write_register (0x4D4, 0xE2);
sensor_write_register (0x4D5, 0x40);
sensor_write_register (0x4D8, 0x4E);
sensor_write_register (0x4D9, 0xA1);
sensor_write_register (0x4EC, 0xF0);
sensor_write_register (0x200, 0x00); /* standby cancel */
usleep(21000);
sensor_write_register (0x202, 0x00); /* master mode start */
sensor_write_register (0x249, 0x0A); /* XVSOUTSEL XHSOUTSEL */
//usleep(10000);
printf("-------Sony IMX185 SensorBinning30 Initial OK!-------\n");
bSensorInit = HI_TRUE;
}
尝试更改过INCK的频率75.25M,54M
但是问题依然没有解决
哪位有遇到过这种问题,请教
寄存器配置
{
/* imx185 1080p30 */
sensor_write_register (0x200, 0x01); /* standby *///BINNING
sensor_write_register (0x205, 0x01); /* ADBIT=1(12-bit), STD12EN=0*///BINNING
sensor_write_register (0x206, 0x33); /* MODE: All-pix scan *///BINNING
sensor_write_register (0x207, 0x00); /* WINMODE: HD 1080p *///BINNING
sensor_write_register (0x209, 0x01); /* FRSEL[1:0] 2h:25fps;1h:30fps*///BINNING
sensor_write_register (0x218, 0x94); /* VMAX[7:0] *///BINNING
sensor_write_register (0x219, 0x02); /* VMAX[15:8] *///BINNING
sensor_write_register (0x21a, 0x00); /* VMAX[16] *///BINNING
sensor_write_register (0x21b, 0xA6); /* HMAX[7:0] *///BINNING
sensor_write_register (0x21c, 0x0E); /* HMAX[15:8] *///BINNING
sensor_write_register (0x244, 0xE1); /* ODBIT=1, OPORTSEL=0xE :CSI-2 */
/*diference with Built-in WDR*/
sensor_write_register (0x20C, 0x00); /* WDMODE 2h:Built-in WDR */
sensor_write_register (0x20F, 0x01); /* WDC_CMPEN 4h:Output compressed */
sensor_write_register (0x210, 0x39); /* */
sensor_write_register (0x212, 0x50); /* */
sensor_write_register (0x21E, 0x01); /* */
sensor_write_register (0x265, 0x20); /* */
sensor_write_register (0x284, 0x00); /* */
sensor_write_register (0x286, 0x01); /* */
sensor_write_register (0x2CF, 0xD1); /* */
sensor_write_register (0x2D0, 0x1B); /* */
sensor_write_register (0x2D2, 0x5F); /* */
sensor_write_register (0x2D3, 0x00); /* */
/*before not set*/
sensor_write_register (0x31D, 0x0A);
sensor_write_register (0x323, 0x0F);
sensor_write_register (0x347, 0x87);
sensor_write_register (0x3E1, 0x9E);
sensor_write_register (0x3E2, 0x01);
sensor_write_register (0x3E5, 0x05);
sensor_write_register (0x3E6, 0x05);
sensor_write_register (0x3E7, 0x3A);
sensor_write_register (0x3E8, 0x3A);
sensor_write_register (0x503, 0x02); /* REPETITION=1 *///BINNING
sensor_write_register (0x505, 0x03); /* PHYSICAL Lane NUM 3h:4 lanes; 2h:2 lanes */
sensor_write_register (0x514, 0x06); /* OB_SIZE_V[5:0]*///BINNING
sensor_write_register (0x515, 0x01); /* NULL0_SIZE_V[5:0]*/
sensor_write_register (0x516, 0x02); /* NULL1_SIZE_V[5:0]*///BINNING
sensor_write_register (0x517, 0x02); /* NULL2_SIZE_V[5:0]*///BINNING
sensor_write_register (0x518, 0x60); /* PIC_SIZE_V[7:0]*///BINNING
sensor_write_register (0x519, 0x02); /* PIC_SIZE_V[11:8]*///BINNING
sensor_write_register (0x52c, 0x28); /* THSEXIT: Global Timing Setting30*///BINNING
sensor_write_register (0x52d, 0x20); /* TCLKPRE: Global Timing Setting*///BINNING
sensor_write_register (0x52e, 0x03); /* TLPXESC*/
sensor_write_register (0x53e, 0x0c); /* CSI_DT_FMT[7:0]*/ /* CSI_DT_FMT=0x0c0c 12bit CSI_DT_FMT=0x0a0a 10bit*/
sensor_write_register (0x53f, 0x0c); /* CSI_DT_FMT[15:8]*/
sensor_write_register (0x540, 0x03); /* CSI_LANE_MODE*/
sensor_write_register (0x543, 0x58); /* TCLK_POST*/
sensor_write_register (0x544, 0x10); /* THS_PREPARE 10*/
sensor_write_register (0x545, 0x30); /* THS_ZERO_MIN 30*/
sensor_write_register (0x546, 0x10); /* THS_TRAIL 18*/
sensor_write_register (0x547, 0x0b); /* TCLK_TRAIL_MIN 10*/
sensor_write_register (0x548, 0x08); /* TCLK_PREPARE 10*/
sensor_write_register (0x549, 0x30); /* TCLK_ZERO 48*/
sensor_write_register (0x54A, 0x20); /* TCPX*/
/* INCK , CSI-2 Serial output (INCK=37.125MHz) */
sensor_write_register (0x25C, 0x20); /* INCKSEL1*/
sensor_write_register (0x25D, 0x00); /* INCKSEL2*/
sensor_write_register (0x25E, 0x18); /* INCKSEL3*/
sensor_write_register (0x25F, 0x00); /* INCKSEL4*/
sensor_write_register (0x263, 0x74); /* INCKSEL574h*///BINNING
sensor_write_register (0x541, 0x20); /* INCK_FREQ[7:0]*/
sensor_write_register (0x542, 0x25); /* INCK_FREQ[15:8]*/
sensor_write_register (0x54E, 0xb4); /* INCK_FREQ2[7:0]b4*/
sensor_write_register (0x54F, 0x01); /* INCK_FREQ2[10:8]01*/
/*gain, black level, exposure, etc.*/
sensor_write_register (0x20A, 0xF0); /* BLKLEVEL[7:0]*/
sensor_write_register (0x20B, 0x00); /* BLKLEVEL[8]*/
sensor_write_register (0x220, 0x14); /* SHS1[7:0]*/
sensor_write_register (0x221, 0x00); /* SHS1[15:8]*/
sensor_write_register (0x222, 0x00); /* SHS1[16]*/
sensor_write_register (0x214, 0x28); /* GAIN*/
/* registers must be changed */
sensor_write_register (0x403, 0xC8);
sensor_write_register (0x407, 0x54);
sensor_write_register (0x413, 0x16);
sensor_write_register (0x415, 0xF6);
sensor_write_register (0x41A, 0x14);
sensor_write_register (0x41B, 0x51);
sensor_write_register (0x429, 0xE7);
sensor_write_register (0x42A, 0xF0);
sensor_write_register (0x42B, 0x10);
sensor_write_register (0x431, 0xE7);
sensor_write_register (0x432, 0xF0);
sensor_write_register (0x433, 0x10);
sensor_write_register (0x43C, 0xE8);
sensor_write_register (0x43D, 0x70);
sensor_write_register (0x443, 0x08);
sensor_write_register (0x444, 0xE1);
sensor_write_register (0x445, 0x10);
sensor_write_register (0x447, 0xE7);
sensor_write_register (0x448, 0x60);
sensor_write_register (0x449, 0x1E);
sensor_write_register (0x44B, 0x00);
sensor_write_register (0x44C, 0x41);
sensor_write_register (0x450, 0x30);
sensor_write_register (0x451, 0x0A);
sensor_write_register (0x452, 0xFF);
sensor_write_register (0x453, 0xFF);
sensor_write_register (0x454, 0xFF);
sensor_write_register (0x455, 0x02);
sensor_write_register (0x457, 0xF0);
sensor_write_register (0x45A, 0xA6);
sensor_write_register (0x45D, 0x14);
sensor_write_register (0x45E, 0x51);
sensor_write_register (0x460, 0x00);
sensor_write_register (0x461, 0x61);
sensor_write_register (0x466, 0x30);
sensor_write_register (0x467, 0x05);
sensor_write_register (0x475, 0xE7);
sensor_write_register (0x481, 0xEA);
sensor_write_register (0x482, 0x70);
sensor_write_register (0x485, 0xFF);
sensor_write_register (0x48A, 0xF0);
sensor_write_register (0x48D, 0xB6);
sensor_write_register (0x48E, 0x40);
sensor_write_register (0x490, 0x42);
sensor_write_register (0x491, 0x51);
sensor_write_register (0x492, 0x1E);
sensor_write_register (0x494, 0xC4);
sensor_write_register (0x495, 0x20);
sensor_write_register (0x497, 0x50);
sensor_write_register (0x498, 0x31);
sensor_write_register (0x499, 0x1F);
sensor_write_register (0x49B, 0xC0);
sensor_write_register (0x49C, 0x60);
sensor_write_register (0x49E, 0x4C);
sensor_write_register (0x49F, 0x71);
sensor_write_register (0x4A0, 0x1F);
sensor_write_register (0x4A2, 0xB6);
sensor_write_register (0x4A3, 0xC0);
sensor_write_register (0x4A4, 0x0B);
sensor_write_register (0x4A9, 0x24);
sensor_write_register (0x4AA, 0x41);
sensor_write_register (0x4B0, 0x25);
sensor_write_register (0x4B1, 0x51);
sensor_write_register (0x4B7, 0x1C);
sensor_write_register (0x4B8, 0xC1);
sensor_write_register (0x4B9, 0x12);
sensor_write_register (0x4BE, 0x1D);
sensor_write_register (0x4BF, 0xD1);
sensor_write_register (0x4C0, 0x12);
sensor_write_register (0x4C2, 0xA8);
sensor_write_register (0x4C3, 0xC0);
sensor_write_register (0x4C4, 0x0A);
sensor_write_register (0x4C5, 0x1E);
sensor_write_register (0x4C6, 0x21);
sensor_write_register (0x4C9, 0xB0);
sensor_write_register (0x4CA, 0x40);
sensor_write_register (0x4CC, 0x26);
sensor_write_register (0x4CD, 0xA1);
sensor_write_register (0x4D0, 0xB6);
sensor_write_register (0x4D1, 0xC0);
sensor_write_register (0x4D2, 0x0B);
sensor_write_register (0x4D4, 0xE2);
sensor_write_register (0x4D5, 0x40);
sensor_write_register (0x4D8, 0x4E);
sensor_write_register (0x4D9, 0xA1);
sensor_write_register (0x4EC, 0xF0);
sensor_write_register (0x200, 0x00); /* standby cancel */
usleep(21000);
sensor_write_register (0x202, 0x00); /* master mode start */
sensor_write_register (0x249, 0x0A); /* XVSOUTSEL XHSOUTSEL */
//usleep(10000);
printf("-------Sony IMX185 SensorBinning30 Initial OK!-------\n");
bSensorInit = HI_TRUE;
}
尝试更改过INCK的频率75.25M,54M
但是问题依然没有解决
哪位有遇到过这种问题,请教
我来回答
回答12个
时间排序
认可量排序
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
02016-06-17 22:36:42
-
2017-03-30 15:39:49
-
2016-06-29 21:16:42
-
2016-01-25 11:44:29
-
2018-04-23 10:15:42
-
2015-07-15 09:08:38
-
2017-04-12 16:42:43
-
2020-12-31 17:29:26
-
2018-10-24 17:01:41
-
2023-09-15 13:46:39
-
2015-08-13 17:57:41
-
2018-01-22 08:38:12
-
2017-06-09 18:43:22
-
2020-11-11 16:58:20
-
2017-12-05 19:42:41
-
2016-09-27 16:49:38
-
2018-03-30 17:40:50
-
2020-10-13 09:35:14
-
2019-10-17 10:38:59
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5Hi3516CV610 如何使用SD卡升级固件
-
5cat /dev/logmpp 报错 <3>[ vi] [func]:vi_send_frame_node [line]:99 [info]:vi pic queue is full!
-
50如何获取vpss chn的图像修改后发送至vo
-
5FPGA通过Bt1120传YUV422数据过来,vi接收不到数据——3516dv500
-
50SS928 运行PQtools 拼接 推到设备里有一半画面会异常
-
53536AV100的sample_vdec输出到CVBS显示
-
10海思板子mpp怎么在vi阶段改变视频数据尺寸
-
10HI3559AV100 多摄像头同步模式
-
9海思ss928单路摄像头vio中加入opencv处理并显示
-
10EB-RV1126-BC-191板子运行自己编码的程序
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认