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

if(count[2]==10)

                    count[2]=9;
                save[2]=count[2];

                EIFR=0x10;
            }
            interrupt  [EXT_INT5]  void  external_int5(void)

            {
                count[2]--;

                if(count[2]==0)
                    count[2]=9;
                save[2]=count[2];

                EIFR=0x20;
            }

            interrupt  [EXT_INT6]  void  external_int6(void)    //산책  멜로디  스피커  출력부
            {
                PORTF=0x80;

                delay_ms(3000);
                PORTF=0x00;

                EIFR=0x40;
            }
            interrupt  [TIM0_OVF]  void  timer_int0(void)

            {
                count1++;

                if(count1==620)
                {
                    count[0]--;

                    count1=0;
                }


            }
            interrupt  [TIM1_OVF]  void  timer_int1(void)

            {
                TCNT1=0xff00;

                count2++;




                                                         -  121  -
   123   124   125   126   127   128   129   130   131   132   133