Are you sure that is a number
Hi there,
IF you are using
and it is displaying 6 on your LCD screen it essensially means that it is definately not a 6 but an ASCII representation of 6 which is decimal 54. So check it out.
IF you are using
Code:
LCDOUT, DECarray[1]
then it is a "6" and something else makes your port high. Why not include an else in your IF-ENDIF routine that turns of the bit when it is not greater than 6.
As I always yell on this forum that a more bit of code is needed. For example how are you transferring values or getting values into an array. If by serial in and hyperterminal then it is definately "ASCII"