Page 1 of 1

Downcounter with LCD

Posted: Mon Nov 01, 2010 9:27 am
by F.H.M. Tummers
Hello,
I have made a downcounter with a PIC 16f88 and a 16X2 display.
However it works fine i have one problem left.
When counting from 10 to 0 the display leaves a 0 on the display
10-90-80-70-60-50-40-30-20-10-00.
How can i get rid of this zero.

Greets F. Tummers

Re: Downcounter with LCD

Posted: Mon Nov 01, 2010 10:11 am
by Benj
Hello,

After you have printed out your number you simply need a decision to detect if the number is less then 10.

var < 10

If it is then simply use the print ascii function to print out a space character to hide the remaining 0.

Print_ASCII(" ")

Re: Downcounter with LCD

Posted: Tue Nov 02, 2010 8:41 am
by F.H.M. Tummers
Ok,
I have solved my problem.

Thanks for your advice :P :P :P

Greets,
F. Tummers