Page 620 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 620
#include "camera.h"
#define SET_SDA GPIOD->BSRR=0x40
#define RESET_SDA GPIOD->BRR=0x40
#define SET_SCL GPIOD->ODR|=0x08
#define RESET_SCL GPIOD->ODR&=~0x08
#define SDA_IDR GPIOD->IDR&0x40
extern unsigned short picture[240][320];
extern unsigned char vsync=0;
unsigned char change_reg[166][2]=
{
{0x3a, 0x04},
{0x40, 0xD0},
{0x12, 0x14},
{0x67, 0xc0},
{0x68, 0x80},
{0x32, 0x80},
{0x17, 0x16},
{0x18, 0x04},
{0x19, 0x02},
{0x1a, 0x7a},
{0x03, 0x05},
{0x0c, 0x00},
{0x3e, 0x00},
{0x70, 0x00},
{0x71, 0x01},
{0x72, 0x11},
{0x73, 0x00},
{0xa2, 0x02},
{0x15, 0x02},
{0x7a, 0x20},
{0x7b, 0x1c},
{0x7c, 0x28},
{0x7c, 0x28},
- 613 -