[Solved] How to change a char to ASCII form?
Buff_Y[2] = (Y / 100) + 0x30; Buff_Y[1] = (Y / 10) % 10+0x30; Buff_Y[0] = (Y % 10) + 0x30; This is all good. If you print those three bytes, you will see that they contain the right values. SBUF = *Buff_Y; This, however, indicates confusion. *Buff_Y is equivalent to Buff_Y[0]. That is a … Read more