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

for(i=0;i<320;i++)

                 for(j=0;j<240;j++)
                 {
                        if(i>279)wr_dat(0x07E0);

                    else  if(i>239)wr_dat(0x001f);
                    else  if(i>199)wr_dat(0x07e0);
                    else  if(i>159)wr_dat(0x07ff);
                    else  if(i>119)wr_dat(0xf800);
                    else  if(i>79)wr_dat(0xf81f);

                    else  if(i>39)wr_dat(0xffe0);
                    else  wr_dat(0xffff);
                 }

               CS_set;
            }


            [Main]

            ARM  프로세서를  동작하기  위한  초기화  소스,  인터럽트  루틴을  돌리기  위한  함수들이  들어있
            는  소스이다.
            #include  "stm32f10x.h"

            #include  "USART.h"
            #include  "GLCD.h"


            void  GPIO_Configuration  (void)              //gpio  부분.

            {
                    /*DATA  LINE  TFTLCD*/
                    GPIO_InitTypeDef  GPIO_InitStructure;
                    GPIO_InitStructure.GPIO_Pin  =  GPIO_Pin_All;

                    GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;  //출력
                    GPIO_InitStructure.GPIO_Speed  =  GPIO_Speed_50MHz;
                    GPIO_Init(GPIOE,  &GPIO_InitStructure);
                    GPIO_InitStructure.GPIO_Pin  =  GPIO_Pin_All;

                    GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
                    GPIO_InitStructure.GPIO_Speed  =  GPIO_Speed_50MHz;
                    GPIO_Init(GPIOC,  &GPIO_InitStructure);



                    /*CONTROL  TFTLCD _  CS,  RS, WR, RD*/




                                                         -  536  -
   538   539   540   541   542   543   544   545   546   547   548