Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

keil printf redirection

Status
Not open for further replies.

erodeboy

Member level 5
Joined
Nov 15, 2005
Messages
80
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Location
India
Activity points
1,987
keil printf

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.
 

keil printf

Printf uses putchar function so if you will write your own putchar function it will be possible
 

    erodeboy

    Points: 2
    Helpful Answer Positive Rating
keil sprintf

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).
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top