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.

Microblaze rs232 C code

Status
Not open for further replies.

FuzzySNR

Member level 2
Joined
Oct 3, 2005
Messages
47
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,688
xuartlite_recv

Anyone could give an example in C code for MicroBlaze of how to send these packets through COM1 (RS232), setting up a connection channel between server-client at 9600 baud. A liitle catch here...the server is only allowed to send the next packet after the client has echoed the packet back to server. The latter should listen for the return packets and only issue the next sync. packet after it has received the appropriate echo.

For example,

Sync0: 0xFA, 0xFB, 0x03, 0x00, 0x00, 0x00
Sync1: 0xFA, 0xFB, 0x03, 0x01, 0x00, 0x01
Sync2: 0xFA, 0xFB, 0x03, 0x02, 0x00, 0x02

Cheers!
 

microblaze c

D:\EDK\EDKexamples(D:\ EDK installed target directory ) example of MB_Spartan3_Tutorial
have similar function as you want .
 

microblaze rs232

Use this function ( I think that is the name)

XuartLite_recv
XuartLite_send

There are also send and receive byte function.

Look at the Xuartlite.h code to find out the name of the functions.
 

xuartlite_send

eziggurat said:
Use this function ( I think that is the name)

XuartLite_recv
XuartLite_send

There are also send and receive byte function.

Look at the Xuartlite.h code to find out the name of the functions.

Where are those located mate?
 

microblaze c code example

Look in the EDK installation folder, mate :)
 

xuartlite_send example

I found it! Cheers!:D
 

rs 232 to ethernet converter on microblaze

helo all,


i want to implement rs 232 to ethernet converter(serial device server) in microblaze.anybody have some reference design that i can look into? i am new to network programming and microblaze. :?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top