NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

LIST P=16F877A
INCLUDE <P16F877A.INC>
__CONFIG _CP_OFF &_WDT_OFF &_HS_OSC &_PWRTE_OFF &_LVP_OFF
SAYI1 EQU 20H ; BEKLE ALTPROGRAMINDA KULLANACAM
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
TEMPI EQU 2BH
ISI EQU 2CH
ISTENEN EQU 2DH

;***** RESET VECTOR ***
ORG 0
GOTO START
;***** INTERRUPT VECTOR
ORG 4
GOTO START
;**** MACRO YAZILABILIR
BANK0 MACRO
BCF STATUS,5
ENDM
BANK1 MACRO
BSF STATUS,RP0
ENDM
; ALT PROGRAMLAR YAZILABILIR TERCIH ETMIYORUM
START BANK1
MOVLW b'11110000' ;CLRF TRISD ;
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 YAZILABILIR ;
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 SOĞUTUCU ÇALIŞTI
BCF PORTC,0 ;RC0=0 OLDU ISITICI DURDU
RETURN
ESITLIK BCF PORTC,1 ;RC1=0 OLDU SOĞUTUCU DURDU
BCF PORTC,0 ;RC0=0 OLDU ISITICI DURDU
RETURN
BUYUKLUK BCF PORTC,1 ;RC1=0 OLDU SOĞUTUCU DURDU
BSF PORTC,0 ;RC0=1 OLDU ISITICI ÇALIŞTI
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'
MOVWF PORTD ; RD3=0 1. SATIR SEÇİLDİ
CALL BEKLE ; 1 ms bekle
BTFSC PORTD,4 ; RD4 = 0 ISE 1 ATLA
GOTO B2
INCF ISTENEN,F ;MOVLW .0 ; B1 BUTONU BASILI BLOĞU
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 ISE 1 ATLA
GOTO B3
MOVLW .0 ; B2 BUTONU BASILI BLOĞU
MOVWF ONLAR
MOVLW .2
MOVWF BIRLER
RETURN
B3 BTFSC PORTD,6 ; RD6 = 0 ISE 1 ATLA
GOTO B4
MOVLW .0 ; B3 BUTONU BASILI BLOĞU
MOVWF ONLAR
MOVLW .3
MOVWF BIRLER
RETURN
B4 BTFSC PORTD,7 ; RD7 = 0 ISE 1 ATLA
GOTO B5
MOVLW .0 ; B4 BUTONU BASILI BLOĞU
MOVWF ONLAR
MOVLW .4
MOVWF BIRLER
RETURN
;***************1 SATIR SONU 2 SATIR BAŞI ***********
B5 MOVLW B'11111011'
MOVWF PORTD ; RD2=0 2. SATIR SEÇİLDİ
CALL BEKLE ; 1 ms bekle
BTFSC PORTD,4 ; RD4 = 0 ISE 1 ATLA
GOTO B6
;MOVLW .0 ; B5 BUTONU BASILI BLOĞU
;MOVWF ONLAR
;MOVLW .5
;MOVWF BIRLER
DECF ISTENEN,F ;MOVLW .0 ; B1 BUTONU BASILI BLOĞU
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 ISE 1 ATLA
GOTO B7
MOVLW .0 ; B6 BUTONU BASILI BLOĞU
MOVWF ONLAR
MOVLW .6
MOVWF BIRLER
RETURN
B7 BTFSC PORTD,6 ; RD6 = 0 ISE 1 ATLA
GOTO B8
MOVLW .0 ; B7 BUTONU BASILI BLOĞU
MOVWF ONLAR
MOVLW .7
MOVWF BIRLER
RETURN
B8 BTFSC PORTD,7 ; RD7 = 0 ISE 1 ATLA
GOTO B9
MOVLW .0 ; B8 BUTONU BASILI BLOĞU
MOVWF ONLAR
MOVLW .8
MOVWF BIRLER
RETURN
;***********************2 SATIR SONU 3 SATIR BAŞI***********
B9 MOVLW B'11111101'
MOVWF PORTD ; RD1=0 3. SATIR SEÇİLDİ
CALL BEKLE ; 1 ms bekle
BTFSC PORTD,4 ; RD4 = 0 ISE 1 ATLA
GOTO B10
MOVLW .0 ; B9 BUTONU BASILI BLOĞU
MOVWF ONLAR
MOVLW .9
MOVWF BIRLER
RETURN
B10 BTFSC PORTD,5 ; RD5 = 0 ISE 1 ATLA
GOTO B11
MOVLW .1 ; B10 BUTONU BASILI BLOĞU
MOVWF ONLAR
MOVLW .0
MOVWF BIRLER
RETURN
B11 BTFSC PORTD,6 ; RD6 = 0 ISE 1 ATLA
GOTO B12
MOVLW .1 ; B11 BUTONU BASILI BLOĞU
MOVWF ONLAR
MOVLW .1
MOVWF BIRLER
RETURN
B12 BTFSC PORTD,7 ; RD7 = 0 ISE 1 ATLA
GOTO B13
MOVLW .1 ; B12 BUTONU BASILI BLOĞU
MOVWF ONLAR
MOVLW .2
MOVWF BIRLER
RETURN
;***********************3 SATIR SONU 4 SATIR BAŞI***********
B13 MOVLW B'11111110'
MOVWF PORTD ; RD0=0 4. SATIR SEÇİLDİ
CALL BEKLE ; 1 ms bekle
BTFSC PORTD,4 ; RD4 = 0 ISE 1 ATLA
GOTO B14
MOVLW .1 ; B13 BUTONU BASILI BLOĞU
MOVWF ONLAR
MOVLW .3
MOVWF BIRLER
RETURN
B14 BTFSC PORTD,5 ; RD5 = 0 ISE 1 ATLA
GOTO B15
MOVLW .1 ; B14 BUTONU BASILI BLOĞU
MOVWF ONLAR
MOVLW .4
MOVWF BIRLER
RETURN
B15 BTFSC PORTD,6 ; RD6 = 0 ISE 1 ATLA
GOTO B16
MOVLW .1 ; B15 BUTONU BASILI BLOĞU
MOVWF ONLAR
MOVLW .5
MOVWF BIRLER
RETURN
B16 BTFSC PORTD,7 ; RD7 = 0 ISE 1 ATLA
RETURN
MOVLW .1 ; B16 BUTONU BASILI BLOĞU
MOVWF ONLAR
MOVLW .6
MOVWF BIRLER
RETURN
;****************4 SATIR SONU TUSTARAMA SONU ***********
GOSTER MOVLW .20
MOVWF TEMP
GOSTER1 MOVLW B'00001000'
MOVWF PORTB ; RB3= 1 OLDU DSP4 AKTIF
MOVF BIRLER,W ; W=BIRLER
MOVWF PORTD ; PORTD=W
CALL BEKLE
MOVLW B'00000100'
MOVWF PORTB ; RB2= 1 OLDU DSP3 AKTIF
MOVF ONLAR,W
MOVWF PORTD
CALL BEKLE
MOVLW B'00000010'
MOVWF PORTB ; RBI= 1 OLDU DSP2 AKTIF
MOVF YUZLER,W
MOVWF PORTD
CALL BEKLE
MOVLW B'00000001'
MOVWF PORTB ; RBO= 1 OLDU DSP1 AKTIF
MOVF BINLER,W
MOVWF PORTD
CALL BEKLE
DECFSZ TEMP,F
GOTO GOSTER1
CLRF PORTB
RETURN

BEKLE MOVLW .1 ;W=I6 OLDU 1.5ms
MOVWF SAYI1 ; SAYI1=W OLDU
BEKLE1 MOVLW .50
MOVWF SAYI2 ; SAYI2=50 OLDU
BEKLE2 MOVLW .50
MOVWF SAYI3 ; SAYI3=50 OLDU
BEKLE3 DECFSZ SAYI3,F
GOTO BEKLE3
DECFSZ SAYI2,F
GOTO BEKLE2
DECFSZ SAYI1,F
GOTO BEKLE1
RETURN

END



     
 
what is notes.io
 

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

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.