Vous êtes sur la page 1sur 17

(i)

Implement the ASK modulator in Simulink as shown in Figure 1(a). Refer to Lab Manual. Carrier Frequency = 1800 Hz Data Rate = 300 Bits per Second.

System Design of ASK Modulator

Bernoulli Binary Generator Block Parameter:

Probability of a zero: 0.4 Sample time: 1/300 ( 300 Bits per Second)

Sine Wave Block Parameter:

Amplitude: 1 Frequency (Hz): 1800 (question given) Sample time: 1/10000

Scope Result This is multiplication waveform output result with the sine wave. When binary input is 1, the output waveform will be in ampltide of 1 and -1 while the outwaveform will only remain 0 if the binary input is 0.

(ii)

Implement the non-coherent ASK demodulator as shown in Figure 1(b). Cut-off frequency of the low pass filter = 225 Hz. What is the minimum cut-off frequency of the low-pass filter allowed?

System Design of Non-coherent ASK demodulator

Digital Filter Design Block Parameter: Response Type: Lowpass Window Option: Blackman Sampled Frequency: 1800Hz Cut-off Frequency: 225Hz The rest of settings remain default.

Scope Result

From the third graph of simulation after the half-wave rectifier, amplitude turned from -1 to +1. Low pass frequency was filtered out in fourth graph, signal waveform had been filtered same with the first graph waveform.

(iii)

Implement the PSK Modulator and Demodulator as shown in Fig. 2(a) and (b) in Simulink. Carrier Frequency = 1800 Hz Data Rate = 300 Bits per Second.

System Design of PSK Modulator and Demodulator

Bernoulli Binary Generator Block Parameter: Probability of a zero: 0.5 Sample time: 0.3

Sine Wave 1 Block Parameter: Amplitude: 1 Frequency (Hz): 10 Phase offset (rad): 0 Sample time: 1/1000 Samples per frame: 1

Sine Wave 2 Block Parameter: Amplitude: 1 Frequency (Hz): 10 Phase offset (rad): pi Sample time: 1/1000 Samples per frame: 1

Sine Wave 3 Block Parameter: Amplitude: 1 Frequency (Hz): 1800 Phase offset (rad): 0 Sample time: 1/1000 Samples per frame: 1

Switch Block Parameter Criteria for passing first input: u2 ~= 0 ( input = 1, sine wave = 1; input = 0, sine wave = 0)

Compare To Constant Block Parameter: Operator: > (phase value = 0 degree, operator >; phase value = pi degree, operator < )

Digital Filter Design Block Parameter: Response Type: Lowpass Window Option: Blackman Sampled Frequency: 1800Hz Cut-off Frequency: 300Hz

Scope Result: PSK modulation

Scope above show the PSK modulation result. Binary input = 1, the sine wave 1 will be chosen as output; Binary input = 0, the sine wave 2 will be chosen as output.

Scope 1 Result: PSK demodulation

Figure above shows the result after PSK demodulation simulation. Binary input = 1, the sine wave 1 will be chosen as output; Binary input = 0, the sine wave 2 will be chosen as output.

(iv)

Implement the FSK Modulator and Demodulator as shown in Fig. 3(a) and (b) in Simulink. Carrier Frequencies = 1100 Hz and 2200 Hz Data Rate = 300 Bits per Second.

System Design of FSK Modulator and Demodulator

Sine Wave 1 Block Parameter: Amplitude: 1 Frequency (Hz): 10 Phase offset (rad): 0 Sample time: 1/1000 Samples per frame: 1

Sine Wave 1 Block Parameter: Amplitude: 1 Frequency (Hz): 50 Phase offset (rad): 0 Sample time: 1/1000 Samples per frame: 1

\ Switch Block Parameter Criteria for passing first input: u2 ~= 0 ( input = 1, sine wave = 1; input = 0, sine wave = 0)

Relational Operator Block Parameter: Opearator: > (Sinewave 3 > Sinewave 4, Output = 1; Sinewave 3 < Sinewave 4, Output = 0 )

Digital Filter Design 1 Block Parameter:

Response Type: Lowpass Window Option: Blackman Sampled Frequency: 1100Hz Cut-off Frequency: 5Hz

Digital Filter Design 2 Block Parameter: Response Type: Lowpass Window Option: Blackman Sampled Frequency: 2200Hz Cut-off Frequency: 5Hz

Scope Result 1: FSK modulation

Scope Result 2: FSK Demodulation

Digital Filter filter out the high frequency so that the low frequency pass through it. There is a delay between first waveform and fourth waveform.

Question 1. Provide critical systems parameters for part (ii), (iii), (iv) (e.g. filters attenuation, cut-off frequencies) to ensure good quality recovered signal at the output of demodulator. ASK Modulator and Demodulator

PSK Modulation and Demodulation

When the phase offset changed from 0to 180 , waveform of the result is fold with the first waveform sine wave and it can be changed back by set the relational operator to < (less than). FSK Modulator and Demodulation

Scope Result Carrier frequency 1 = 20Hz ,Carrier frequency 2 = 10Hz

Vous aimerez peut-être aussi