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.

printf or scanf in dual UART ?

Status
Not open for further replies.

tr_shuvo

Newbie level 1
Joined
Oct 30, 2006
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,287
uart scanf

Hi,
How does printf and scanf in C51 works in dual serial port? Does it actually work in dual serial port or only in default serial port?

Can I configure or reconfigure printf or scanf to make it work in both or individual serial port?

thanks in advance.
 

scanf uart

Hi,
Either your compiler should have an option to specify the port like COM1/COM2 to be used or you have to write your own prinf() and getc() functions.

Regards,
Laktronics
 

In order to use the functions printf, scanf, etc., usually you have to change the functions putchar and getchar to suit the UART (or IO devices) you want to use. I suggest you to read the user manual of your compiler.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top