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

인천전자마이스터고                                                                            전자회로설계과



                    if(limit2&&limit2_d) state_c <= OPEN;

                    else state_c <= DOWN;

             end


             else if(sw_buf[0]|in_sw_buff[0]) //1층 up버튼o

             begin

                    if(!limit1) state_c <= OPEN;


                    else state_c <= DOWN;

             end

             else state_c <= UP;

             end

             2 :


             begin

                    if(!limit1) state_c <= OPEN;

                    else state_c <= DOWN;


             end

             default : state_c <= DOWN;

             endcase

             end

             OPEN :


             begin

                    if(!open_stop_limit) state_c <= DELAY; //열림

                    else if(!in_close) state_c <= CLOSE;


                    else state_c <= OPEN;

             end

             CLOSE :






                                                         -  501  -
   503   504   505   506   507   508   509   510   511   512   513