Hi, Any one know how to direct I/O for printf function? please help me...
All you need to do is "steer" the output in putchar: if(serial) SBUF=c; // over-simplified else P1=c; // put character on pins