UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor applelonger
Visitor
2,828 Views
Registered: ‎03-29-2011

How to get data from RS232?

Hi, everyone. I am learning EDK following the user guide "EDK Concepts, Tools, and Techniques". And I debugged the software project "helloworld' , there was a print("hello world\n\r") statement used to send "hello world" to PC through RS232. Can you tell how can I get data from PC? I tried "scanf" , but it didn't work. THX. canlonglin

0 Kudos
2 Replies
Explorer
Explorer
2,793 Views
Registered: ‎03-31-2011

Re: How to get data from RS232?

to see output in the hyperterminal of host pc you can use function "xil_printf"

0 Kudos
Explorer
Explorer
2,792 Views
Registered: ‎03-31-2011

Re: How to get data from RS232?

scanf will not work to get data from RS232, you have to use function

 

  • Xuint32 XUartLite_RecvByte (Xuint32 BaseAddress)

where BaseAddress contains the base address of the UART(RS 232 DCE port) device.

 

thanx

 joy

0 Kudos