- #1
hisham.i
- 176
- 2
Am trying to write the configuration section for hd44789 display connected to pic16f84 micro controller, and i didn't understand from where can i get the data sent to the ports for the configuration...Example:
MOVLW 03H ;Why 03?
MOVWF PORTB
CALL CLOCK ; Subroutine previously defined
CALL DELAYP1;Subroutine previously defined
MOVLW 02H ; Why 02?
MOVWF PORTB
CALL CLOCK
CALL DELAYP1
MOVLW 02H
MOVWF PORTB
CALL CLOCK
CALL DELAYP1
MOVLW 08H
MOVWF PORTB
CALL CLOCK
MOVLW 03H ;Why 03?
MOVWF PORTB
CALL CLOCK ; Subroutine previously defined
CALL DELAYP1;Subroutine previously defined
MOVLW 02H ; Why 02?
MOVWF PORTB
CALL CLOCK
CALL DELAYP1
MOVLW 02H
MOVWF PORTB
CALL CLOCK
CALL DELAYP1
MOVLW 08H
MOVWF PORTB
CALL CLOCK