一个爱技术的人
11405
- 收藏
- 点赞
- 分享
- 举报
3519图像imx291输出图像严重偏色,太粉了。。。,请求帮忙看一下
本帖最后由 wfjdemmye 于 2017-2-16 22:11 编辑
3519demo板上面是配的Mipi接口,而我用输出的LVDS,sensor板是这样的输出。
LVDS配置。
combo_dev_attr_t LVDS_4lane_SENSOR_IMX290_12BIT_1080_NOWDR_ATTR =
{
.devno = 0,
.input_mode = INPUT_MODE_LVDS, /* input mode */
.phy_clk_share = PHY_CLK_SHARE_NONE,
{
.lvds_attr = {
.img_size = {1920, 1080}, // width x height
.raw_data_type = RAW_DATA_12BIT,
.wdr_mode = HI_WDR_MODE_NONE,
.sync_mode = LVDS_SYNC_MODE_SAV,
.vsync_type = {LVDS_VSYNC_NORMAL, 0, 0},
.fid_type = {LVDS_FID_NONE, HI_TRUE},
.data_endian = LVDS_ENDIAN_BIG,
.sync_code_endian = LVDS_ENDIAN_BIG,
.lane_id = {0, 1, 2, 3, -1, -1, -1, -1, -1, -1, -1, -1},
.sync_code = {
{
{0xab0, 0xb60, 0x800, 0x9d0}, // lane 0
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}},
{
{0xab0, 0xb60, 0x800, 0x9d0}, // lane 1
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}},
{
{0xab0, 0xb60, 0x800, 0x9d0}, // lane2
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}},
{
{0xab0, 0xb60, 0x800, 0x9d0}, // lane3
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
}
}
}
}
};
sensor库的寄存器配置
void sensor_LVDS_1080p30_init()
{
sensor_write_register (0x3000, 0x01); /* standby */
sensor_write_register (0x3002, 0x01); /* XTMSTA */
sensor_write_register (0x3005, 0x01); //ADBIT
sensor_write_register (0x3046, 0xe1); //配置为LVDS(根据sensor板的OMODEpin的高低情况定,我的是Fixed to High)
sensor_write_register (0x3129, 0x00); //ADBIT1
sensor_write_register (0x317c, 0x00); //ADBIT2
sensor_write_register (0x31ec, 0x0e); //ADBIT3
sensor_write_register (0x3441, 0x0c); //CSI_DT_FMT
sensor_write_register (0x3442, 0x0c); //CSI_DT_FMT
sensor_write_register (0x3007, 0x00);
sensor_write_register (0x300c, 0x00);
sensor_write_register (0x300f, 0x00);
sensor_write_register (0x3010, 0x21);
sensor_write_register (0x3012, 0x64);
sensor_write_register (0x3016, 0x09);
sensor_write_register (0x3017, 0x00);
sensor_write_register (0x3020, 0x02);
sensor_write_register (0x305c, 0x18);
sensor_write_register (0x305d, 0x03);
sensor_write_register (0x305e, 0x20);
sensor_write_register (0x305f, 0x01);
sensor_write_register (0x3070, 0x02);
sensor_write_register (0x3071, 0x11);
sensor_write_register (0x309b, 0x10);
sensor_write_register (0x309c, 0x22);
sensor_write_register (0x30a2, 0x02);
sensor_write_register (0x30a6, 0x20);
sensor_write_register (0x30a8, 0x20);
sensor_write_register (0x30aa, 0x20);
sensor_write_register (0x30ac, 0x20);
sensor_write_register (0x30b0, 0x43);
sensor_write_register (0x3119, 0x9e);
sensor_write_register (0x311c, 0x1e);
sensor_write_register (0x311e, 0x08);
sensor_write_register (0x3128, 0x05);
sensor_write_register (0x313d, 0x83);
sensor_write_register (0x3150, 0x03);
sensor_write_register (0x317e, 0x00);
sensor_write_register (0x315e, 0x1a);//INCK = 37.125 MHz : 1Ah
sensor_write_register (0x3164, 0x1a);
sensor_write_register (0x32b8, 0x50);
sensor_write_register (0x32b9, 0x10);
sensor_write_register (0x32ba, 0x00);
sensor_write_register (0x32bb, 0x04);
sensor_write_register (0x32c8, 0x50);
sensor_write_register (0x32c9, 0x10);
sensor_write_register (0x32ca, 0x00);
sensor_write_register (0x32cb, 0x04);
sensor_write_register (0x332c, 0xd3);
sensor_write_register (0x332d, 0x10);
sensor_write_register (0x332e, 0x0d);
sensor_write_register (0x3358, 0x06);
sensor_write_register (0x3359, 0xe1);
sensor_write_register (0x335a, 0x11);
sensor_write_register (0x3360, 0x1e);
sensor_write_register (0x3361, 0x61);
sensor_write_register (0x3362, 0x10);
sensor_write_register (0x33b0, 0x50);
sensor_write_register (0x33b2, 0x1a);
sensor_write_register (0x33b3, 0x04);
sensor_write_register (0x3414, 0x0a);
sensor_write_register (0x3418, 0x49);
sensor_write_register (0x3419, 0x04);
sensor_write_register (0x3444, 0x20);
sensor_write_register (0x3445, 0x25);
sensor_write_register (0x3446, 0x47);
sensor_write_register (0x3447, 0x0);
sensor_write_register (0x3448, 0x1f);
sensor_write_register (0x3449, 0x0);
sensor_write_register (0x344a, 0x17);
sensor_write_register (0x344b, 0x0);
sensor_write_register (0x344c, 0x0f);
sensor_write_register (0x344d, 0x0);
sensor_write_register (0x344e, 0x17);
sensor_write_register (0x344f, 0x0);
sensor_write_register (0x3450, 0x47);
sensor_write_register (0x3451, 0x0);
sensor_write_register (0x3452, 0x0f);
sensor_write_register (0x3453, 0x0);
sensor_write_register (0x3454, 0x0f);
sensor_write_register (0x3455, 0x0);
sensor_write_register (0x3480, 0x49);
sensor_write_register (0x3000, 0x00); /* standby */
delay_ms(20);
sensor_write_register (0x3002, 0x00); /* master mode start */
sensor_write_register (0x304b, 0x0a); /* XVSOUTSEL XHSOUTSEL */
printf("--IMX290 1080P 30fps LVDS Init OK!----\n");
bSensorInit = HI_TRUE;
return;
}
3519demo板上面是配的Mipi接口,而我用输出的LVDS,sensor板是这样的输出。
LVDS配置。
combo_dev_attr_t LVDS_4lane_SENSOR_IMX290_12BIT_1080_NOWDR_ATTR =
{
.devno = 0,
.input_mode = INPUT_MODE_LVDS, /* input mode */
.phy_clk_share = PHY_CLK_SHARE_NONE,
{
.lvds_attr = {
.img_size = {1920, 1080}, // width x height
.raw_data_type = RAW_DATA_12BIT,
.wdr_mode = HI_WDR_MODE_NONE,
.sync_mode = LVDS_SYNC_MODE_SAV,
.vsync_type = {LVDS_VSYNC_NORMAL, 0, 0},
.fid_type = {LVDS_FID_NONE, HI_TRUE},
.data_endian = LVDS_ENDIAN_BIG,
.sync_code_endian = LVDS_ENDIAN_BIG,
.lane_id = {0, 1, 2, 3, -1, -1, -1, -1, -1, -1, -1, -1},
.sync_code = {
{
{0xab0, 0xb60, 0x800, 0x9d0}, // lane 0
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}},
{
{0xab0, 0xb60, 0x800, 0x9d0}, // lane 1
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}},
{
{0xab0, 0xb60, 0x800, 0x9d0}, // lane2
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}},
{
{0xab0, 0xb60, 0x800, 0x9d0}, // lane3
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
}
}
}
}
};
sensor库的寄存器配置
void sensor_LVDS_1080p30_init()
{
sensor_write_register (0x3000, 0x01); /* standby */
sensor_write_register (0x3002, 0x01); /* XTMSTA */
sensor_write_register (0x3005, 0x01); //ADBIT
sensor_write_register (0x3046, 0xe1); //配置为LVDS(根据sensor板的OMODEpin的高低情况定,我的是Fixed to High)
sensor_write_register (0x3129, 0x00); //ADBIT1
sensor_write_register (0x317c, 0x00); //ADBIT2
sensor_write_register (0x31ec, 0x0e); //ADBIT3
sensor_write_register (0x3441, 0x0c); //CSI_DT_FMT
sensor_write_register (0x3442, 0x0c); //CSI_DT_FMT
sensor_write_register (0x3007, 0x00);
sensor_write_register (0x300c, 0x00);
sensor_write_register (0x300f, 0x00);
sensor_write_register (0x3010, 0x21);
sensor_write_register (0x3012, 0x64);
sensor_write_register (0x3016, 0x09);
sensor_write_register (0x3017, 0x00);
sensor_write_register (0x3020, 0x02);
sensor_write_register (0x305c, 0x18);
sensor_write_register (0x305d, 0x03);
sensor_write_register (0x305e, 0x20);
sensor_write_register (0x305f, 0x01);
sensor_write_register (0x3070, 0x02);
sensor_write_register (0x3071, 0x11);
sensor_write_register (0x309b, 0x10);
sensor_write_register (0x309c, 0x22);
sensor_write_register (0x30a2, 0x02);
sensor_write_register (0x30a6, 0x20);
sensor_write_register (0x30a8, 0x20);
sensor_write_register (0x30aa, 0x20);
sensor_write_register (0x30ac, 0x20);
sensor_write_register (0x30b0, 0x43);
sensor_write_register (0x3119, 0x9e);
sensor_write_register (0x311c, 0x1e);
sensor_write_register (0x311e, 0x08);
sensor_write_register (0x3128, 0x05);
sensor_write_register (0x313d, 0x83);
sensor_write_register (0x3150, 0x03);
sensor_write_register (0x317e, 0x00);
sensor_write_register (0x315e, 0x1a);//INCK = 37.125 MHz : 1Ah
sensor_write_register (0x3164, 0x1a);
sensor_write_register (0x32b8, 0x50);
sensor_write_register (0x32b9, 0x10);
sensor_write_register (0x32ba, 0x00);
sensor_write_register (0x32bb, 0x04);
sensor_write_register (0x32c8, 0x50);
sensor_write_register (0x32c9, 0x10);
sensor_write_register (0x32ca, 0x00);
sensor_write_register (0x32cb, 0x04);
sensor_write_register (0x332c, 0xd3);
sensor_write_register (0x332d, 0x10);
sensor_write_register (0x332e, 0x0d);
sensor_write_register (0x3358, 0x06);
sensor_write_register (0x3359, 0xe1);
sensor_write_register (0x335a, 0x11);
sensor_write_register (0x3360, 0x1e);
sensor_write_register (0x3361, 0x61);
sensor_write_register (0x3362, 0x10);
sensor_write_register (0x33b0, 0x50);
sensor_write_register (0x33b2, 0x1a);
sensor_write_register (0x33b3, 0x04);
sensor_write_register (0x3414, 0x0a);
sensor_write_register (0x3418, 0x49);
sensor_write_register (0x3419, 0x04);
sensor_write_register (0x3444, 0x20);
sensor_write_register (0x3445, 0x25);
sensor_write_register (0x3446, 0x47);
sensor_write_register (0x3447, 0x0);
sensor_write_register (0x3448, 0x1f);
sensor_write_register (0x3449, 0x0);
sensor_write_register (0x344a, 0x17);
sensor_write_register (0x344b, 0x0);
sensor_write_register (0x344c, 0x0f);
sensor_write_register (0x344d, 0x0);
sensor_write_register (0x344e, 0x17);
sensor_write_register (0x344f, 0x0);
sensor_write_register (0x3450, 0x47);
sensor_write_register (0x3451, 0x0);
sensor_write_register (0x3452, 0x0f);
sensor_write_register (0x3453, 0x0);
sensor_write_register (0x3454, 0x0f);
sensor_write_register (0x3455, 0x0);
sensor_write_register (0x3480, 0x49);
sensor_write_register (0x3000, 0x00); /* standby */
delay_ms(20);
sensor_write_register (0x3002, 0x00); /* master mode start */
sensor_write_register (0x304b, 0x0a); /* XVSOUTSEL XHSOUTSEL */
printf("--IMX290 1080P 30fps LVDS Init OK!----\n");
bSensorInit = HI_TRUE;
return;
}
我来回答
回答14个
时间排序
认可量排序
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2019-11-19 14:23:03
-
2019-01-21 10:50:09
-
2019-08-14 10:44:34
-
2018-04-12 17:40:50
-
2017-06-02 14:00:19
-
2016-11-24 11:28:46
-
2016-09-02 09:30:38
-
2018-07-30 13:47:07
-
2019-01-07 16:38:30
-
2018-12-07 10:16:21
-
2018-12-17 15:46:14
-
2019-01-12 11:01:48
-
2018-11-16 15:02:49
-
2021-04-08 18:02:18
-
2019-12-24 21:36:09
-
2018-12-10 13:42:26
-
2018-11-29 10:36:53
-
2018-12-21 09:37:32
-
2018-12-27 16:40:39
无更多相似问答 去提问
点击登录
-- 积分
-- 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币)
取消
确认