LED0 välja LED0 sisse goto mainloop goto mainloop Seadme juhtprogrammi väljatrükk list p=16f877a ;defineeritakse kontrolleri tüüp include "p16f877a.inc" ;lisatakse kontrolleri infot sisaldav ;*.inc fail org 0x00 ;määrab kindlaks programmi algusvektori bsf STATUS,RP0 ;valitakse mälupank nr 1 (00,10,01,11) bcf STATUS,RP1 ;TRIS register asub pangas1! movlw b'00000000' ;tööregistrisse omistatakse binaararv ;00000000 movwf TRISD ;pordis D määratakse kõik viigud ;väljunditeks movlw 0x06 ;tööregistrisse antakse nr 6 movwf ADCON1 ;PORTA seadistatakse digitaalsisendiks
Plokkskeem: Joonis 1: AD-muunduri plokkskeem Juhtprogrammi väljatrükk: ;Mikrokontrolleri registrinimede lisamine list p=16f877a include "p16f877a.inc" ;Muutujate defineerimine cblock 0x20 Pause Pause_tmp temp_var endc ;Programm alates aadressist 0 org 0x00 bsf STATUS,RP0 ;Valime mäluala 1 bcf STATUS,RP1 movlw b'00000000' ;Kogu portD on väljund movwf TRISD movlw b'00000000' ;Kogu portC on väljund movwf TRISC movlw .0 movwf ADCON1 ;PORTA seadistatakse analoogsisenditeks
PORTD EQU 0x08 TRISC EQU 0x87 TRISD EQU 0x88 ; Kuna registrid PORTC ja TRISC (vi ka PORTD ja TRISD) paiknevad erinevates mlualades, siis on vajalik mlualasid mberllitada. ; mberllitamine toimub registri STATUS signaalidega 5 ja 6. STATUS EQU 0x03 ; Thistame mlualade llitamiseks signaalid registris STATUS thistega RP0 ja RP1 RP0 EQU 5 RP1 EQU 6 ORG 0x00 ; Transleerimise algusaadress BSF STATUS,RP0 ; Llitatakse sisse mluaken 1 BCF STATUS,RP1 CLRF TRISC ; Kustutatakse register TRISC nulliks - Signaalid RC0, RC1, RC2, Rc3, RC4, RC5, RC6 ja RC7 mratakse vljunditeks CLRF TRISD ; Kustutatakse register TRISD nulliks - Signaalid RD0, RD1, RD2, RD3, RD4, RD5, RD6 ja RD7 mratakse vljunditeks
rim Sari Sari mm-s Peen mõõt mm-s mm-s tolli kohta Sari TEIN S.I aal d tolli UNC UNF 8 UN läbi 1 2 NOR BSF 16 2,4 48 3 PEE E (tühis BSW kohta N°0 1,524 64 80 mõõ (nor (van MAA 17 2,7 40 (väldi N PEE tatud
Latikas 3 C 3 C 3 C Ahven 3 B 3 B 3 B Luts 3 A 3 A 3 A Peipsi tint 4 D 4 D 4 D 80 Lisa 3. Kaugpüük aastatel 2007 2012 (tonnides) Kalaliik Kood 2007 2008 2009 2010 2011 2012 Kirde-Atland Bairdsi-silepea ALC 9,336 Sinine molva BLI 7,128 Süsisaba BSF 6,696 Tursk COD 224,945 Pikk-koon-süvahai CYP 3,312 Harilik süvameregarneel PRA 537,83 1472,715 4902,553 6906,309 5317,879 5114,75 Nokk-meriahven REB 684,149 Meriahven RED 209,196 Kalju-tömppeakala RNG 140,088 Kirde-Atland kokku 1597,735 1472,715 4902,553 6906,309 5317,879 5339,695 Loode-Atland Aisopose
BPS Bits Per Second + Bytes Per Second BPSK Binary Phase Shift Keying BR Bad Register BRGC Binary Reflected Gray Code BRI Basic Rate Interface + Brain Response Interface BS Backspace BSAM Basic Sequential Access Method BSC Base Station Controller + Binary Synchronous Communication .BSC Boyan Script (file name extension) [Boyan Communications] BSCS Bachelor of Science (Degree) in Computer Science BSD Berkely Software/Standard Distribution BSF Bit Scan Forward BSI British Standards Institute BSM Basic Storage Module [IBM] BSP Bulk Synchronous Parallelism BSR Bit Scan Reverse BS-RAM Burst Static RAM BSS Block Started by Symbol BST Binary Search Tree BSY Busy BSYNC Binary Synchronous Communications (protocol) BT Bit Test BTAM Basic Telecommunications Access Method [IBM] BTB Branch Target Buffer BTC Bit Test and Complement BTI Business Type Identifier BTOA Binary To ASCII BTP Batch Transfer Program
thi sexerci se l at the backof the book. AnswerKey . A sk S sto thi nkof anyphrasal ver bsf or m edw: - The subjectof ptay is t. The subiectsof playedis Andy.The run, see or set. W ri tethem on t he boar d'Elr c: betweenthe structures difference is thatsentence 1 useswould thei rmeani ngs by aski ngS sto g iveexam ples
thi sexerci se l at the backof the book. AnswerKey . A sk S sto thi nkof anyphrasal ver bsf or m edw: - The subjectof ptay is t. The subiectsof playedis Andy.The run, see or set. W ri tethem on t he boar d'Elr c: betweenthe structures difference is thatsentence 1 useswould thei rmeani ngs by aski ngS sto g iveexam ples
thi sexerci se l at the backof the book. AnswerKey . A sk S sto thi nkof anyphrasal ver bsf or m edw: - The subjectof ptay is t. The subiectsof playedis Andy.The run, see or set. W ri tethem on t he boar d'Elr c: betweenthe structures difference is thatsentence 1 useswould thei rmeani ngs by aski ngS sto g iveexam ples
thi sexerci se l at the backof the book. AnswerKey . A sk S sto thi nkof anyphrasal ver bsf or m edw: - The subjectof ptay is t. The subiectsof playedis Andy.The run, see or set. W ri tethem on t he boar d'Elr c: betweenthe structures difference is thatsentence 1 useswould thei rmeani ngs by aski ngS sto g iveexam ples