1 / 4

Electronic key

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" .equ Relay = PortB6 .org 0 rjmp Init Init: ; Port Settings

hisano
Download Presentation

Electronic key

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Electronic key By: SoleymaniM. EvtushenkoV. Supervised by: BorovitskyiV.M. KondratenkoD.U.

  2. Device developed on the basis of microcontrollerATMEL –Tiny 26

  3. Circuit diagram

  4. Software • .include "tn26def.inc" • .equ Relay = PortB6 • .org 0 • rjmp Init • Init: • ; Port Settings • ldi R20, 0b00000000 • out DDRA, R20 • ; • ldi R20, 0b11110011 • out PORTA, R20 • ; • ldi R20, 0b01000000 • out DDRB, R20 • ; • ldi R20, 0b01000000 • out PORTB, R20 • ; • Main: • in R20, PINA • andi R20, 0b11110011 • cpi R20, 0b10010010 • breq TurnOn • sbi PortB, Relay • rjmp Main • TurnOn: • cbi PortB, Relay • rjmp Main

More Related