PDA

View Full Version : Modulation with a baseband signal in Matlab


Nitram
11-23-2009, 02:41 AM
Hi,

I have a simple matlab question: I have a baseband signal with a 2MH
bandwidth (wideband), sampled at 100MHz. I would like to use this signal t
modulate a 5Ghz carrier. What is the simplest way to proceed? I wa
thinking using the ammod function, but in that case I would need t
resample my signal to a higher sampling rate (which may add som
distortion). Is there a more elegant way to go about it?

Thanks

Vladimir Vassilevsky
11-23-2009, 03:44 AM
Nitram wrote:

> Hi,
>
> I have a simple matlab question: I have a baseband signal with a 2MHz
> bandwidth (wideband), sampled at 100MHz. I would like to use this signal to
> modulate a 5Ghz carrier. What is the simplest way to proceed?

The simplest way to proceed is do everything in the baseband.


Vladimir Vassilevsky
DSP and Mixed Signal Design Consultant
http://www.abvolt.com

Nitram
11-23-2009, 03:26 PM
>The simplest way to proceed is do everything in the baseband.
>

My aim is to test out a frequency search algorithm where the receiver doe
not know the carrier frequency of the transmitted signal. Therefore, I nee
to go to RF in order to verify my search algorithm (unless there is
better way).

Thanks

Vladimir Vassilevsky
11-23-2009, 03:32 PM
Nitram wrote:

>>The simplest way to proceed is do everything in the baseband.
>>
>
>
> My aim is to test out a frequency search algorithm where the receiver does
> not know the carrier frequency of the transmitted signal.

If your goal is frequency search algorithm, why bother with low level
details in time domain?

Therefore, I need
> to go to RF in order to verify my search algorithm (unless there is a
> better way).

Split your problem into a set of different problems at different scales
and do everything in the baseband.

Vladimir Vassilevsky
DSP and Mixed Signal Design Consultant
http://www.abvolt.com

Eric Jacobsen
11-23-2009, 03:41 PM
On 11/23/2009 8:26 AM, Nitram wrote:
>> The simplest way to proceed is do everything in the baseband.
>>
>
> My aim is to test out a frequency search algorithm where the receiver does
> not know the carrier frequency of the transmitted signal. Therefore, I need
> to go to RF in order to verify my search algorithm (unless there is a
> better way).
>
> Thanks

Is the algorithm going to be applied at baseband or at RF? If it will
be applied to the baseband signal, why not test it there? Frequency
offset at RF = frequency offset at baseband.

--
Eric Jacobsen
Minister of Algorithms
Abineau Communications
http://www.abineau.com

Nitram
11-23-2009, 04:06 PM
>
>If your goal is frequency search algorithm, why bother with low level
>details in time domain?

I guess I should explain myself in more details:

Actually I want to extract synchronization information of an OFDM signal
I am planning to use cyclic prefix correlation to get the timin
information and then wideband filtering plus a correlation of a know
sequence in frequency domain to get the frequency correlation. Therefore,
have to introduce a timing and frequency offset (which I was hoping coul
be anywhere from 0 to 50MHz). I was planning to introduce the frequenc
offset by upconverting the signal to RF and downconverting it with
slighthly different LO, creating a frequency offset.


>> Therefore, I need
>> to go to RF in order to verify my search algorithm (unless there is a
>> better way).
>
>Split your problem into a set of different problems at different scales
>and do everything in the baseband.

I am not sure if I understand correctly what are the different scales yo
are thinking of. Would it be possible to elaborate?

I really appreciate your help.

Nitram
11-23-2009, 04:25 PM
>Is the algorithm going to be applied at baseband or at RF? If it will
>be applied to the baseband signal, why not test it there? Frequency
>offset at RF = frequency offset at baseband.

True, but I would need to simulate pretty large frequency offset e.g
cases where half the bandwidth of the baseband signal is filtered out b
the RF front-end filter. What would be a simple way to achive this i
baseband?

Thanks

Eric Jacobsen
11-23-2009, 06:17 PM
On 11/23/2009 9:25 AM, Nitram wrote:
>> Is the algorithm going to be applied at baseband or at RF? If it will
>> be applied to the baseband signal, why not test it there? Frequency
>> offset at RF = frequency offset at baseband.
>
> True, but I would need to simulate pretty large frequency offset e.g.
> cases where half the bandwidth of the baseband signal is filtered out by
> the RF front-end filter. What would be a simple way to achive this in
> baseband?
>
> Thanks

Why not model the RF filter effect at baseband? Is there an asymmetric
distortion that you need to model?

--
Eric Jacobsen
Minister of Algorithms
Abineau Communications
http://www.abineau.com

Nitram
11-23-2009, 08:28 PM
>Why not model the RF filter effect at baseband? Is there an asymmetric
>distortion that you need to model?

What I would need to do is shift my baseband signal by a certain frequency
offset, pass it through a lowpass filter to emulate a receiver RF filter(in
the graph the lowpass filter is represented by a brickwall filter) and then
attempt to find the frequency of the random shift on the receiver. ^
^
| |_________
|______ | _____|<--low pass filter
| \ | | |\
| \ --> | | | \<--shifted signal
|________\_________>f |___|_____|__\______>f
<--------> <-------->
BW
The shift would be a simple complex multiplication and I guess the only
thing I need to be careful about is not to shift my signal too far so that
I get aliasing before my lowpass filter (either this or do successive
shift/lowpass procedures).

What do you think?

Thanks.

Eric Jacobsen
11-23-2009, 08:51 PM
On 11/23/2009 1:28 PM, Nitram wrote:
>> Why not model the RF filter effect at baseband? Is there an asymmetric
>> distortion that you need to model?
>
> What I would need to do is shift my baseband signal by a certain frequency
> offset, pass it through a lowpass filter to emulate a receiver RF filter(in
> the graph the lowpass filter is represented by a brickwall filter) and then
> attempt to find the frequency of the random shift on the receiver. ^
> ^
> | |_________
> |______ | _____|<--low pass filter
> | \ | | |\
> | \ --> | | | \<--shifted signal
> |________\_________>f |___|_____|__\______>f
> <--------> <-------->
> BW
> The shift would be a simple complex multiplication and I guess the only
> thing I need to be careful about is not to shift my signal too far so that
> I get aliasing before my lowpass filter (either this or do successive
> shift/lowpass procedures).
>
> What do you think?
>
> Thanks.
>

If you're trying to simulate the effects of a frequency offset and how
it would be affected by the frequency selectivity of the RF or IF
filter, that looks appropriate to me.

--
Eric Jacobsen
Minister of Algorithms
Abineau Communications
http://www.abineau.com

Nitram
11-24-2009, 03:31 AM
>
>If you're trying to simulate the effects of a frequency offset and how
>it would be affected by the frequency selectivity of the RF or IF
>filter, that looks appropriate to me.
>
Thank you so much, I will try it.

Grant Griffin
11-25-2009, 01:49 AM
Nitram wrote:
>> Why not model the RF filter effect at baseband? Is there an asymmetric
>> distortion that you need to model?
>
> What I would need to do is shift my baseband signal by a certain frequency
> offset, pass it through a lowpass filter to emulate a receiver RF filter(in
> the graph the lowpass filter is represented by a brickwall filter) and then
> attempt to find the frequency of the random shift on the receiver. ^
> ^
> | |_________
> |______ | _____|<--low pass filter
> | \ | | |\
> | \ --> | | | \<--shifted signal
> |________\_________>f |___|_____|__\______>f
> <--------> <-------->
> BW
....


Cool text-graph!

Grant
--
__________________________________________________ ___________________

Grant R. Griffin
Publisher of dspGuru http://www.dspguru.com
Iowegian International Corporation http://www.iowegian.com
See http://www.iowegian.com/img/contact.gif for e-mail address

robert bristow-johnson
11-26-2009, 01:57 AM
On Nov 24, 8:49*pm, Grant Griffin <[email protected]> wrote:
> Nitram wrote:
> >> Why not model the RF filter effect at baseband? *Is there an asymmetric
> >> distortion that you need to model?
>
> > What I would need to do is shift my baseband signal by a certain frequency
> > offset, pass it through a lowpass filter to emulate a receiver RF filter(in
> > the graph the lowpass filter is represented by a brickwall filter) and then
> > attempt to find the frequency of the random shift on the receiver. ^ * * *
> > * * * * * * * * * *^ *
> > | * * * * * * * * * * * * * |_________ * * * *
> > |______ * * * * * * * * * * | * *_____|<--low pass filter
> > | * * *\ * * * * * * * * * *| * | * * |\
> > | * * * \ * * * * * * * --> | * | * * | \<--shifted signal
> > |________\_________>f * * * |___|_____|__\______>f *
> > <--------> * * * * * * * * * * *<-------->
> > * * BW
>
> ...
>
> Cool text-graph!
>

yeah, i'm impressed, too. makes me continue to be glad i read these
with a mono-spaced font.

and always, it's nice to see you in these parts, Grant.

r b-j