{0,0×58,0x5e};
{0,0x5c,0x30};
#pll
{1,0×06,0x49};
{1,0×07,0xF2};
#pass through
{1,0×32,0x49};
#slave id
{1,0×39,0x34}; //sensor i2c addr = 0x34
{1,0×41,0x34};
{0,0x5d,0x34};
{0,0×65,0x34};
#CSI_ENABLE
{0,0×33,0x01};
#reset sensor
{0,0x0f,0x7f}
#Patgen Fixed Colorbar 1280x720p30WriteI2C(0x33,0x01) # CSI0 enableWriteI2C(0xB0,0x00) # Indirect Pattern Gen Registers
WriteI2C(0xB1,0x01) # PGEN_CTLWriteI2C(0xB2,0x01)WriteI2C(0xB1,0x02) # PGEN_CFGWriteI2C(0xB2,0x33)WriteI2C(0xB1,0x03) # PGEN_CSI_DIWriteI2C(0xB2,0x24)WriteI2C(0xB1,0x04) # PGEN_LINE_SIZE1WriteI2C(0xB2,0x0F)WriteI2C(0xB1,0x05) # PGEN_LINE_SIZE0WriteI2C(0xB2,0x00)WriteI2C(0xB1,0x06) # PGEN_BAR_SIZE1WriteI2C(0xB2,0x01)WriteI2C(0xB1,0x07) # PGEN_BAR_SIZE0WriteI2C(0xB2,0xE0)WriteI2C(0xB1,0x08) # PGEN_ACT_LPF1WriteI2C(0xB2,0x02)WriteI2C(0xB1,0x09) # PGEN_ACT_LPF0WriteI2C(0xB2,0xD0)WriteI2C(0xB1,0x0A) # PGEN_TOT_LPF1WriteI2C(0xB2,0x04)WriteI2C(0xB1,0x0B) # PGEN_TOT_LPF0WriteI2C(0xB2,0x1A)WriteI2C(0xB1,0x0C) # PGEN_LINE_PD1WriteI2C(0xB2,0x0C)WriteI2C(0xB1,0x0D) # PGEN_LINE_PD0WriteI2C(0xB2,0x67)WriteI2C(0xB1,0x0E) # PGEN_VBPWriteI2C(0xB2,0x21)WriteI2C(0xB1,0x0F) # PGEN_VFPWriteI2C(0xB2,0x0A)
在安霸芯片端,能抓到第一个中断,但信号不完整,怀疑是 RGB888格式问题;
安霸芯片只支持RGB RAW(bayer格式),请问如何修改 PGEN的数字格式?
PGEN_CSI_DT 寄存器(default = 0x24)表示 CSI Data Type 。但bayer格式是什么值?
Kailyn Chen:
953&954支持的MIPI CSI-2格式的数据,不支持RGB888 呢。或者您用示波器测量964 的输出波形是否正常?
penglin liu:
回复 Kailyn Chen:
那我上面的配置是正确的吗?
Junkai Wang:
我这里有支持RGB8888格式 1080P 60帧 两路传输芯片。