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

count[0]++;

                if(count[0]==10)
                    count[0]=9;

                save[0]=count[0];
                EIFR=0x01;
            }

            interrupt [EXT_INT1]  void  external_int1(void)
            {

                count[0]--;
                 if(count[0]==0)
                    count[0]=9;

                save[0]=count[0];
                EIFR=0x02;

            }
            interrupt  [EXT_INT2]  void  external_int2(void)
            {

                count[1]++;
                if(count[1]==10)


                    count[1]=9;
                save[1]=count[1];

                EIFR=0x04;
            }

            interrupt  [EXT_INT3]  void  external_int3(void)
            {
                count[1]--;

                if(count[1]==0)
                    count[1]=9;

                save[1]=count[1];
                EIFR=0x08;
            }

            interrupt  [EXT_INT4]  void  external_int4(void)
            {

                count[2]++;




                                                         -  120  -
   122   123   124   125   126   127   128   129   130   131   132