electronic key

4
Electronic key By: Soleymani M. Evtushenko V. Supervised by: Borovitskyi V.M. Kondratenko D.U.

Upload: hisano

Post on 11-Jan-2016

28 views

Category:

Documents


0 download

DESCRIPTION

Electronic key. By : Soleymani M. Evtushenko V . Supervised by : Borovitskyi V . M . Kondratenko D . U. Device developed on the basis of microcontroller ATMEL –Tiny 26. Circuit diagram. Software. .include "tn26def.inc" .equRelay= PortB6 .org0 rjmpInit Init: ; Port Settings - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Electronic key

Electronic key

By: Soleymani M.

Evtushenko V.

Supervised by: Borovitskyi V.M.

Kondratenko D.U.

Page 2: Electronic key

Device developed on the basis of

microcontroller ATMEL –Tiny 26

Page 3: Electronic key

Circuit diagram

Page 4: Electronic key

Software.include "tn26def.inc"

.equ Relay = PortB6

.org 0rjmp Init

Init:; Port Settings

ldi R20, 0b00000000out DDRA, R20

;ldi R20, 0b11110011out PORTA, R20

;ldi R20, 0b01000000out DDRB, R20

;ldi R20, 0b01000000out PORTB, R20

;Main:

in R20, PINAandi R20, 0b11110011

cpi R20, 0b10010010breq TurnOn

sbi PortB, Relayrjmp Main

TurnOn:cbi PortB, Relayrjmp Main