Notes
Notes - notes.io |
INCLUDE <P16F877A.INC>
__CONFIG _CP_OFF & _WDT_OFF & _HS_OSC & _PWRTE_OFF & _LVP_OFF
SAYI1 EQU 20H
SAYI2 EQU 21H
SAYI3 EQU 22H
TEMP EQU 23H
BIRLER equ 24h
ONLAR equ 25h
YUZLER equ 26h
BINLER equ 27h
TEMP4 EQU 28H
TEMP3 EQU 29H
TEMP2 EQU 2AH
TEMP1 EQU 2BH
ISI EQU 2CH
ISTENEN EQU 2DH
;*****RESET VECTOR
ORG 0
GOTO START
;******INTERRUPT
ORG 4
GOTO START
;****MACRO YAZILIR
BANK0 MACRO
BCF STATUS,5
ENDM
BANK1 MACRO
BSF STATUS,RP0
ENDM
;ALT PROGRAMLAR
START BANK1
MOVLW b'11110000' ;clrf trısd
MOVWF TRISD
CLRF TRISB
CLRF TRISC
BANK0
CLRF BIRLER
CLRF ONLAR
CLRF YUZLER
CLRF BINLER
MOVLW .20
MOVWF ISTENEN
MOVLW .23
MOVWF ISI
LOOP CALL BASAMAKBUL
CALL GOSTER
CALL TUSTARAMA
CALL ISITSOGUT
GOTO LOOP
;ALT PROGRAMLAR
ISITSOGUT BCF STATUS,C
BCF STATUS,Z
MOVF ISI,W
SUBWF ISTENEN,W
BTFSC STATUS,Z
GOTO ESITLIK
BTFSC STATUS,C
GOTO BUYUKLUK
BSF PORTC,1 ;RC1=1 OLDU SOGUTUCU CALISTI
BCF PORTC,0 ;RC0=0 ISITICI DURDU
RETURN
ESITLIK BCF PORTC,1 ;RC1=0 OLDU SOGUTUCU DURDU
BCF PORTC,0 ;;RC0=0 ISITICI DURDU
RETURN
BUYUKLUK BCF PORTC,1 ;RC1=0 OLDU SOGUTUCU DURDU
BSF PORTC,0 ;RC0=1 ISITICI CALISTI
RETURN
BASAMAKBUL CLRF ONLAR
CLRF BIRLER
MOVF ISTENEN,W
MOVWF TEMP4
GIT1 BCF STATUS,C
BCF STATUS,Z
MOVLW .10
SUBWF TEMP4,W
BTFSC STATUS,Z
GOTO ESITLIK1
BTFSC STATUS,C
GOTO BUYUKLUK1
MOVF TEMP4,W
MOVWF BIRLER
RETURN
ESITLIK1 INCF ONLAR,F
RETURN
BUYUKLUK1 INCF ONLAR,F
MOVLW .10
SUBWF TEMP4,F
GOTO GIT1
TUSTARAMA MOVLW B'11110111'
MOVLW PORTD ;RD3=0 1.SATIR SECILDI
CALL BEKLE ;1MS BEKLE
BTFSC PORTD,4 ;RD4=0 İSE 1ATLA
GOTO B2
INCF ISTENEN,F ;MOVLW.0 ;B1 BUTONU BASILI BLOGU
BCF STATUS,Z ;MOVWF ONLAR
MOVLW .33 ;MOVLW .1
SUBWF ISTENEN,W ;MOVWF BIRLER
BTFSC STATUS,Z
DECF ISTENEN,F
RETURN
B2 BTFSC PORTD,5 ;RD5=0 İSE 1 ATLE
GOTO B3
MOVLW .0 ;B2 BUTONU BASILI BLOGU
MOVWF ONLAR
MOVLW .2
MOVWF BIRLER
RETURN
B3 BTFSC PORTD,6 ;RD6=0 İSE 1 ATLE
GOTO B4
MOVLW .0 ;B3 BUTONU BASILI BLOGU
MOVWF ONLAR
MOVLW .3
MOVWF BIRLER
RETURN
B4 BTFSC PORTD,7 ;RD7=0 İSE 1 ATLE
GOTO B5
MOVLW .0 ;B4 BUTONU BASILI BLOGU
MOVWF ONLAR
MOVLW .4
MOVWF BIRLER
RETURN
;****1 SATIR SONU 2 SATIR BASI****
B5 MOVLW B'11111011'
MOVLW PORTD ;RD2=0 2.SATIR SECILDI
CALL BEKLE ;1MS BEKLE
BTFSC PORTD,4 ;RD4=0 İSE 1ATLA
GOTO B6
; MOVLW .0 ;B5 BUTONU BASILI BLOGU
; MOVWF ONLAR
; MOVLW .5
;MOVWF BIRLER
DECF ISTENEN,F ;MOVLW.0 ;B1 BUTOBU BASILI BLOGU
BCF STATUS,Z ;MOVWF ONLAR
MOVLW .15 ;MOVLW .1
SUBWF ISTENEN,W ;MOVWF BIRLER
BTFSC STATUS,Z
INCF ISTENEN,F
RETURN
B6 BTFSC PORTD,5 ;RD5=0 İSE 1 ATLE
GOTO B7
MOVLW .0 ;B6 BUTONU BASILI BLOGU
MOVWF ONLAR
MOVLW .6
MOVWF BIRLER
RETURN
B7 BTFSC PORTD,6 ;RD6=0 İSE 1 ATLE
GOTO B8
MOVLW .0 ;B7 BUTONU BASILI BLOGU
MOVWF ONLAR
MOVLW .7
MOVWF BIRLER
RETURN
B8 BTFSC PORTD,7 ;RD7=0 İSE 1 ATLE
GOTO B9
MOVLW .0 ;B8 BUTONU BASILI BLOGU
MOVWF ONLAR
MOVLW .8
MOVWF BIRLER
RETURN
;********2 SATIR SONU 3 SATIR BASI*****
B9 MOVLW B'11111101'
MOVLW PORTD ;RD1=0 3.SATIR SECILDI
CALL BEKLE ;1MS BEKLE
BTFSC PORTD,4 ;RD4=0 İSE 1ATLA
GOTO B10
MOVLW .0 ;B9 BUTONU BASILI BLOGU
MOVWF ONLAR
MOVLW .9
MOVWF BIRLER
RETURN
B10 BTFSC PORTD,5 ;RD5=0 İSE 1 ATLE
GOTO B11
MOVLW .1 ;B10 BUTONU BASILI BLOGU
MOVWF ONLAR
MOVLW .0
MOVWF BIRLER
RETURN
B11 BTFSC PORTD,6 ;RD6=0 İSE 1 ATLE
GOTO B12
MOVLW .1 ;B11 BUTONU BASILI BLOGU
MOVWF ONLAR
MOVLW .1
MOVWF BIRLER
RETURN
B12 BTFSC PORTD,7 ;RD7=0 İSE 1 ATLE
GOTO B13
MOVLW .1 ;B12 BUTONU BASILI BLOGU
MOVWF ONLAR
MOVLW .2
MOVWF BIRLER
RETURN
;****3 SATIR SONU 4 SATIR BASI****
B13 MOVLW B'11111110'
MOVLW PORTD ;RD0=0 4.SATIR SECILDI
CALL BEKLE ;1MS BEKLE
BTFSC PORTD,4 ;RD4=0 İSE 1ATLA
GOTO B14
MOVLW .1 ;B13 BUTONU BASILI BLOGU
MOVWF ONLAR
MOVLW .3
MOVWF BIRLER
RETURN
B14 BTFSC PORTD,5 ;RD5=0 İSE 1 ATLE
GOTO B15
MOVLW .1 ;B14 BUTONU BASILI BLOGU
MOVWF ONLAR
MOVLW .4
MOVWF BIRLER
RETURN
B15 BTFSC PORTD,6 ;RD6=0 İSE 1 ATLE
GOTO B16
MOVLW .1 ;B15 BUTONU BASILI BLOGU
MOVWF ONLAR
MOVLW .5
MOVWF BIRLER
RETURN
B16 BTFSC PORTD,7 ;RD7=0 İSE 1 ATLE
MOVLW .1 ;B16 BUTONU BASILI BLOGU
MOVWF ONLAR
MOVLW .6
MOVWF BIRLER
RETURN
;******4 SATIR SONU TUSTARAMA SONU***
GOSTER MOVLW .20
MOVWF TEMP
GOSTER1 MOVLW b'00001000'
MOVWF PORTB
MOVF BIRLER,W
MOVWF PORTD
CALL BEKLE
MOVLW B'00000100'
MOVWF PORTB
MOVF ONLAR,W
MOVWF PORTD
CALL BEKLE
MOVLW B'00000010'
MOVWF PORTB
MOVF YUZLER,W
MOVWF PORTD
CALL BEKLE
MOVLW B'00000001'
MOVWF PORTB
MOVF BINLER,W
MOVWF PORTD
CALL BEKLE
DECFSZ TEMP,F
GOTO GOSTER1
CLRF PORTB
RETURN
BEKLE MOVLW .1
MOVWF SAYI1
BEKLE1 MOVLW .50
MOVWF SAYI2
BEKLE2 MOVLW .50
MOVWF SAYI3
BEKLE3 DECFSZ SAYI3,F
GOTO BEKLE3
DECFSZ SAYI2,F
GOTO BEKLE2
DECFSZ SAYI1,F
GOTO BEKLE1
RETURN
END
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team