I don't know pic24, but in general two ways to do what you're trying to do in c. 1) Use fprintf - usage: fprint(file, format, parameters...) e.g. fprintf(uart4, "%x", variable); - though I don't know if you can use uart4 directly in that way, or if there is a way to pointfprintf at uart4. 2) Use sprintf - usage: sprintf(char*, format, parameters...) e.g. char output[20]; sprintf(output, "%x", variable); for(i=3D0; iwro= te: > Hi all, > > I am using pic24 and for some reason I am unable to figure out how to sen= d > massage to uart 4 using printf(). > I also use putcUART4() but in my case i want to use printf() to do > conversion between hex or ascii. what I remember supposed > to be a command to point it to uart4 before using printf() or any uart. > does anyone have any idea? > > thanks > > AA > -- > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .