K
Koky
Guest
J'ai trouvé cette source, mais je ne comprends pas pourquoi on utilise movlw (1 <<LCRW)
Quel est le résultat?Pourquoi ne pas utiliser une valeur réelle?
LCEN equ 1; RB1
LCRW equ 2; RB2
LCRS equ 3; RB3
tst_lcd_busy
movlw (1 <<LCRW)
movwf PORTB
waitbusy
PORTB bsf, LCEN, obtenir de salut-Nibble
rlf PORTB, W; Busy-pavillon à effectuer
PORTB BCF, LCEN
PORTB bsf, LCEN, se lo-Nibble
PORTB BCF, LCEN
ÉTAT btfsc, C;
waitbusy goto;
retour
Quel est le résultat?Pourquoi ne pas utiliser une valeur réelle?
LCEN equ 1; RB1
LCRW equ 2; RB2
LCRS equ 3; RB3
tst_lcd_busy
movlw (1 <<LCRW)
movwf PORTB
waitbusy
PORTB bsf, LCEN, obtenir de salut-Nibble
rlf PORTB, W; Busy-pavillon à effectuer
PORTB BCF, LCEN
PORTB bsf, LCEN, se lo-Nibble
PORTB BCF, LCEN
ÉTAT btfsc, C;
waitbusy goto;
retour