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

#define  CHACK_TFT_BF  (GPIOA->ODR&0x0008)



                 #define  CHACK_CAM_VSYNC  (GPIOD->ODR&0x2000)
                 #endif




            16)  소프트웨어  -  “delay.h"

                 void  delay_us(unsigned  int  cnt);



            17)  소프트웨어  -  “TFT_LCD.h"
                 #define  TFT_DATA  (*((volatile  unsigned  short  *)  0x60000000))       //A16 번지에

                 LCD  연결  쓰기
                 #define TFT_REG   (*((volatile unsigned  short  *) 0x60020000))       //어드레스
                 #define  TFT_BF    (GPIOA->IDR&0x02)


                 #define  BLACK      0x0000

                 #define  WHITE      0xffff
                 #define  RED       0xf800
                 #define  GREEN      0x07e0
                 #define  BLUE        0x001f
                 #define YELLOW   RED|GREEN

                 #define  color_cyan        GREEN|BLUE
                 #define  color_purple    RED|BLUE


                 //  for  TFT_LCD  used  RA8875  controler
                 //  resolution  : 800  *  480

                 //  Background  LED  is  LOW-Active  type
                 //  use  FSMC
                 //  FSMC1  A16
                 //  codder  :  leejungjun



                 void  LCD_CmdWrite(unsigned  int  cmd)  ;
                 void  LCD_DataWrite(unsigned  int  Data);
                 unsigned  short  LCD_DataRead();
                 unsigned  short  LCD_StatusRead();





                                                         -  646  -
   648   649   650   651   652   653   654   655   656   657   658