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

switch(mux++)

                            {
                                    case 1 :
                                            ADC_PORT = 0;
                                            _delay_ms(10);

                                            ADCSRA = 0xcf;
                                            _delay_ms(10);
                                            break;


                                    case 2 :
                                            ADC_PORT = 1;

                                            _delay_ms(10);
                                            ADCSRA = 0xcf;
                                            _delay_ms(10);
                                            break;





                            }


                            if(ADC0 >= 884)
                            {

                                    updown = 'B';
                            }


                            else if(ADC0 >= 284)

                            {
                                    updown = '0';
                            }


                            else
                            {

                                    updown = 'F';
                            }





                            if(ADC1 >= 563)
                            {




                                                         -  995  -
   997   998   999   1000   1001   1002   1003   1004   1005   1006   1007