中级会员
- 积分
- 212
- 金钱
- 212
- 注册时间
- 2019-7-17
- 在线时间
- 43 小时
|
5金钱
always @(*)
begin
case(und_reg)
7'd0: sccb_tmp<={24'h42_12_80}; //COM7 BIT[7]:复位所有的寄存器
7'd1: sccb_tmp<={24'h42_3d_03}; //COM12 模拟过程直流补偿
7'd2: sccb_tmp<={24'h42_15_00}; //COM10 href/vsync/pclk/data信号控制
7'd3: sccb_tmp<={24'h42_17_26}; //HSTART 水平起始位置
7'd4: sccb_tmp<={24'h42_18_a0}; //HSIZE 水平尺寸
7'd5: sccb_tmp<={24'h42_19_07}; //VSTRT 垂直起始位置
7'd6: sccb_tmp<={24'h42_1a_f0}; //VSIZE 垂直尺寸
7'd7: sccb_tmp<={24'h42_32_00}; //HREF 图像开始和尺寸控制,控制低位
7'd8: sccb_tmp<={24'h42_29_a0}; //HOutSize 水平输出尺寸
7'd9: sccb_tmp<={24'h42_2a_00}; //EXHCH 虚拟像素MSB
7'd10: sccb_tmp<={24'h42_2b_00}; //EXHCL 虚拟像素LSB
7'd11: sccb_tmp<={24'h42_2c_f0}; //VOutSize 垂直输出尺寸
7'd12: sccb_tmp<={24'h42_0d_41}; //COM4 PLL倍频设置(multiplier)
7'd13: sccb_tmp<={24'h42_11_00}; //CLKRC 内部时钟配置
7'd14: sccb_tmp<={24'h42_12_06}; //06=VGA640x480 RGB565 46=QVGA 320X240 RGB565
7'd15: sccb_tmp<={24'h42_0c_10}; //COM3 Bit[0]: 0:图像数据 1:彩条测试
7'd16: sccb_tmp<={24'h42_42_7f}; //TGT_B 黑电平校准蓝色通道目标值
7'd17: sccb_tmp<={24'h42_4d_09}; //FixGain 模拟增益放大器
7'd18: sccb_tmp<={24'h42_63_f0}; //AWB_Ctrl0 自动白平衡控制字节0
7'd19: sccb_tmp<={24'h42_64_ff}; //DSP_Ctrl1 DSP控制字节1
7'd20: sccb_tmp<={24'h42_65_00}; //DSP_Ctrl2 DSP控制字节2
7'd21: sccb_tmp<={24'h42_66_00}; //DSP_Ctrl3 DSP控制字节3
7'd22: sccb_tmp<={24'h42_67_00}; //DSP_Ctrl4 DSP控制字节4
7'd23: sccb_tmp<={24'h42_13_ff}; //COM8
7'd24: sccb_tmp<={24'h42_0f_c5}; //COM6
7'd25: sccb_tmp<={24'h42_14_11};
7'd26: sccb_tmp<={24'h42_22_98};
7'd27: sccb_tmp<={24'h42_23_03};
7'd28: sccb_tmp<={24'h42_24_40};
7'd29: sccb_tmp<={24'h42_25_30};
7'd30: sccb_tmp<={24'h42_26_a1};
7'd31: sccb_tmp<={24'h42_6b_aa};
7'd32: sccb_tmp<={24'h42_13_ff};
7'd33: sccb_tmp<={24'h42_90_0a}; //EDGE1 边缘增强控制1
7'd34: sccb_tmp<={24'h42_91_01}; //DNSOff
7'd35: sccb_tmp<={24'h42_92_01}; //EDGE2 锐度(边缘增强)强度上限
7'd36: sccb_tmp<={24'h42_93_01}; //EDGE3 锐度(边缘增强)强度下限
7'd37: sccb_tmp<={24'h42_94_5f}; //MTX1 矩阵系数1
7'd38: sccb_tmp<={24'h42_95_53}; //MTX1 矩阵系数2
7'd39: sccb_tmp<={24'h42_96_11}; //MTX1 矩阵系数3
7'd40: sccb_tmp<={24'h42_97_1a}; //MTX1 矩阵系数4
7'd41: sccb_tmp<={24'h42_98_3d}; //MTX1 矩阵系数5
7'd42: sccb_tmp<={24'h42_99_5a}; //MTX1 矩阵系数6
7'd43: sccb_tmp<={24'h42_9a_1e}; //MTX_Ctrl 矩阵控制
7'd44: sccb_tmp<={24'h42_9b_3f}; //BRIGHT 亮度
7'd45: sccb_tmp<={24'h42_9c_25}; //CNST 对比度
7'd46: sccb_tmp<={24'h42_9e_81};
7'd47: sccb_tmp<={24'h42_a6_06}; //SDE 特殊数字效果控制
7'd48: sccb_tmp<={24'h42_a7_65}; //USAT "U"饱和增益
7'd49: sccb_tmp<={24'h42_a8_65}; //VSAT "V"饱和增益
7'd50: sccb_tmp<={24'h42_a9_80}; //VSAT "V"饱和增益
7'd51: sccb_tmp<={24'h42_aa_80}; //VSAT "V"饱和增益
7'd52: sccb_tmp<={24'h42_7e_0c};
7'd53: sccb_tmp<={24'h42_7f_16};
7'd54: sccb_tmp<={24'h42_80_2a};
7'd55: sccb_tmp<={24'h42_81_4e};
7'd56: sccb_tmp<={24'h42_82_61};
7'd57: sccb_tmp<={24'h42_83_6f};
7'd58: sccb_tmp<={24'h42_84_7b};
7'd59: sccb_tmp<={24'h42_85_86};
7'd60: sccb_tmp<={24'h42_86_8e};
7'd61: sccb_tmp<={24'h42_87_97};
7'd62: sccb_tmp<={24'h42_88_a4};
7'd63: sccb_tmp<={24'h42_89_af};
7'd64: sccb_tmp<={24'h42_8a_c5};
7'd65: sccb_tmp<={24'h42_8b_d7};
7'd66: sccb_tmp<={24'h42_8c_e8};
7'd67: sccb_tmp<={24'h42_8d_20};
7'd68: sccb_tmp<={24'h42_0e_65};
7'd69: sccb_tmp<={24'h42_09_00};
default:;
endcase
end
上面是原子哥教程里提供的部分设置代码,问一下各位网友如何设置分辨率为320*240输出的,在寄存器 12 中设置成 46 后,好像没反应哦!还是480个行信号,谢谢关注!
|
|