|
楼主 |
发表于 2019-5-13 09:58:34
|
显示全部楼层
ov5640摄像头旋转问题:
3820寄存器控制上下翻转:默认值40(不翻转),47(上下翻转)
3821寄存器控制左右镜像:默认值00(左右镜像),07(不镜像)
rom[211][23:0] = 24'h3820_40; // default:40 flip
rom[212][23:0] = 24'h3821_07; // default:00 no mirror
4300寄存器控制16数据的高低字节(正常值是:0x61,调换后是0x6F)
0x6: RGB565
Bit[3:0]: Output sequence
0x0: {b[4:0],g[5:3]},
{g[2:0],r[4:0]}
0x1: {r[4:0],g[5:3]},
{g[2:0],b[4:0]}
0x2: {g[4:0],r[5:3]},
{r[2:0],b[4:0]}
0x3: {b[4:0],r[5:3]},
{r[2:0],g[4:0]}
0x4: {g[4:0],b[5:3]},
{b[2:0],r[4:0]}
0x5: {r[4:0],b[5:3]},
{b[2:0],g[4:0]}
0x6~0xE: Not allowed
0xF: {g[2:0],b[4:0]},
{r[4:0],g[5:3]}
|
|