<< Chapter < Page Chapter >> Page >
Students fill in missing lines of code to create a Matlab simulation of a four-symbol frequency shift keying (FSK) transmitter. Students are encouraged to change the symbol period and observe the change in the transmitted signal's spectrum.

Prelab: matlab preparation

We have made considerable use of Matlab in previous labs to design filters and determine frequency responses of systems.Matlab is also very useful as a simulation tool.

Use the following Matlab code skeleton to simulate your system and fill in the incomplete portions. Note that the code is notcomplete and will not execute properly as written. How does the spectrum of the transmitted signal change with T symb ?


1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2 % Matlab code skeleton for Digital Transmitter 3 4 close all;clear; 5 6 % Generate random bits 7 bits_per_symbol=2; 8 num_symbols=64; 9 numbits=bits_per_symbol*num_symbols; 10 bits=rand(1,numbits)>0.5; 11 12 Tsymb=32; % samples per symbol 13 14 15 % These are the 4 frequencies to choose from 16 % Note that 32 samples per symbol does not correspond to 17 % an integer number of periods at these frequencies 18 omega1 = 9*pi/32; 19 omega2 = 13*pi/32; 20 omega3 = 17*pi/32; 21 omega4 = 21*pi/32; 22 23 24 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 25 % Transmitter section 26 27 % Initialize transmit sequence 28 index=1; % Initialize bit index 29 n=1; % Initialize sample index 30 phi=0; % Initialize phase offset 31 32 % Generate 64 32-sample symbols 33 while (n<=num_symbols*Tsymb) 34 35 if (bits(index:index+1) == [0 0]) 36 sig(n:n+Tsymb-1) = sin(omega1*[0:Tsymb-1]+phi); 37 phi = omega1*Tsymb+phi; % Calculate phase offset for next symbol 38 phi = mod(phi, 2*pi); % Restrict phi to [0,2*pi) 39 40 % -----------> Insert code here <-------------% 41 42 end % end if-else statements 43 44 index=index+2; % increment bit counter so we look at next 2 bits 45 46 n=n+Tsymb; 47 end % end while 48 49 50 % Show transmitted signal and its spectrum 51 % ---------------> Insert code here <-----------------%

Questions & Answers

What fields keep nano created devices from performing or assimulating ? Magnetic fields ? Are do they assimilate ?
Stoney Reply
why we need to study biomolecules, molecular biology in nanotechnology?
Adin Reply
yes I'm doing my masters in nanotechnology, we are being studying all these domains as well..
what school?
biomolecules are e building blocks of every organics and inorganic materials.
anyone know any internet site where one can find nanotechnology papers?
Damian Reply
sciencedirect big data base
Introduction about quantum dots in nanotechnology
Praveena Reply
what does nano mean?
Anassong Reply
nano basically means 10^(-9). nanometer is a unit to measure length.
do you think it's worthwhile in the long term to study the effects and possibilities of nanotechnology on viral treatment?
Damian Reply
absolutely yes
how to know photocatalytic properties of tio2 nanoparticles...what to do now
Akash Reply
it is a goid question and i want to know the answer as well
characteristics of micro business
for teaching engĺish at school how nano technology help us
Do somebody tell me a best nano engineering book for beginners?
s. Reply
there is no specific books for beginners but there is book called principle of nanotechnology
what is fullerene does it is used to make bukky balls
Devang Reply
are you nano engineer ?
fullerene is a bucky ball aka Carbon 60 molecule. It was name by the architect Fuller. He design the geodesic dome. it resembles a soccer ball.
what is the actual application of fullerenes nowadays?
That is a great question Damian. best way to answer that question is to Google it. there are hundreds of applications for buck minister fullerenes, from medical to aerospace. you can also find plenty of research papers that will give you great detail on the potential applications of fullerenes.
what is the Synthesis, properties,and applications of carbon nano chemistry
Abhijith Reply
Mostly, they use nano carbon for electronics and for materials to be strengthened.
is Bucky paper clear?
carbon nanotubes has various application in fuel cells membrane, current research on cancer drug,and in electronics MEMS and NEMS etc
so some one know about replacing silicon atom with phosphorous in semiconductors device?
s. Reply
Yeah, it is a pain to say the least. You basically have to heat the substarte up to around 1000 degrees celcius then pass phosphene gas over top of it, which is explosive and toxic by the way, under very low pressure.
Do you know which machine is used to that process?
how to fabricate graphene ink ?
for screen printed electrodes ?
What is lattice structure?
s. Reply
of graphene you mean?
or in general
in general
Graphene has a hexagonal structure
On having this app for quite a bit time, Haven't realised there's a chat room in it.
what is biological synthesis of nanoparticles
Sanket Reply
what's the easiest and fastest way to the synthesize AgNP?
Damian Reply
how did you get the value of 2000N.What calculations are needed to arrive at it
Smarajit Reply
Privacy Information Security Software Version 1.1a
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get the best Algebra and trigonometry course in your pocket!

Source:  OpenStax, Ece 320 spring 2004. OpenStax CNX. Aug 24, 2004 Download for free at http://cnx.org/content/col10225/1.12
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Ece 320 spring 2004' conversation and receive update notifications?