; ÂÐÅÌÅÍÈ ÂÊËÞ×ÅÍÈß ÍÀ ÈÍÄÈÊÀÖÈÞ
;-
FLAG_R, 4 ; ÐÅÆÈÌ ÓÑÒÀÍÎÂÊÈ ×ÀÑΠÂÊËÞ×ÅÍ STOP_TMR2_2 ; ÏÅÐÅÕÎÄ ÍÀ ÏÎÄÏÐÎÃÐÀÌÌÓ ÎÑÒÀÍÎÂÊÈ ÒÀÉÌÅÐÀ TMR2
;- PORTB, 6 ; ÍÀÆÀÒÀ ÊÍÎÏÊÀ «+1» M8 ; ÍÅÒ - ÏÅÐÅÕÎÄ Ê ÏÐÎÂÅÐÊÅ ÍÀÆÀÒÈß ÊÍÎÏÊÈ «- 1»
; Ñ×ÅÒ×ÈÊÈ ×ÀÑΠSTART_HL, F ; ÈÍÊÐÅÌÅÍÒÈÐÎÂÀÒÜ ÌËÀÄØÈÉ Ñ×ÅÒ×ÈÊ ×ÀÑΠSTATUS, Z START_HH, W ; ÑÒÀÐØÈÉ Ñ×ÅÒ×ÈÊ ÄÎÑ×ÈÒÀË ÄÎ 2 0x02 STATUS, Z M9 ; ÍÅÒ - ÏÅÐÅÕÎÄ ÍÀ ÏÐÎÂÅÐÊÓ ÌËÀÄØÅÃÎ Ñ×ÅÒ×ÈÊÀ
BCF STATUS, Z START_HL, W 0x04 STATUS, Z M9 STATUS, Z START_HL ; ÄÀ - Î×ÈÑÒÈÒÜ ÌËÀÄØÈÉ Ñ×ÅÒ×ÈÊ ×ÀÑÎÂ
CLRF START_HH SET_REG_LCD ; ÏÅÐÅÕÎÄ ÍÀ ÏÎÄÏÐÎÃÐÀÌÌÓ ÓÏÐÀÂËÅÍÈß ÂÛÂÎÄÎÌ
; ÒÅÊÓÙÅÃÎ ÂÐÅÌÅÍÈ ÍÀ ÈÍÄÈÊÀÖÈÞ START_HL, W 0x0A ; Ñ×ÅÒ×ÈÊ ÄÎÑ×ÈÒÀË ÄÎ 10 STATUS, Z SET_REG_LCD ; ÍÅÒ - ÏÅÐÅÕÎÄ ÍÀ ÏÎÄÏÐÎÃÐÀÌÌÓ ÓÏÐÀÂËÅÍÈß ÂÛÂÎÄÎÌ
; ÂÐÅÌÅÍÈ ÂÊËÞ×ÅÍÈß ÍÀ ÈÍÄÈÊÀÖÈÞ START_HL ; ÄÀ - Î×ÈÑÒÈÒÜ ÌËÀÄØÈÉ Ñ×ÅÒ×ÈÊ ×ÀÑΠSTART_HH ; ÈÍÊÐÅÌÅÍÒÈÐÎÂÀÒÜ ÑÒÀÐØÈÉ Ñ×ÅÒ×ÈÊ ×ÀÑΠSET_REG_LCD ; ÏÅÐÅÕÎÄ ÍÀ ÏÎÄÏÐÎÃÐÀÌÌÓ ÓÏÐÀÂËÅÍÈß ÂÛÂÎÄÎÌ
; ÂÐÅÌÅÍÈ ÂÊËÞ×ÅÍÈß ÍÀ ÈÍÄÈÊÀÖÈÞ
;- PORTB, 6 ; ÍÀÆÀÒÀ ÊÍÎÏÊÀ «- 1» STOP_TMR2_2 ; ÏÅÐÅÕÎÄ ÍÀ ÏÎÄÏÐÎÃÐÀÌÌÓ ÎÑÒÀÍÎÂÊÈ ÒÀÉÌÅÐÀ TMR2
; Ñ×ÅÒ×ÈÊ ÅÄÈÍÈÖ ×ÀÑΠSTATUS, C START_HL, F ; ÄÅÊÐÅÌÅÍÒÈÐÎÂÀÒÜ ÌËÀÄØÈÉ Ñ×ÅÒ×ÈÊ ×ÀÑΠSTATUS, C ; ÏÐÎÈÇÎØÅË ÇÀÅÌ SET_REG_LCD ; ÍÅÒ - ÏÅÐÅÕÎÄ ÍÀ ÏÎÄÏÐÎÃÐÀÌÌÓ ÓÏÐÀÂËÅÍÈß ÂÛÂÎÄÎÌ
; ÂÐÅÌÅÍÈ ÂÊËÞ×ÅÍÈß ÍÀ ÈÍÄÈÊÀÖÈÞ STATUS, C 0x09 ; ÄÀ - ÇÀÃÐÓÇÈÒÜ ÍÀ×ÀËÜÍÎÅ ÇÍÀ×ÅÍÈÅ START_HL
;-
; Ñ×ÅÒ×ÈÊ ÄÅÑßÒÊΠ×ÀÑΠSTART_HH, F ; ÄÅÊÐÅÌÅÍÒÈÐÎÂÀÒÜ ÑÒÀÐØÈÉ Ñ×ÅÒ×ÈÊ ×ÀÑΠSTATUS, C ; ÏÐÎÈÇÎØÅË ÇÀÅÌ SET_REG_LCD ; ÍÅÒ - ÏÅÐÅÕÎÄ ÍÀ ÏÎÄÏÐÎÃÐÀÌÌÓ ÓÏÐÀÂËÅÍÈß ÂÛÂÎÄÎÌ
; ÂÐÅÌÅÍÈ ÂÊËÞ×ÅÍÈß ÍÀ ÈÍÄÈÊÀÖÈÞ STATUS, C 0x02 ; ÄÀ - ÇÀÃÐÓÇÈÒÜ ÍÀ×ÀËÜÍÛÅ ÇÍÀ×ÅÍÈß Â Ñ×ÅÒ×ÈÊÈ
MOVWF START_HH 0x04
MOVWF START_HL SET_REG_LCD ; ÍÅÒ - ÏÅÐÅÕÎÄ ÍÀ ÏÎÄÏÐÎÃÐÀÌÌÓ ÓÏÐÀÂËÅÍÈß ÂÛÂÎÄÎÌ
; ÂÐÅÌÅÍÈ ÂÊËÞ×ÅÍÈß ÍÀ ÈÍÄÈÊÀÖÈÞ
;-_TMR2_2 T2CON, TMR2ON; ÎÑÒÀÍÎÂÊÀ ÒÀÉÌÅÐÀ TMR2
SET_REG_LCD START_ML, W IND_0 START_MH, W IND_1 START_HL, W IND_2 START_HH, W
MOVWF IND_3 POINT, 2 ; ÂÛÊËÞ×ÈÒÜ ÒÎ×ÊÓ ÂÎ 2-Ì ÐÀÇÐßÄÅ POINT, 1 ; ÂÊËÞ×ÈÒÜ ÒÎ×ÊÓ Â 1-Ì ÐÀÇÐßÄÅ INT_SOURCE ; ÂÅÐÍÓÒÜÑß Ê ÏÎÈÑÊÓ ÈÑÒÎ×ÍÈÊΠÏÐÅÐÛÂÀÍÈÉ
;-
; ÏÎÄÏÐÎÃÐÀÌÌÀ ÓÑÒÀÍÎÂÊÈ ÂÐÅÌÅÍÈ ÂÛÊËÞ×ÅÍÈß_TIME ; ÓÑÒÀÍÎÂÊÀ ÂÐÅÌÅÍÈ ÂÛÊËÞ×ÅÍÈß FLAG_R, 2 ; ÐÅÆÈÌ ÓÑÒÀÍÎÂÊÈ ÂÐÅÌÅÍÈ ÂÛÊËÞ×ÅÍÈß ÂÊËÞ×ÅÍ CURRENT_TIME; ÍÅÒ - ÏÅÐÅÕÎÄ Ê ÓÑÒÀÍÎÂÊÅ ÒÅÊÓÙÅÃÎ ÂÐÅÌÅÍÈ
FLAG_R, 5 ; ÐÅÆÈÌ ÓÑÒÀÍÎÂÊÈ ÌÈÍÓÒ ÂÊËÞ×ÅÍ SET_HOUR ; ÍÅÒ - ÏÅÐÅÕÎÄ Ê ÓÑÒÀÍÎÂÊÅ ×ÀÑÎÂ
PORTB, 6 ; ÍÀÆÀÒÀ ÊÍÎÏÊÀ «+1» M10 ; ÍÅÒ - ÏÅÐÅÕÎÄ Ê ÏÐÎÂÅÐÊÅ ÍÀÆÀÒÈß ÊÍÎÏÊÈ «- 1»
;-
; Ñ×ÅÒ×ÈÊ ÅÄÈÍÈÖ ÌÈÍÓÒ STOP_ML, F ; ÈÍÊÐÅÌÅÍÒÈÐÎÂÀÒÜ ÌËÀÄØÈÉ Ñ×ÅÒ×ÈÊ ÌÈÍÓÒ STATUS, Z STOP_ML, W ; Ñ×ÅÒ×ÈÊ ÄÎÑ×ÈÒÀË ÄÎ 10 0x0A STATUS, Z SET_REG_LCD1; ÍÅÒ - ÏÅÐÅÕÎÄ ÍÀ ÏÎÄÏÐÎÃÐÀÌÌÓ ÓÏÐÀÂËÅÍÈß ÂÛÂÎÄÎÌ
; ÂÐÅÌÅÍÈ ÂÛÊËÞ×ÅÍÈß ÍÀ ÈÍÄÈÊÀÖÈÞ STOP_ML ; ÄÀ - Î×ÈÑÒÈÒÜ ÌËÀÄØÈÉ Ñ×ÅÒ×ÈÊ ÌÈÍÓÒ
;-
; Ñ×ÅÒ×ÈÊ ÄÅÑßÒÊΠÌÈÍÓÒ STOP_MH, F ; ÈÍÊÐÅÌÅÍÒÈÐÎÂÀÒÜ ÑÒÀÐØÈÉ Ñ×ÅÒ×ÈÊ ÌÈÍÓÒ STATUS, Z STOP_MH, W ; Ñ×ÅÒ×ÈÊ ÄÎÑ×ÈÒÀË ÄÎ 6
XORLW 0x06 STATUS, Z
GOTO SET_REG_LCD1; ÍÅÒ - ÏÅÐÅÕÎÄ ÍÀ ÏÎÄÏÐÎÃÐÀÌÌÓ ÓÏÐÀÂËÅÍÈß ÂÛÂÎÄÎÌ
; ÂÐÅÌÅÍÈ ÂÛÊËÞ×ÅÍÈß ÍÀ ÈÍÄÈÊÀÖÈÞ STOP_MH ; ÄÀ - Î×ÈÑÒÈÒÜ ÑÒÀÐØÈÉ Ñ×ÅÒ×ÈÊ ÌÈÍÓÒ SET_REG_LCD1; ÏÅÐÅÕÎÄ ÍÀ ÏÎÄÏÐÎÃÐÀÌÌÓ ÓÏÐÀÂËÅÍÈß ÂÛÂÎÄÎÌ
; ÂÐÅÌÅÍÈ ÂÛÊËÞ×ÅÍÈß ÍÀ ÈÍÄÈÊÀÖÈÞ
;-
PORTB, 7 ; ÍÀÆÀÒÀ ÊÍÎÏÊÀ «- 1» STOP_TMR2_3 ; ÏÅÐÅÕÎÄ ÍÀ ÏÎÄÏÐÎÃÐÀÌÌÓ ÎÑÒÀÍÎÂÊÈ ÒÀÉÌÅÐÀ TMR2
;-
; Ñ×ÅÒ×ÈÊ ÅÄÈÍÈÖ ÌÈÍÓÒ STATUS, C STOP_ML, F ; ÄÅÊÐÅÌÅÍÒÈÐÎÂÀÒÜ ÌËÀÄØÈÉ Ñ×ÅÒ×ÈÊ ÌÈÍÓÒ STATUS, C ; ÏÐÎÈÇÎØÅË ÇÀÅÌ SET_REG_LCD1; ÍÅÒ - ÏÅÐÅÕÎÄ ÍÀ ÏÎÄÏÐÎÃÐÀÌÌÓ ÓÏÐÀÂËÅÍÈß ÂÛÂÎÄÎÌ
; ÂÐÅÌÅÍÈ ÂÛÊËÞ×ÅÍÈß ÍÀ ÈÍÄÈÊÀÖÈÞ STATUS, C 0x09 ; ÄÀ - ÇÀÃÐÓÇÊÀ ÍÀ×ÀËÜÍÎÃÎ ÇÍÀ×ÅÍÈß STOP_ML
;-
; Ñ×ÅÒ×ÈÊ ÄÅÑßÒÊΠÌÈÍÓÒ STOP_MH, F ; ÄÅÊÐÅÌÅÍÒÈÐÎÂÀÒÜ ÑÒÀÐØÈÉ Ñ×ÅÒ×ÈÊ ÌÈÍÓÒ STATUS, C ; ÏÐÎÈÇÎØÅË ÇÀÅÌ SET_REG_LCD1; ÍÅÒ - ÏÅÐÅÕÎÄ ÍÀ ÏÎÄÏÐÎÃÐÀÌÌÓ ÓÏÐÀÂËÅÍÈß ÂÛÂÎÄÎÌ
; ÂÐÅÌÅÍÈ ÂÛÊËÞ×ÅÍÈß ÍÀ ÈÍÄÈÊÀÖÈÞ STATUS, C 0x05 ; ÄÀ - ÇÀÏÈÑÀÒÜ ÍÀ×ÀËÜÍÎÅ ÇÍÀ×ÅÍÈÅ STOP_MH SET_REG_LCD1; ÍÅÒ - ÏÅÐÅÕÎÄ ÍÀ ÏÎÄÏÐÎÃÐÀÌÌÓ ÓÏÐÀÂËÅÍÈß ÂÛÂÎÄÎÌ
; ÂÐÅÌÅÍÈ ÂÛÊËÞ×ÅÍÈß ÍÀ ÈÍÄÈÊÀÖÈÞ
;-
FLAG_R, 4 ; ÐÅÆÈÌ ÓÑÒÀÍÎÂÊÈ ×ÀÑΠÂÊËÞ×ÅÍ STOP_TMR2_3 ; ÏÅÐÅÕÎÄ ÍÀ ÏÎÄÏÐÎÃÐÀÌÌÓ ÎÑÒÀÍÎÂÊÈ ÒÀÉÌÅÐÀ TMR2
Ñàìîå ÷èòàåìîå:
Ìèêðîôîí óñòðîéñòâî, ïðèíöèï äåéñòâèÿ, ïðèìåíåíèå
Äëÿ îáðàáîòêè è ïåðåäà÷è íà ðàññòîÿíèÿ çâóêîâîé è âèçóàëüíîé
èíôîðìàöèè çâóê è îïòè÷åñêîå èçîáðàæåíèå íåîáõîäèìî ïðåäñòàâèòü â ôîðìå
ýëåêòðè÷åñêèõ ñèãíàëîâ.
Çâóê ïðåîáðàçóþò â ýëåêòðè÷åñêèé ñèãíàë ïîñðåäñòâîì àïïàðàòîâ,
íàçâàííûõ ìèêðîôîíîì. Ìèêðîôîí ýòî óñòðîéñòâî äëÿ ïðåîáðàçîâàíèÿ è óñèëåíèÿ
çâóêîâûõ ÷àñòîò.
Ìèêðîôîí ðåøàåò ...