Program 8

Nasza ocena:

3
Wyświetleń: 735
Komentarze: 0
Notatek.pl

Pobierz ten dokument za darmo

Podgląd dokumentu
Program 8 - strona 1

Fragment notatki:


;==============================================================================
;Listing 7.8 Zmiana zaresu pomiarowego - przelaczanie dzielnika napiecia
;==============================================================================
;zakres 1, dzielnik R1/Rx
bsf gpio, gp0 ;1 - gp0
bsf status, rp0 ;bank 1
movlw b'00xxx110' ;gp0 - wyjscie, gp1 - wejscie,
movwf trisio
bcf status, rp0 ;bank 0
call pomiar ;wykonaj pomiar
;zakres 2, dzielnik R2/Rx
bsf gpio, gp6 ;1 - gp1
bsf status, rp0 ;bank 1
movlw b'00xxx101' ;gp1 - wyjscie, gp0 - wejscie,
movwf trisio
bcf status, rp0 ;bank 0
call pomiar ;wykonaj pomiar
... zobacz całą notatkę



Komentarze użytkowników (0)

Zaloguj się, aby dodać komentarz