Milruwan
Member level 1
- Joined
- Jan 20, 2013
- Messages
- 35
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,546
Sir, I am doing a project on DSP based fm receiver for my final year project.
I want to demodulate the IF signal from the receiver and get the FM multiplex signal. I am using zero crossing as the demodulation method.
According to the zero crossing algorithm I except a specific value for specific frequency but this will give a ramp value, continuously varying value for the output. I attach the oscilloscope view of the input and the output(yellow-input blue-output). I want to get a constant value for specific frequency. Please help me regarding this matter.
I want to demodulate the IF signal from the receiver and get the FM multiplex signal. I am using zero crossing as the demodulation method.
Code:
always @ (posedge sclk)
begin
data_now<=adc_dat;
if((((data_prv<8'd100 )&&(data_now>8'd100))||((data_now<8'd100)&&(data_prv>8'd100))))
begin
data_save<=timer2;
dac_dat<=data_save;
data_prv<=data_now;
cnt_en<=1'b0;
#2 cnt_en<=1'b1;
end
end
According to the zero crossing algorithm I except a specific value for specific frequency but this will give a ramp value, continuously varying value for the output. I attach the oscilloscope view of the input and the output(yellow-input blue-output). I want to get a constant value for specific frequency. Please help me regarding this matter.