Sending binary data from Matlab to FPGA using the serial port

Guest #3822008
Rate this post
• ▲ useful
▼ not useful
Hello,
In fact, I'm working on a project which aims to implement a 
reconfigurable Zigbee tranceiver on XUPV5-LX110T Evaluation platform 
which integrates a Virtex 5 FPGA. I am currently in the phase of real 
test, so now I just want to test my transmitter.
First, I want to send my binary data from Matlab (computer) to FPGA. The 
medium of communication is the RS232 serial link. Is there a solution in 
Matlab (communication protocol) that sends a binary stream on this port 
knowing my main entrance on FPGA is 4 bits?
Secondly, how to create a PRBS (Pseudo Random Binary Sequence) in Matlab 
(an output of 4 bits) to integrate it into the communication protocol?
And thank you in advance for everyone.
Regards,
Isamel
Moderator (Company: Titel) #4314010
Rate this post
• ▲ useful
▼ not useful
Isamel wrote:
> Is there a solution in Matlab (communication protocol) that sends a
> binary stream on this port knowing my main entrance on FPGA is 4 bits?
Is the computers interface able to handle that specific 
"4-bit-transmission"?
RS232 is a byte oriented interface. I don't think that your 
"matlab-computer" is able to transmit half-bytes.
You will have to wrap your specific data into your specific protocol. 
And you will have to decode that protocol in the FPGA...

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.