初中生
最后登录1970-1-1
在线时间 小时
注册时间2015-4-15
|
楼主 |
发表于 2015-5-18 16:35:20
|
显示全部楼层
按你说的修改这几个寄存器的设置值:
{HSTART, 0x3f}, /*Horizontal Frame (HREF column) Start 8 MSBs */
{HSIZE, 0x14}, /*Horizontal Sensor Size:0x50--320;0x3c--240;0x28--160;0x14--80*/
{VSTRT, 0x03}, /*Vertical Frame (row) Start 8 MSBs (1 LSB is at HREF[6])*/
{VSIZE, 0x1e}, /*Vertical Sensor Size (1 LSB is at HREF[2]):0x78--240;0x5a--180;0x3c--120;0x1e--60*/
{HREF, 0x00}, /*Image Start and Size Control*/
#if (CAMERA_W == 80)
{HOutSize, 0x14},
#elif (CAMERA_W == 160)
{HOutSize, 0x28},
#elif (CAMERA_W == 240)
{HOutSize, 0x3c},
#elif (CAMERA_W == 320)
{HOutSize, 0x50},
#else
#endif
#if (CAMERA_H == 60 )
{VOutSize, 0x1E},
#elif (CAMERA_H == 120 )
{VOutSize, 0x3c},
#elif (CAMERA_H == 180 )
{VOutSize, 0x5a},
#elif (CAMERA_H == 240 )
{VOutSize, 0x78},
#else
#endif
//{HOutSize, 0x50},
//{VOutSize, 0x78},
{EXHCH, 0x00},
并将开窗设为:
LCD_Init();
LCD_open_windows(60,60,80,60);
|
-
显示结果
|