datasheetbank_Logo
Технический паспорт Поисковая и бесплатно техническое описание Скачать

AN84 Просмотр технического описания (PDF) - Silicon Laboratories

Номер в каталоге
Компоненты Описание
Список матч
AN84
Silabs
Silicon Laboratories Silabs
AN84 Datasheet PDF : 26 Pages
1 2 3 4 5 6 7 8 9 10 Next Last
APPENDIX A—SAMPLE MATLAB CODE
AN84
A sample MATLAB program for use in setting the hybrid coefficients is shown below. The code takes the ACIM
(Register 30) setting and line model as an input and outputs the best coefficient for the digital hybrid to match the
line.
function hdh = dig_hybrid(ACIM, R1line, R2line, Cline, HtMag, HtPhase, HrMag,
HrPhase);
% hdh = dig_hybrid(ACIM, R1line, R2line, Cline, HtMag, HtPhase, HrMag, HrPhase);
%
% This function calculates the coefficient values for the digital
% hybrid given a R1+R2||C model for the line.
%
% ACIM : register setting of the AC termination
% R1line : line R1
% R2line : line R2
% Cline : line C
% HtMag : Transmit path response
% HtPhase : Transmit path response
% HrMag : Receive path response
% HrPhase : Receive path response
%
% hdh : digital hybrid coefficients
Nact=ACIM+1;
if(R1line==0), R1line=eps; end
if(R2line==0), R2line=eps; end
if(Cline==0), Cline=eps; end
%eps is the smallest value after 0
% Set sample rate and frequency grid
fs=16000;
f=[eps:1:7999];
w=2*pi*f/fs;
%%%%%% Transmit path (Ht)
Ht = HtMag .* exp(j*HtPhase)
%%%%%%% Receive path (Hr)
Hr = HrMag .* exp(j*HrPhase)
Rev. 0.6
7

Share Link: 

datasheetbank.com [ Privacy Policy ] [ Request Datasheet ] [ Contact Us ]