a) b). / loop0 movlw d'20' movwf kaisu movlw d'0' movwf henka check1 btfsc porta,5 goto check2 call...

of 17 /17
振振 振振振 振 () 振振 振振振振振振振振振 振振振振振振振振振 振振振振振振 a) 振振振 b) 振振振 振振振振振振振振振振

Author: grace-ramos

Post on 26-Mar-2015

213 views

Category:

Documents


0 download

Embed Size (px)

TRANSCRIPT

  • Slide 1

a) b) Slide 2 / Slide 3 LOOP0 MOVLW D'20' MOVWF KAISU MOVLW D'0' MOVWF HENKA CHECK1 BTFSC PORTA,5 GOTO CHECK2 CALL WAIT1 BTFSC PORTA,5 INCF HENKA,1 GOTO CHECK9 CHECK2 CALL WAIT1 BTFSS PORTA,5 INCF HENKA,1 CHECK9 DECFSZ KAISU,1 GOTO CHECK1 Slide 4 LOOP0 MOVLW D'20' MOVWF KAISU MOVLW D'0' MOVWF HENKA CHECK1 BTFSC PORTA,5 GOTO CHECK2 CALL WAIT1 BTFSC PORTA,5 INCF HENKA,1 GOTO CHECK9 CHECK2 CALL WAIT1 BTFSS PORTA,5 INCF HENKA,1 CHECK9 DECFSZ KAISU,1 GOTO CHECK1 Slide 5 LOOP0 MOVLW D'20' MOVWF KAISU MOVLW D'0' MOVWF HENKA CHECK1 BTFSC GPIO,4 GOTO CHECK2 CALL WAIT1 BTFSC GPIO,4 INCF HENKA,1 GOTO CHECK9 CHECK2 CALL WAIT1 BTFSS PORTA,5 INCF HENKA,1 CHECK9 DECFSZ KAISU,1 GOTO CHECK1 MOVLW X X W W=X Slide 6 LOOP0 MOVLW D'20' MOVWF KAISU MOVLW D'0' MOVWF HENKA CHECK1 BTFSC GPIO,4 GOTO CHECK2 CALL WAIT1 BTFSC GPIO,4 INCF HENKA,1 GOTO CHECK9 CHECK2 CALL WAIT1 BTFSS PORTA,5 INCF HENKA,1 CHECK9 DECFSZ KAISU,1 GOTO CHECK1 MOVWF X W X X W Slide 7 LOOP0 MOVLW D'20' MOVWF KAISU MOVLW D'0' MOVWF HENKA CHECK1 BTFSC PORTA,5 GOTO CHECK2 CALL WAIT1 BTFSC PORTA,5 INCF HENKA,1 GOTO CHECK9 CHECK2 CALL WAIT1 BTFSS PORTA,5 INCF HENKA,1 CHECK9 DECFSZ KAISU,1 GOTO CHECK1 Slide 8 LOOP0 MOVLW D'20' MOVWF KAISU MOVLW D'0' MOVWF HENKA CHECK1 BTFSC PORTA,5 GOTO CHECK2 CALL WAIT1 BTFSC PORTA,5 INCF HENKA,1 GOTO CHECK9 CHECK2 CALL WAIT1 BTFSS PORTA,5 INCF HENKA,1 CHECK9 DECFSZ KAISU,1 GOTO CHECK1 BTFSC X, N X N 0 Slide 9 LOOP0 MOVLW D'20' MOVWF KAISU MOVLW D'0' MOVWF HENKA CHECK1 BTFSC PORTA,5 GOTO CHECK2 CALL WAIT1 BTFSC PORTA,5 INCF HENKA,1 GOTO CHECK9 CHECK2 CALL WAIT1 BTFSS PORTA,5 INCF HENKA,1 CHECK9 DECFSZ KAISU,1 GOTO CHECK1 GOTO Slide 10 LOOP0 MOVLW D'20' MOVWF KAISU MOVLW D'0' MOVWF HENKA CHECK1 BTFSC PORTA,5 GOTO CHECK2 CALL WAIT1 BTFSC PORTA,5 INCF HENKA,1 GOTO CHECK9 CHECK2 CALL WAIT1 BTFSS PORTA,5 INCF HENKA,1 CHECK9 DECFSZ KAISU,1 GOTO CHECK1 Slide 11 LOOP0 MOVLW D'20' MOVWF KAISU MOVLW D'0' MOVWF HENKA CHECK1 BTFSC PORTA,5 GOTO CHECK2 CALL WAIT1 BTFSC PORTA,5 INCF HENKA,1 GOTO CHECK9 CHECK2 CALL WAIT1 BTFSS PORTA,5 INCF HENKA,1 CHECK9 DECFSZ KAISU,1 GOTO CHECK1 CALL Slide 12 LOOP0 MOVLW D'20' MOVWF KAISU MOVLW D'0' MOVWF HENKA CHECK1 BTFSC PORTA,5 GOTO CHECK2 CALL WAIT1 BTFSC PORTA,5 INCF HENKA,1 GOTO CHECK9 CHECK2 CALL WAIT1 BTFSS PORTA,5 INCF HENKA,1 CHECK9 DECFSZ KAISU,1 GOTO CHECK1 INCF X, 1 X Slide 13 LOOP0 MOVLW D'20' MOVWF KAISU MOVLW D'0' MOVWF HENKA CHECK1 BTFSC PORTA,5 GOTO CHECK2 CALL WAIT1 BTFSC PORTA,5 INCF HENKA,1 GOTO CHECK9 CHECK2 CALL WAIT1 BTFSS PORTA,5 INCF HENKA,1 CHECK9 DECFSZ KAISU,1 GOTO CHECK1 Slide 14 LOOP0 MOVLW D'20' MOVWF KAISU MOVLW D'0' MOVWF HENKA CHECK1 BTFSC GPIO,4 GOTO CHECK2 CALL WAIT1 BTFSC PORTA,5 INCF HENKA,1 GOTO CHECK9 CHECK2 CALL WAIT1 BTFSS PORTA,5 INCF HENKA,1 CHECK9 DECFSZ KAISU,1 GOTO CHECK1 BTFSS X, N X N 1 Slide 15 LOOP0 MOVLW D'20' MOVWF KAISU MOVLW D'0' MOVWF HENKA CHECK1 BTFSC PORTA,5 GOTO CHECK2 CALL WAIT1 BTFSC PORTA,5 INCF HENKA,1 GOTO CHECK9 CHECK2 CALL WAIT1 BTFSS PORTA,5 INCF HENKA,1 CHECK9 DECFSZ KAISU,1 GOTO CHECK1 Slide 16 LOOP0 MOVLW D'20' MOVWF KAISU MOVLW D'0' MOVWF HENKA CHECK1 BTFSC GPIO,4 GOTO CHECK2 CALL WAIT1 BTFSC PORTA,5 INCF HENKA,1 GOTO CHECK9 CHECK2 CALL WAIT1 BTFSS PORTA,5 INCF HENKA,1 CHECK9 DECFSZ KAISU,1 GOTO CHECK1 DECFSZ X, 1 X -1 0( ) Slide 17 LOOP0 MOVLW D'20' MOVWF KAISU MOVLW D'0' MOVWF HENKA CHECK1 BTFSC PORTA,5 GOTO CHECK2 CALL WAIT1 BTFSC PORTA,5 INCF HENKA,1 GOTO CHECK9 CHECK2 CALL WAIT1 BTFSS PORTA,5 INCF HENKA,1 CHECK9 DECFSZ KAISU,1 GOTO CHECK1