Dec20hb

Microprocessor

Filed Universiti

Jap tadi ada lab microprocessor … huhuhu… cam biasa aa… abes lab ni jer… aku nyer pala otak memang jer akan macam mengong² jer… hehehe…. sebab arini program kitorang lum siap sepenuhnya… kali ni aku kongsi program kitorang yang dah hantar dah pun… hehehe… aku group berdua dalam lab ni… kod program tu lerh tgk kat entri penuh benda ni… hehehe…

Program ni untuk mengawal ventilator mengikut suhu sebenarnya, kira untuk pastikan takder aa terbakar benda tu nanti… sebab panas sangat… huhuhu… so sila aa tgk sendiri erk… hehehe…

 

  1. x:v2neumain.a51   page 1 PUBLIC main $include (c:rideinc51infineonreg517a.inc) ; Prozessor einstellencseg at Oh LJMP Ob5h ;Zugriff auf das Monitorprogramm {Bei Simmulation iiberspringen)cseg at Ob3h jmp $  ;Wird gebraucht um die Anfangadresse des Monitorprogramms zu definieren   ;und den Bereich fur die Interruptprogrammierung freizuhaltenorg 200hmain:init: CLR P4.7    ;Ventilator ausschrit: jnb P4.1,schrit  ;Springe wenn wasserpumpe aus mov tmod,#000100008 ;Set timer 1 mov r7,#8  ;startwert für r7 mov r3,#31  ;startwert für r3 mov TLl,#OEFH  ;startwert timerl low mov TH1,#5EH  ;startwert timerl high SETB TR1  ;timerl antimean: jnb TF1,timean   ;timer ueberlauf CLR TF1timers: djnz r7, timean  ;Wiederholen timean bis r7 - 0temp: jnb P4.1,timer2  ;Wasserpump aus jb P4.2,ventAn  ;temperatur highventAus:CLR P4.7  ;Ventilator aus jnb P4.7, tempventAn: SETB P4.7  ;Ventilator an jb P4.7, temptimer2: mov TL1,#85H   ;startwert timerO low mov TH1,#7BH  ;startwert timerO highI_timer2:jb P4.2,ventAn2  ;temperatur high jmp check_timer CLR P4.7  ;Ventilator ausventAn2:SETB P4.7   ;Ventilator ancheck_timer: SETB TR1  ;timerO an jnb TF1, I_timer2  ;timer ueberlauf CLR TF1timer3: djnz r3,l_timer2  ; Wiederholen timer2 bis r3 = 0 Wasserpumpe aus CLR P4.1  ; Wasserpumpe aus jmp main   ; Sollte am Ende verbleiben um Fehler zu vermeiden end   ;Ende der Assemblierung (keine Prozessoranweisung)
Baca juga...

Langgan RSS Feed Eizil.com Menggunakan email

Isi alamat Email anda:

Perkhidmatan oleh FeedBurner


Social Bookmarking
Bookmark to: Mr. Wong Bookmark to: Webnews Bookmark to: Icio Bookmark to: Oneview Bookmark to: Linkarena Bookmark to: Favoriten Bookmark to: Seekxl Bookmark to: Kledy.de Bookmark to: Social Bookmarking Tool Bookmark to: BoniTrust Bookmark to: Power Oldie Bookmark to: Bookmarks.cc Bookmark to: Favit Bookmark to: Bookmarks.at Bookmark to: Newsider Bookmark to: Linksilo Bookmark to: Readster Bookmark to: Folkd Bookmark to: Yigg Bookmark to: Digg Bookmark to: Del.icio.us Bookmark to: Facebook Bookmark to: Reddit Bookmark to: Jumptags Bookmark to: Simpy Bookmark to: StumbleUpon Bookmark to: Slashdot Bookmark to: Propeller Bookmark to: Furl Bookmark to: Yahoo Bookmark to: Spurl Bookmark to: Google Bookmark to: Blinklist Bookmark to: Blogmarks Bookmark to: Diigo Bookmark to: Technorati Bookmark to: Newsvine Bookmark to: Blinkbits Bookmark to: Ma.Gnolia Bookmark to: Smarking Bookmark to: Netvouz
 
Trackback: Trackback This Post


 

Komen??

Kalau terasa nak komen, silalah isi borang kat bawah tu yer.

Nama (wajib)

Email (wajib)

Laman Web

Mesej

Carian



RSS Feed


Delivered by FeedBurner


15 Artikel Terkini


Kategori


Arkib


Eizil Support Center

Eizil Support Center Add to Technorati Favorites