| Electronic Components Datasheet Search |
|
AN84 Datasheet(PDF) 7 Page - Silicon Laboratories |
|
|
|||||||||||||||||||||||||||||
AN84 Datasheet(HTML) 7 Page - Silicon Laboratories |
|
7 / 26 page ![]() AN84 Rev. 0.6 7 APPENDIX A—SAMPLE MATLAB CODE 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) |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |