Mipiclock = [ (hpw+hdisp+hfp+hbp) x (vpw+vdisp+vfp+vbp) ] x(bus_hpw) x fps/ (lane_num)/2
Htotal = (hpw+hdisp+hfp+hbp)
Vtatal = (vpw+vdisp+vfp+vbp)
pixel_clk = Htotal*Vtatal ,单位:HZ
Mipiclock = [ (hpw+hdisp+hfp+hbp)*(vpw+vdisp+vfp+vbp) ]*bus_hpw*fps/lane_num/2
= (Htotal*Vtatal*fps)*(bus_hpw/lane_num/2)
= pixel_clk*(bus_hpw/lane_num/2)
这个转换公式可用于:①已知pixel_clk,计算MIPI clock;②已知MIPI clock,计算pixel_clk
举例:如果已知pixel_clk=148500000HZ,bus_hpw为24,即RGB888,lane_num为4,即有4组MIPI数据通道,则
Mipiclock = 148500000*(24/4/2) = 148500000*3 = 445500000HZ = 445.5HZ