i would like to display the numbers 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