Problem with lcd code(unwanted characters!)

Status
Not open for further replies.

Roger_NO

Member
Hi!

The problem with my code, is that when i call for an delay in my text table i get extra zeroes "009min" when alli really want is "09min"

Here's the code were the proble appairs!

Code:
COUNTDOWN_10_MIN
		ADDWF PCL,1
		RETLW '1'
		RETLW '0'
		RETLW 6DH
		RETLW 69H
		RETLW 6EH
		CALL DELAY_1MIN
                CALL RESET          ;clear screen to begin on line 1 with following characters
		RETLW '0'
		RETLW '9'
		RETLW 6DH
		RETLW 69H
		RETLW 6EH
		CALL DELAY_1MIN
 
Last edited:
You can't mix calls in your table like that, I'm not sure quite what you're trying to do, but you're doing it completely wrong.
 
the delay worked though but all after that, not so good! so you are probably right! the thing i am trying to do is to make a 10 min delay, and make the count down appair on the lcd! i have looked at your tutorial, but it was hard for me to follow compleatly.

can you paste an example of a count down routine!

Roger
 
There's a count up routine in my 7 segment tutorial, it counts from 0 to 99 and loops round.
 
so what you are saying is that i can use the routine in an lcd relation?

Yes, simply increment, or decrement, a register or registers, and convert to decimal, then ASCII to display. Check tutorial 3.2 which displays a 16 bit incrementing counter as decimal.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…