This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

.asm language

can any one help ! how do i display a number larger than 9 in a LCD screen using .asm language

Parents
  • thanks for the input, i would like to display the number in LCD, i am using a count button, for each increment upt o 9 i am able to display after that i have problem, following is the code i used

    ;***********subroutin
    NUMBER MOVLW 2 ;enables the display
    MOVWF PORTA
    MOVLW 3H
    MOVWF PORTB
    CALL CLOCK
    MOVF COUNT,W ; count is the vasriable from the push button
    MOVWF PORTB
    CALL CLOCK ;clock character onto display.
    RETLW 0

    ;*******display*************

    MSG15 ; NUMBER DISPLAY
    MOVLW 0CH ;Cursor on second line, C3
    CLRF PORTA
    MOVWF PORTB
    CALL CLOCK
    MOVLW 04H
    MOVWF PORTB
    CALL CLOCK
    CALL NUMBER ; is from soubroutin
    CALL DELAY
    RETLW 0

    ;************main program

    i call MSG15 ; to display

Reply
  • thanks for the input, i would like to display the number in LCD, i am using a count button, for each increment upt o 9 i am able to display after that i have problem, following is the code i used

    ;***********subroutin
    NUMBER MOVLW 2 ;enables the display
    MOVWF PORTA
    MOVLW 3H
    MOVWF PORTB
    CALL CLOCK
    MOVF COUNT,W ; count is the vasriable from the push button
    MOVWF PORTB
    CALL CLOCK ;clock character onto display.
    RETLW 0

    ;*******display*************

    MSG15 ; NUMBER DISPLAY
    MOVLW 0CH ;Cursor on second line, C3
    CLRF PORTA
    MOVWF PORTB
    CALL CLOCK
    MOVLW 04H
    MOVWF PORTB
    CALL CLOCK
    CALL NUMBER ; is from soubroutin
    CALL DELAY
    RETLW 0

    ;************main program

    i call MSG15 ; to display

Children
No data