Is it possible to redirect the output of printf from serial port to some other port like port 1. so that i can use printf to print a string with a variable (ex : [speed : 200 rpm] - 200 is a variable) in a lcd.
Instead of Printf, u can use sprintf to print ur data to a string first and then u can write simple routine which displays string on LCD (or which outputs string on Port1).