BSF EECON1, WREN ; ÐÀÇÐÅØÅÍÈÅ ÇÀÏÈÑÈ Â EEPROM
MOVLW 0x55 EECON2 0xAA EECON2
BSF EECON1, WR ; ÈÍÈÖÈÀËÈÇÀÖÈß ÇÀÏÈÑÈ
BCF EECON1, WREN ; ÇÀÏÐÅÒ ÇÀÏÈÑÈ ÂEEPROM
BANC2
INCF EEADR, F ; ÓÂÅËÈ×ÈÒÜ ÀÄÐÅÑ ÍÀ 1
BANC3
BTFSC EECON1, WR ; ÏÐÎÂÅÐÊÀ ÎÊÎÍ×ÀÍÈß ÇÀÏÈÑÈ Â EEPROM
GOTO $+1
BANC0
MOVF STOP_MH, W ; ×ÒÅÍÈÅ ÄÀÍÍÛÕ ÈÇ ÐÅÃÈÑÒÐÀ STOP_MH
BANC2
MOVWF EEDATA
BANC3
BCF EECON1, EEPGD ; ÇÀÏÈÑÜ ÁÓÄÅÒ ÏÐÎÈÇÂÎÄÈÒÜÑß Â EEPROM
BSF EECON1, WREN ; ÐÀÇÐÅØÅÍÈÅ ÇÀÏÈÑÈ Â EEPROM
MOVLW 0x55 EECON2 0xAA EECON2
BSF EECON1, WR ; ÈÍÈÖÈÀËÈÇÀÖÈß ÇÀÏÈÑÈ
BCF EECON1, WREN ; ÇÀÏÐÅÒ ÇÀÏÈÑÈ ÂEEPROM
BANC2
INCF EEADR, F ; ÓÂÅËÈ×ÈÒÜ ÀÄÐÅÑ ÍÀ 1
BANC3
BTFSC EECON1, WR ; ÏÐÎÂÅÐÊÀ ÎÊÎÍ×ÀÍÈß ÇÀÏÈÑÈ Â EEPROM
GOTO $+1
BANC0
MOVF STOP_HL, W ; ×ÒÅÍÈÅ ÄÀÍÍÛÕ ÈÇ ÐÅÃÈÑÒÐÀ STOP_HL
BANC2
MOVWF EEDATA
BANC3
BCF EECON1, EEPGD ; ÇÀÏÈÑÜ ÁÓÄÅÒ ÏÐÎÈÇÂÎÄÈÒÜÑß Â EEPROM
BSF EECON1, WREN ; ÐÀÇÐÅØÅÍÈÅ ÇÀÏÈÑÈ Â EEPROM
MOVLW 0x55 EECON2 0xAA EECON2
BSF EECON1, WR ; ÈÍÈÖÈÀËÈÇÀÖÈß ÇÀÏÈÑÈ
BCF EECON1, WREN ; ÇÀÏÐÅÒ ÇÀÏÈÑÈ ÂEEPROM
BANC2
INCF EEADR, F ; ÓÂÅËÈ×ÈÒÜ ÀÄÐÅÑ ÍÀ 1
BANC3
BTFSC EECON1, WR ; ÏÐÎÂÅÐÊÀ ÎÊÎÍ×ÀÍÈß ÇÀÏÈÑÈ Â EEPROM
GOTO $+1
BANC0
MOVF STOP_HH, W ; ×ÒÅÍÈÅ ÄÀÍÍÛÕ ÈÇ ÐÅÃÈÑÒÐÀ STOP_HH
BANC2
MOVWF EEDATA
BANC3
BCF EECON1, EEPGD ; ÇÀÏÈÑÜ ÁÓÄÅÒ ÏÐÎÈÇÂÎÄÈÒÜÑß Â EEPROM
BSF EECON1, WREN ; ÐÀÇÐÅØÅÍÈÅ ÇÀÏÈÑÈ Â EEPROM
MOVLW 0x55 EECON2 0xAA EECON2
BSF EECON1, WR ; ÈÍÈÖÈÀËÈÇÀÖÈß ÇÀÏÈÑÈ
BCF EECON1, WREN ; ÇÀÏÐÅÒ ÇÀÏÈÑÈ ÂEEPROM
BANC0
GOTO INT_SOURCE ; ÂÅÐÍÓÒÜÑß Ê ÏÎÈÑÊÓ ÈÑÒÎ×ÍÈÊΠÏÐÅÐÛÂÀÍÈÉ
;-
START_UST_T_SP ; ÏÎÄÏÐÎÃÐÀÌÌÀ ÂÊËÞ×ÅÍÈß ÐÅÆÈÌÀ ÓÑÒÀÍÎÂÊÈ ÂÐÅÌÅÍÈ
; ÂÛÊËÞ×ÅÍÈß
MOVLW B'00000100' ; ÂÊËÞ×ÈÒÜ ÐÅÆÈÌ ÓÑÒÀÍÎÂÊÈ ÂÐÅÌÅÍÈ ÂÛÊËÞ×ÅÍÈß
MOVWF FLAG_R ; ÎÑÒÀËÜÍÛÅ ÂÛÊËÞ×ÈÒÜ
BSF INTCON, RBIE ; ÐÀÇÐÅØÈÒÜ ÏÐÅÐÛÂÀÍÈß ÏÎ ÂÕÎÄÀÌ <RB4:RB7>
GOTO INT_SOURCE ; ÂÅÐÍÓÒÜÑß Ê ÏÎÈÑÊÓ ÈÑÒÎ×ÍÈÊΠÏÐÅÐÛÂÀÍÈÉ
;-
B_TIME_CURR ; ÏÐÎÂÅÐÊÀ ÍÀÆÀÒÈß ÊÍÎÏÊÈ «ÓÑÒÀÍÎÂÊÀ ÒÅÊÓÙÅÃÎ
; ÂÐÅÌÅÍÈ»
BTFSC PORTA, 4 ; ÍÀÆÀÒÀ ÊÍÎÏÊÀ «ÓÑÒÀÍÎÂÊÀ ÒÅÊÓÙÅÃÎ ÂÐÅÌÅÍÈ»
GOTO INT_SOURCE ; ÂÅÐÍÓÒÜÑß Ê ÏÎÈÑÊÓ ÈÑÒÎ×ÍÈÊΠÏÐÅÐÛÂÀÍÈÉ
BTFSS FLAG_R, 3 ; ÐÅÆÈÌ ÓÑÒÀÍÎÂÊÈ ÒÅÊÓÙÅÃÎ ÂÐÅÌÅÍÈ ÂÊËÞ×ÅÍ
GOTO START_UST_T_CUR ; ÍÅÒ - ÏÅÐÅÕÎÄ ÍÀ ÏÎÄÏÐÎÃÐÀÌÌÓ ÂÊËÞ×ÅÍÈß ÐÅÆÈÌÀ
; ÓÑÒÀÍÎÂÊÈ ÒÅÊÓÙÅÃÎ ÂÐÅÌÅÍÈ
BCF FLAG_R, 3 ; ÂÛÊËÞ×ÈÒÜ ÐÅÆÈÌ ÓÑÒÀÍÎÂÊÈ ÒÅÊÓÙÅÃÎ ÂÐÅÌÅÍÈ
BSF FLAG_R, 6 ; ÂÊËÞ×ÈÒÜ ÐÅÆÈÌ ÎÒÎÁÐÀÆÅÍÈß ÒÅÊÓÙÅÃÎ ÂÐÅÌÅÍÈ
MOVLW B'00001011' ; ÂÊËÞ×ÈÒÜ ÌÎÄÓËÜ CCP1
MOVWF CCP1CON
BCF INTCON, RBIE ; ÇÀÏÐÅÒÈÒÜ ÏÐÅÐÛÂÀÍÈß ÏÎ ÂÕÎÄÀÌ <RB4:RB7>
;-
START_UST_T_CUR ; ÏÎÄÏÐÎÃÐÀÌÌÀ ÂÊËÞ×ÅÍÈß ÐÅÆÈÌÀ ÓÑÒÀÍÎÂÊÈ ÒÅÊÓÙÅÃÎ ÂÐÅÌÅÍÈ
CLRF CCP1CON ; ÂÛÊËÞ×ÈÒÜ ÌÎÄÓËÜ CCP1
MOVLW B'00001000' ; ÂÊËÞ×ÈÒÜ ÐÅÆÈÌ ÓÑÒÀÍÎÂÊÈ ÒÅÊÓÙÅÃÎ ÂÐÅÌÅÍÈ
MOVWF FLAG_R ; ÎÑÒÀËÜÍÛÅ ÂÛÊËÞ×ÈÒÜ
CLRF SEC_L ; Î×ÈÑÒÈÒÜ Ñ×ÅÒ×ÈÊÈ ÑÅÊÓÍÄ
CLRF SEC_H
BSF INTCON, RBIE ; ÐÀÇÐÅØÈÒÜ ÏÐÅÐÛÂÀÍÈß ÏÎ ÂÕÎÄÀÌ <RB4:RB7>
GOTO INT_SOURCE ; ÂÅÐÍÓÒÜÑß Ê ÏÎÈÑÊÓ ÈÑÒÎ×ÍÈÊΠÏÐÅÐÛÂÀÍÈÉ
;-
Ñàìîå ÷èòàåìîå:
Îïåðàöèîííûé ìèêðîýëåêòðîííûé óñèëèòåëü
Ñîâðåìåííàÿ ðàäèîýëåêòðîííàÿ àïïàðàòóðà (ÐÝÀ) õàðàêòåðèçóåòñÿ
òðåìÿ îñíîâíûìè ÷åðòàìè:
ðåçêèì âîçðàñòàíèåì êîëè÷åñòâà êîìïîíåíòîâ è â ñâÿçè ñ ýòèì
çíà÷èòåëüíûì óïëîòíåíèåì àïïàðàòóðû;
ìîáèëüíîñòüþ, òàê êàê ÐÝÀ óñòàíàâëèâàåòñÿ íà îáúåêòàõ, äâèæóùèõñÿ
ñ êîñìè÷åñêèìè ñêîðîñòÿìè;
êîëè÷åñòâåííûì ðîñòîì âûïóñêà àïïàðàòóðû è, ñëåä ...