how to convert binary data from serial to parallel??

i am doing coding of OFDM. i need to convert the serial binary data to parallel form.

2 Kommentare

Is this question about Simulink, or is it a question abou using a serial to parallel hardware interface?
Simran
Simran am 25 Feb. 2013
neithr for simulink nor for hardwre interface.. i need simple for loop coding or by using reshape command.. thnx

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Walter Roberson
Walter Roberson am 25 Feb. 2013
parallel_form = reshape( serial_form, number_parallel_bits, []) .' ;
For example,
parallel_form = reshape( YourData, 8, []) .' ;
This assumes you want the parallel data per-row. It also assumes that the serial data is exactly divisible into parallel frames.

5 Kommentare

how to convert serial to parallel data using simulink @walter roberson
Is this question about using the Simulink reshape block, or is it a question about using a serial to parallel hardware interface, or is it a question about converting values to a bunch of bits numerically?
Hi guys,
I have the same problem in creating a serial to parallel & parallel to serial converters using Simulink. Could someone help me out here..??
@Walter Roberson, thank you!
What about the other way around? How will the general expression look like to convert from parallel to serial?
reshape(parallel_form.',1,[])

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Simulation finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 25 Feb. 2013

Kommentiert:

am 21 Okt. 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by