this is what i have tried so far
DataA=DATAIN(8)
Gosub HEXConvert
The idea is data from the attay is pased to a temp value, a subrotine is called end if the values are bigger than 9 the coresponding digital value is replaced into the temp value, if none of the if statements are true the value are returnd
it still return the same hex caractor - any ideas
Code:HEXConvert: IF DATAA = $A THEN DATAA = 10 RETURN ENDIF IF DATAA = $B THEN DATAA = 11 RETURN ENDIF IF DATAA = $C THEN DATAA = 12 RETURN ENDIF IF DATAA = $D THEN DATAA = 13 RETURN ENDIF IF DATAA = $E THEN DATAA = 14 RETURN ENDIF IF DATAA = $F THEN DATAA = 15 RETURN ENDIF RETURN
Bookmarks