, . 0 1000 04,88 . ADRESL ADRESH 01000d, .

;------------------------------------------------------------- TIME1 ; 20

MOVWF TIMER1 TIMER1,F $+1

;-------------------------------------------------------------_START ; ADCON0,GO ; ADCON0,GO ; $-1

;-------------------------------------------------------------------

, TIMER1, 26h. 20 . TIME1.

T - , Fosc - ; n - . DECFSZ, 1 ( 0) GOTO, 2 , n = 3.

.

2.4

, . , , ADRESL ADRESH TEMP_TL TEMP_TH - .

;-------------------------------------------------------------------

; FLAG_R,7 ; ST_NAGREV ; - B'00000100' ; - POINT ADRESL,W ;

; TEMP_TL ADRESH,W

MOVWF TEMP_TH BIN_DEC ; -

;

;--------------------------------------------------------------

2.5

. ( 0 FLAG_R1 1), . , .

;--------------------------------------------------------------_NAGREV ; FLAG_R1,0 ; $+3 PORTB,2 ; -

GOTO OUT_LED PORTA,1 ;

GOTO $+4 PORTB,3 ; - "

;"

BCF PORTB,2 ;

GOTO OUT_LED PORTB,3 ; " "

;--------------------------------------------------------------

, 50 ().

DELT_T, 50:

;

Nmax - ADRESL ADRESH, Tmax.

Tmax = 1000 Nmax = 1000d,

.

;--------------------------------------------------------------

; MIN_TH ; MIN_TH MAX_TL,W DELT_T ; MAX_TL MIN_TL ; MIN_TL MIN_TH,W ; MAX_TH,W ; MAX_TH 1 MIN_TH ; MIN_TH STATUS,C ; $+4 MIN_TL ; MIN_TL MIN_TH MIN_TH STATUS,C ;

;--------------------------------------------------------------

RC- RL-
(), . ...

.25
1976 X.25, PSPDN (Packet-Switched Public Data Networks), 7- ISO OSI(Open System Interconnection). ...

© 2019 | www.techexpose.ru