NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

.include "m32def.inc"

.org 0x000
jmp Reset
.org 0x002
jmp Ext_int0

.org 0x02A //wymusza nastepna dyrektwe, adres z poza puli wektorow
Reset:

CLI //wylaczenie przerwan

LDI R16,HIGH(RAMEND)
OUT SPH,R16
LDI R16,LOW(RAMEND)
OUT SPL,R16 //inicjalizacja stosu

//konfiguracja

LDI R31,0b0000001
SBI DDRA,7 //ustawiam kropke z 7-segmentowego na wyjscie

LDI R23,0xff //rejestr 23 same jedynki
OUT DDRC,r23 //obsluga diod zeby wszystkie byly na wyjsciu

//OUT PORTC,R23

CBI DDRD, 2 //linia 2 portu d w trybie wejscia
SBI PORTD,2 //podciagnaie lini

LDI R16, (1<<ISC01) //ustawienie przerwań zewnętrnych
OUT MCUCR, R16

LDI R16, (1<<INT0)
OUT GICR, R16

LDI R23, 0 //wyzerowanie R23
sei //wlaczenie przerwan

;main
main:

SBI PORTA,7
call delay
CBI PORTA,7
call delay

rjmp main

delay:
ldi r18, 130
ldi r19, 222
L1: dec r19
brne L1
dec r18
brne L1
nop
ret

Ext_int0:
// call int0delay
// SBIC PIND,PIND2 //jezeli puszczono przycisk to zwieksz rejestr
INC R23 //inkrementacja rejestru //nie ma potrzeby zerowania bo

//po przekroczeniu granicy wyzeruje sie samo (overflow)
OUT PORTC,R23 //obsluga diod (zapalenie)

reti

int0delay:
ldi r18, 130
ldi r19, 222
L2: dec r19
brne L2
dec r18
brne L2
nop
ret
     
 
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.