background image

25 Locust St, Haverhill, Massachusetts 01830 • Tel: 800/252-7074, 978/374-0761 • FAX: 978/521-1839

e-mail: [email protected]  •  Web Address: http://www.freqdev.com

SPPDF-01 Development Suite

User’s Manual

Introduction

Chapter I

1.2 Software Description

Users can define and configure filters using FREQUENCY DEVICES’ SPPDF-01 Filter

Coefficient Generator (FCG) software.  The FCG - GUI is invoked from within the MatLab

TM

(User Supplied) environment and sends commands to the MatLab

TM

engine using the specific fil-

ter values loaded into the FCG – GUI.  The MatLab

TM

engine responds to FCG commands and

calculates coefficient sets for the indicated FIR filters.  These coefficient sets are temporarily
stored in the MatLab

TM

workspace environment.  The filter response is displayed graphically with-

in MatLab

TM 

for verification of program convergence and acceptability.  To prevent loss, the coeffi-

cients sets can be stored as files on the PC in a designated folder, before exiting MatLab

TM

.

Note: the FCG software is provided as a convenience to the user.  It is a tool to

facilitate standard FIR filter design.  Experienced MatLab

TM

users may design their own

custom FIR filters for the SPPDM-01 using the appropriate MatLab

TM

FIR design tools, as

long as SPPDF-01 design constraints are met.

Design constraints on the SPPDM-01 FIR Filter Platform are:

Frequency Range: 100 Hz to 20 kHz

Maximum Number of Taps: 300.

Note: Low-pass and high-pass filters are easily configured but some versions of band-
pass and band-reject filters might not converge mathematically within some of the con-
straints.  User may be required to try other parameter combinations until a converging
implementation is found.

Chapter II of this document will be directed to MatLab

TM

users who wish to use Frequency

Devices’ FCG-GUI to design standard FIR filters for the SPPDM-01.  The experienced MatLab

TM

filter designer may skip Chapter II and go right to Chapter III, the Filter Coefficient Loader (FCL)
section.

The FCG software is a design tool for FIR filters to be used within the MatLab

TM

environ-

ment.  The FCG software provides for the entry of specific filter parameters into the MatLab

TM

environment allowing the MatLab

TM

engine to calculate coefficients that approximate the given fil-

ter descriptions.

User must first determine filter type, followed by selection of various specification parame-

ters.  Based on the selected values, MatLab

TM

creates a best approximation set of coefficients.

This set of coefficients corresponds to a single or multiple number of filters and may be managed
in two modes: Immediate and Batch.

Immediate Mode of operation relies on the MatLab

TM

workspace to present the set of

coefficients as an M x N matrix where is the number of filters and is the number
of coefficients for each filter.  See Appendix A - Examples 2 and 3.

Batch Mode of operation creates a text batch file where the system saves the set
of coefficients uniquely identified by the various filters.  See Appendix A – Examples

4 and 5.

5

Содержание SPPDM-01

Страница 1: ...SPPDF 01 Development Suite User s Manual For SPPDM 01 FIR Filter Platform...

Страница 2: ...ient Generator Immediate Mode Operation Multiple Coefficient Sets 19 Example 4 Filter Coefficient Loader Batch Mode Operation Single Set Coefficient 22 Example 5 Filter Coefficient Loader Batch Mode O...

Страница 3: ...y implementing the direct applica tion physical realization and usage of the FIR filters Coefficient loading utilizes the RS232 interface on the SPPDB 01 development board to communicate with MatLabTM...

Страница 4: ...dev com SPPDF 01 Development Suite User s Manual Introduction Chapter I See Figure 1 for SPPDF 01 hardware configuration Figure 1 SPPDF 01 Hardware Configuration An oscilloscope is recommended for tro...

Страница 5: ...Low pass and high pass filters are easily configured but some versions of band pass and band reject filters might not converge mathematically within some of the con straints User may be required to tr...

Страница 6: ...CG and FCGScript Configure the software to run under the installed version of MatLabTM by running the FCGConfig file located under the FCG directory Program Files in the Windows direc tory The FCGConf...

Страница 7: ...the Maximum Bandwidth MB 100 to 20 000 Hz and the Maximum Number of Filters MNF 512 For a specific filter the Per Step Maximum Number of Filters PSMNF is calculated to be PSMNF MB Fstep This value mus...

Страница 8: ...ation Immediate mode and Batch mode 12 Workspace CLICK this button whenever the set sets of filter coefficients are to be dumped into the MatLabTM Workspace This provides immediate access of the coeff...

Страница 9: ...e cursor over any control or indicator in the FCG panel This tool is used to learn about a control or indicator function before its use 2 2 5 Group E Command Items 17 20 allows the user to initiate ce...

Страница 10: ...oftware plug see Appendix B that groups a set of dynamically linked subroutines for translation formatting of coefficient data into a recognizable pattern of information It also uses a graphical user...

Страница 11: ...t DOUBLE CLICK on the new short cut called FCL on the PC desktop to start the program The experienced user may skip the above steps by loading the MatLabTM environment going to the specific directorie...

Страница 12: ...ifying the multi ple sets of coefficients as the taps for a specific group of sequentially positioned filters The number must be between 1 and 512 the MNF allowed The Filter Range To number must be eq...

Страница 13: ...In Buffer Size This control enters a numeric value that specifies the size of the input queue for the selected communication port This number is not limited to a specific range of values A valid inpu...

Страница 14: ...These command buttons are dummy buttons They are for features yet to be implemented They are provided as tools for the experienced pro grammer who wishes to add commands to start a specific sequence...

Страница 15: ...h status at the rate of 48 kHz If the status has changed the DSP follows these steps Check D9 bit If D9 is 0 the filter number selection is set for channel one 1 if D9 is 1 the filter number selection...

Страница 16: ...Second Pass band Cutoff Input Control and the Second Stop band Cutoff Input Control are disabled and no longer visible 3 Sampling Frequency Enter 48000 Hertz as the sampling frequency This value is co...

Страница 17: ...eneration 12 Generate the Coefficients CLICK on Apply to start the immediate mode of coefficients generation process and send the set of coefficients to the MatLabTM workspace This also starts the Amp...

Страница 18: ...it is one 1 14 Inspect results At the MatLabTM environment prompt type whos The system will respond with the information for the coefficients variable Name Size Bytes Class coefficients 1x299 2392 do...

Страница 19: ...under Filter Type select Low Pass as the filter Notice that the Second Pass band Cutoff Input Control and the Second Stop band Cutoff Input Control are disabled and no longer visible An experi enced...

Страница 20: ...ering this parameter 11 Select MatLabTM Workspace CLICK on the workspace location control for immediate mode of coefficients generation 12 Generate the Coefficients CLICK on Apply to start the immedia...

Страница 21: ...NT Remember that when clearing or quitting the workspace the coefficients data will be lost unless the variables are saved to the workspace After saving them the coefficients may be used as desired i...

Страница 22: ...location control to load the coeffi cients directly from the workspace 5 Select the communication port Select 2 as the communication port 6 Select the Parity Select None as the parity for the selected...

Страница 23: ...TM environment prompt type whos The system will respond with the information for the coefficients variable Name Size Bytes Class coefficients 1x320 2560 double array global Grand total is 320 elements...

Страница 24: ...tain a value that will reflect the number of sets loaded from Coefficients Location 4 Select Coefficients Location CLICK Other Location button to load the coefficients from a text file This will enabl...

Страница 25: ...ver and starts the communication protocol This process is repeated as many times as there are sets to be loaded Wait for the communication protocol process to finish After successful completion of the...

Страница 26: ...tform hence the dll suffix The MEX files may be called exactly into the workspace as any M function is called In the SPPDF 01 and in the Windows Platform if there is a MEX file called LINK DLL it is i...

Страница 27: ...cation port to flush Example result condition RS232MEX FI 2 result condition RS232MEX fi 2 9 1 2 CloseCommPort Purpose Closes the specified communication port restores the associated interrupt vectors...

Страница 28: ...int Count number of bytes to read from the selected port Example assign values to the structure element dataelement hex2dec parameter4 port 2 parameter4 data uint8 dataelement parameter4 count 2 resul...

Страница 29: ...84 parameter2 port 2 parameter2 data uint8 dataelement parameter2 count 2 result condition RS232MEX WB parameter2 result condition RS232MEX wb parameter2 9 1 7 ReadToFile Purpose To read from the inpu...

Страница 30: ...d write to output queue of the specified COM port Algorithm Reads bytes from a file and writes them to the output queue until EOF is encountered the byte count is met or the termination byte is encoun...

Страница 31: ...the specific port int Parity parity mode for the port int DataBitsNum number of data bits int StopBitsNum number of stop bits int InQSize input queue size int OutQSize output queue size Examples resu...

Страница 32: ...to provide coefficient memory access for the SPPDM 01 family of products The customer is responsible for obtaining manufacturer s data sheets and listed components for layout purposes The only item t...

Отзывы: