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

if(RFC==CardIDSize)                                              //if full

                            {

                                    RFC = 0;                //clear counter
                                    GLCD_displayStringLn(Line2,CardDataBox);                 //display ID
                            }

                    }

            }
            void USART1_IRQHandler(void)
            {

                    vu8 c;          //getting Ascii no fracture

                    if(USART_GetITStatus(USART1, USART_IT_RXNE) != RESET)
                    {
                            GLCD_displayStringLn(Line5,"U1");

                            USART_ClearITPendingBit(USART1,USART_IT_RXNE);

                            c = USART1->DR;
                            RData[0] = c;


            //just get 1byte for No fracture of Fram Perfectly



                            GLCD_displayStringLn(Line4,RData);

                    }
            }



            void TIM3_IRQHandler(void)

            {
                    TIM_ClearITPendingBit(TIM3,TIM_IT_Update);  //Clear flag bit
                    count ++;       //plus counter

                    if(count == 1000)               //if count == 1000 => 5ms*1000 = 5s

                    {
                            count =0;                                               //Clear counter
                            Traffic_Phase++;                                                //go for next
            Phase

                            if(Traffic_Phase == 4)                                  //if Final Phase





                                                         -  183  -
   185   186   187   188   189   190   191   192   193   194   195