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

asm("nop");
                           RESET_RCLK;
                           temp  |=  (GPIOA->IDR&0x00FF);

                           SET_RCLK;
                        }
                     }
                 }



            11)  소프트웨어  -  “TFT_LCD.c"

                 //  for  TFT_LCD  used  RA8875  controler
                 //  resolution  : 800  *  480
                 //  Background  LED  is  LOW-Active  type
                 //  useing  FSMC
                 //  FSMC1  A16
                 //  codder  :  leejungjun





                 #include  "TFT_LCD.h"
                 #include  "stm32f4xx_hal.h"

                 void  LCD_CmdWrite(unsigned  int  cmd)                                //16Bit  mode
                 {
                     TFT_REG  =  cmd;
                     while(LCD_StatusRead()&0x80);
                 }
                 void  LCD_DataWrite(unsigned  int  Data)

                 {
                     TFT_DATA  =  Data;
                     while(LCD_StatusRead()&0x80);
                 }

                 unsigned  short  LCD_DataRead()
                 {
                     asm("nop");
                    return TFT_DATA;
                 }
                 unsigned  short  LCD_StatusRead()

                 {





                                                         -  622  -
   624   625   626   627   628   629   630   631   632   633   634