Ðàçäåëû ñàéòà

Ïîäïðîãðàììà äâîè÷íî-äåñÿòè÷íîé êîððåêöèè

BSF INTCON, RBIE ; ÐÀÇÐÅØÈÒÜ ÏÐÅÐÛÂÀÍÈß ÏÎ ÂÕÎÄÀÌ <RB4:RB7>

GOTO INT_SOURCE ; ÂÅÐÍÓÒÜÑß Ê ÏÎÈÑÊÓ ÈÑÒÎ×ÍÈÊΠÏÐÅÐÛÂÀÍÈÉ

;-

B_TIME_START ; ÏÐÎÂÅÐÊÀ ÍÀÆÀÒÈß ÊÍÎÏÊÈ «ÓÑÒÀÍÎÂÊÀ ÂÐÅÌÅÍÈ

; ÂÊËÞ×ÅÍÈß»

BTFSC PORTA, 2 ; ÍÀÆÀÒÀ ÊÍÎÏÊÀ «ÓÑÒÀÍÎÂÊÀ ÂÐÅÌÅÍÈ ÂÊËÞ×ÅÍÈß»

GOTO B_TIME_STOP ; ÍÅÒ - ÏÅÐÅÕÎÄ Ê ÏÐÎÂÅÐÊÅ ÍÀÆÀÒÈß ÊÍÎÏÊÈ

; «ÓÑÒÀÍÎÂÊÀ ÂÐÅÌÅÍÈ ÂÛÊËÞ×ÅÍÈß»

BTFSS FLAG_R, 1 ; ÐÅÆÈÌ ÓÑÒÀÍÎÂÊÈ ÂÐÅÌÅÍÈ ÂÊËÞ×ÅÍÈß ÂÊËÞ×ÅÍ

GOTO START_UST_T_ST ; ÍÅÒ - ÏÅÐÅÕÎÄ ÍÀ ÏÎÄÏÐÎÃÐÀÌÌÓ ÂÊËÞ×ÅÍÈß ÐÅÆÈÌÀ

; ÓÑÒÀÍÎÂÊÈ ÂÐÅÌÅÍÈ ÂÊËÞ×ÅÍÈß

BCF FLAG_R, 1 ; ÂÛÊËÞ×ÈÒÜ ÐÅÆÈÌ ÓÑÒÀÍÎÂÊÈ ÂÐÅÌÅÍÈ ÂÛÊËÞ×ÅÍÈß

BSF FLAG_R, 6 ; ÂÊËÞ×ÈÒÜ ÐÅÆÈÌ ÎÒÎÁÐÀÆÅÍÈß ÒÅÊÓÙÅÃÎ ÂÐÅÌÅÍÈ

BCF INTCON, RBIE ; ÇÀÏÐÅÒÈÒÜ ÏÐÅÐÛÂÀÍÈß ÏÎ ÂÕÎÄÀÌ <RB4:RB7>

;-

; ÇÀÏÈÑÜ Â EEPROM

BANC2

MOVLW 0x02

MOVWF EEADR ; ÓÑÒÀÍÎÂÊÀ ÍÀ×ÀËÜÍÎÃÎ ÀÄÐÅÑÀ 02h

BANC3

BTFSC EECON1, WR ; ÏÐÎÂÅÐÊÀ ÎÊÎÍ×ÀÍÈß ÇÀÏÈÑÈ Â EEPROM

GOTO $+1

BANC0

MOVF START_ML, W ; ×ÒÅÍÈÅ ÄÀÍÍÛÕ ÈÇ ÐÅÃÈÑÒÐÀ START_ML

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 START_MH, W ; ×ÒÅÍÈÅ ÄÀÍÍÛÕ ÈÇ ÐÅÃÈÑÒÐÀ START_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 START_HL, W ; ×ÒÅÍÈÅ ÄÀÍÍÛÕ ÈÇ ÐÅÃÈÑÒÐÀ START_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 START_HH, W ; ×ÒÅÍÈÅ ÄÀÍÍÛÕ ÈÇ ÐÅÃÈÑÒÐÀ START_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_ST ; ÏÎÄÏÐÎÃÐÀÌÌÀ ÂÊËÞ×ÅÍÈß ÐÅÆÈÌÀ ÓÑÒÀÍÎÂÊÈ ÂÐÅÌÅÍÈ ÂÊËÞ×ÅÍÈß

MOVLW B'00000010' ; ÂÊËÞ×ÈÒÜ ÐÅÆÈÌ ÓÑÒÀÍÎÂÊÈ ÂÐÅÌÅÍÈ ÂÊËÞ×ÅÍÈß

MOVWF FLAG_R ; ÎÑÒÀËÜÍÛÅ ÂÛÊËÞ×ÈÒÜ

BSF INTCON, RBIE ; ÐÀÇÐÅØÈÒÜ ÏÐÅÐÛÂÀÍÈß ÏÎ ÂÕÎÄÀÌ <RB4:RB7>

GOTO INT_SOURCE ; ÂÅÐÍÓÒÜÑß Ê ÏÎÈÑÊÓ ÈÑÒÎ×ÍÈÊΠÏÐÅÐÛÂÀÍÈÉ

;-

B_TIME_STOP ; ÏÐÎÂÅÐÊÀ ÍÀÆÀÒÈß ÊÍÎÏÊÈ «ÓÑÒÀÍÎÂÊÀ ÂÐÅÌÅÍÈ

; ÂÛÊËÞ×ÅÍÈß»

BTFSC PORTA, 3 ; ÍÀÆÀÒÀ ÊÍÎÏÊÀ «ÓÑÒÀÍÎÂÊÀ ÂÐÅÌÅÍÈ ÂÛÊËÞ×ÅÍÈß»

GOTO B_TIME_CURR ; ÍÅÒ - ÏÅÐÅÕÎÄ Ê ÏÐÎÂÅÐÊÅ ÍÀÆÀÒÈß ÊÍÎÏÊÈ

; «ÓÑÒÀÍÎÂÊÀ ÒÅÊÓÙÅÃÎ ÂÐÅÌÅÍÈ»

BTFSS FLAG_R, 2 ; ÐÅÆÈÌ ÓÑÒÀÍÎÂÊÈ ÂÐÅÌÅÍÈ ÂÛÊËÞ×ÅÍÈß ÂÊËÞ×ÅÍ

GOTO START_UST_T_SP ; ÍÅÒ - ÏÅÐÅÕÎÄ ÍÀ ÏÎÄÏÐÎÃÐÀÌÌÓ ÂÊËÞ×ÅÍÈß ÐÅÆÈÌÀ

; ÓÑÒÀÍÎÂÊÈ ÂÐÅÌÅÍÈ ÂÛÊËÞ×ÅÍÈß

BCF FLAG_R, 2 ; ÂÛÊËÞ×ÈÒÜ ÐÅÆÈÌ ÓÑÒÀÍÎÂÊÈ ÂÐÅÌÅÍÈ ÂÛÊËÞ×ÅÍÈß

BSF FLAG_R, 6 ; ÂÊËÞ×ÈÒÜ ÐÅÆÈÌ ÎÒÎÁÐÀÆÅÍÈß ÒÅÊÓÙÅÃÎ ÂÐÅÌÅÍÈ

BCF INTCON, RBIE ; ÇÀÏÐÅÒÈÒÜ ÏÐÅÐÛÂÀÍÈß ÏÎ ÂÕÎÄÀÌ <RB4:RB7>

;-

; ÇÀÏÈÑÜ Â EEPROM

BANC2

MOVLW 0x06

MOVWF EEADR ; ÓÑÒÀÍÎÂÊÀ ÍÀ×ÀËÜÍÎÃÎ ÀÄÐÅÑÀ 06h

BANC3

BTFSC EECON1, WR ; ÏÐÎÂÅÐÊÀ ÎÊÎÍ×ÀÍÈß ÇÀÏÈÑÈ Â EEPROM

GOTO $+1

BANC0

MOVF STOP_ML, W ; ×ÒÅÍÈÅ ÄÀÍÍÛÕ ÈÇ ÐÅÃÈÑÒÐÀ STOP_ML

BANC2

MOVWF EEDATA

BANC3

BCF EECON1, EEPGD ; ÇÀÏÈÑÜ ÁÓÄÅÒ ÏÐÎÈÇÂÎÄÈÒÜÑß Â EEPROM

Ïåðåéòè íà ñòðàíèöó: 2 3 4 5 6 7 8

Ñàìîå ÷èòàåìîå:

Ðàçðàáîòêà ìèêðîêîíòðîëëåðíîãî óñòðîéñòâà ñòàáèëèçàöèè òåìïåðàòóðû
Ýôôåêòèâíàÿ îðãàíèçàöèÿ êîíòðîëÿ èíôîðìàöèè ïðèîáðåòàåò âñ¸ áîëüøåå ïðàêòè÷åñêîå çíà÷åíèå, ïðåæäå âñåãî êàê óñëîâèå óñïåøíîé ïðàêòè÷åñêîé äåÿòåëüíîñòè ëþäåé. Îáúåì èíôîðìàöèè, íåîáõîäèìîé äëÿ íîðìàëüíîãî ôóíêöèîíèðîâàíèÿ ñîâðåìåííîãî îáùåñòâà, ðàñò¸ò èç ãîäà â ãîä. Íà ñåãîäíÿøíèé äåíü ñêëàäûâàåòñÿ ñèòóàöèÿ, â êîòîðîé íàðÿäó ñ ñàìîé ...

www.techstages.ru : Âñå ïðàâà çàùèùåíû! 2024