hello, i also have some conversion problems.
char InBuff = "12345678";
char OutBuff should be '123456' first 6 digits
char OutB should be '78' last 2 digits (bcd encoded)
the implementation should be a one liner.this is what a have so far.it works, aslong no 0 is involved
OutB = ((InBuff - 0x30) * 10) + (InBuff - 0x30);
can anyone help me out here and show me a good implementation or give me some hints plz.