Hi,

I am not quite sure what you are trying to say. Are you saying that your PC is sending the data or the PIC is sending the data?

Your DECIMAL to HEX conversion method is not the way to send out the data.

You need to convert it to ASCII in your program, then have the PIC send it. The PC will then display the DECIMAL equiv.

The easy way to do it is to add 30H to each digit... In your case:

30H + 7 = 37H
30H + 0 = 30H

70(D) = 37h 30h should be sent out, along with a CR and LF.

So in your program send out these 4 ASCII chars to display on the PC:

37 30 0D 0A

I hope this works.