qn1513845276

qn1513845276

0个粉丝

3

问答

0

专栏

0

资料

qn1513845276  发布于  2018-02-12 17:52:51
采纳率 0%
3个问答
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
但是问题依然没有解决

哪位有遇到过这种问题,请教
我来回答
回答12个
时间排序
认可量排序

_hellotan

7个粉丝

14

问答

0

专栏

0

资料

_hellotan 2018-02-28 18:00:28
认可0
配置不对吧
  sensor_write_register (0x209, 0x02)  
改成2 试下

qn1513845276

0个粉丝

3

问答

0

专栏

0

资料

qn1513845276 2018-03-05 11:23:58
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=84747&ptid=38916]_hellotan 发表于 2018-2-28 18:00[/url]
配置不对吧
  sensor_write_register (0x209, 0x02)  
改成2 试下[/quote]

已经解决了
sensor_write_register (0x503, 0x02);
设置错误

规格书在另外一页有写明寄存器是7:4位
所以应该是 sensor_write_register (0x503, 0x20);

_hellotan

7个粉丝

14

问答

0

专栏

0

资料

_hellotan 2018-03-14 14:23:01
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=84907&ptid=38916]qn1513845276 发表于 2018-3-5 11:23[/url]
已经解决了
sensor_write_register (0x503, 0x02);
设置错误
[/quote]

请问你的185 图像有没有黑边了

qn1513845276

0个粉丝

3

问答

0

专栏

0

资料

qn1513845276 2018-03-14 15:40:19
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=85329&ptid=38916]_hellotan 发表于 2018-3-14 14:23[/url]
请问你的185 图像有没有黑边了[/quote]

没发现有黑边的问题

_hellotan

7个粉丝

14

问答

0

专栏

0

资料

_hellotan 2018-03-14 16:46:37
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=85333&ptid=38916]qn1513845276 发表于 2018-3-14 15:40[/url]
没发现有黑边的问题[/quote]

你是MIPI  还是LVDS

qn1513845276

0个粉丝

3

问答

0

专栏

0

资料

qn1513845276 2018-03-15 09:38:37
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=85336&ptid=38916]_hellotan 发表于 2018-3-14 16:46[/url]
你是MIPI  还是LVDS[/quote]

我的是mipi

_hellotan

7个粉丝

14

问答

0

专栏

0

资料

_hellotan 2018-03-15 11:01:20
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=85351&ptid=38916]qn1513845276 发表于 2018-3-15 09:38[/url]
我的是mipi[/quote]

我也MIPI 输出左边有黑边 VO 输出

qn1513845276

0个粉丝

3

问答

0

专栏

0

资料

qn1513845276 2018-03-15 14:24:21
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=85356&ptid=38916]_hellotan 发表于 2018-3-15 11:01[/url]
我也MIPI 输出左边有黑边 VO 输出[/quote]

是不是有东西遮住了,你offset X看一下

_hellotan

7个粉丝

14

问答

0

专栏

0

资料

_hellotan 2018-03-17 18:24:56
认可0
本帖最后由 _hellotan 于 2018-3-17 18:27 编辑

[quote][url=forum.php?mod=redirect&goto=findpost&pid=85369&ptid=38916]qn1513845276 发表于 2018-3-15 14:24[/url]
是不是有东西遮住了,你offset X看一下[/quote]

但是 我在VI_DEV_ATTR_S  设置
    HI_S32 s32X;
    HI_S32 s32Y;
    HI_U32 u32Width;
    HI_U32 u32Height;
    s32X  s32Y 就没有VI 中断,   如果为0  就正常    。

     /* DEV CROP */
        {10, 0, 1920, 1080}  设置 就没有中断了  ,         

     /* DEV CROP */
        {0, 0, 1920, 1080} 这样就正常。

qn1513845276

0个粉丝

3

问答

0

专栏

0

资料

qn1513845276 2018-03-19 09:53:30
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=85464&ptid=38916]_hellotan 发表于 2018-3-17 18:24[/url]
但是 我在VI_DEV_ATTR_S  设置
    HI_S32 s32X;
    HI_S32 s32Y;
[/quote]

你通过SAMPLE_COMM_VI_StartDev这里改试一下

_hellotan

7个粉丝

14

问答

0

专栏

0

资料

_hellotan 2018-03-20 17:37:51
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=85473&ptid=38916]qn1513845276 发表于 2018-3-19 09:53[/url]
你通过SAMPLE_COMM_VI_StartDev这里改试一下[/quote]

试了也是一样的。没有中断了

_hellotan

7个粉丝

14

问答

0

专栏

0

资料

_hellotan 2018-03-21 11:13:46
认可0
本帖最后由 _hellotan 于 2018-3-21 11:44 编辑

输入错了.......  不能删除这个回复了。
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区