Hi,
you will have to make a conversion function from whatever format your get to hex.
or by using a printf function:
int a = 3;
printf("0x%x\n", a);
this will give you 0x3
The data (characters) you sent to PC terminal should be displayed as they were sent.
So, it depends on what you actually send to terminal.
In this case, a simple putc() would work.
//=============================int k;
for (k = 0; k<100; k++) {
putc(k);
}
//=============================
btw, what MCU do you use?
why no one reply to the question?