Page 641 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 641

LCD_CmdWrite(0x21);//FNCR0;
                         LCD_DataWrite(0);
                 }



            12)  소프트웨어  -  “SENSOR.c"

                 #include  "delay.h"
                 #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},





                                                         -  634  -
   636   637   638   639   640   641   642   643   644   645   646