def val2hexval(val):
    """Convert int to decimal digit equivalent hex byte."""
    ret = 0x00
    ret |= ((val//10)&0x0f)<<4	# msd	97 -> 0x90
    ret |= (val%10)&0x0f	# lsd   97 -> 0x07
    return ret