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

Filter Coefficient Loader

Chapter III

1. Filter Number: CLICK on this control whenever a single set of coefficients is to be loaded

into the SPPDM-01 external memory.  Selecting this control enables the Filter Number
Input Control Window (Item 2).

2. Filter Number Input Control Window: This control is enabled whenever the Filter

Number Selector is used.  This control allows entry of the numeric value that identifies a
single set of coefficients as the taps for a specific filter.  The number must be between 1
and 512, the maximum number of filters (MNF) allowed.

3. Filter Range: CLICK on this control whenever multiple sets of coefficients need to be

loaded into the SPPDM-01 external memory.  Selecting this control enables the Filter
Range (From) Input Control (Item 4).

4. Filter Range (From) Input Control: This control is enabled whenever the Filter Range is

selected.  With this control the user enters a numeric value representing the lowest filter
identification number to load.  It represents the starting point identifying the multiple sets
of coefficients as the taps for a specific group of sequentially positioned filters.  The num-
ber must be between 1 and 512, the MNF allowed.

5. Filter Range (To) Indicator: This indicator shows a numeric value representing the high-

est filter identification number LOADED.  It represents the end point, identifying 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 equal or greater than the Filter Range (From) number.

3.3.2 Group B, Coefficients’ Location (Items 6 - 7): Manages the immediate and batch modes

of operation.

6. Workspace: CLICK on the "Workspace" button to enable the Immediate Mode. This

allows the set or sets of filter coefficients to be loaded from the MatLab

TM

Workspace and

immediately accesses the coefficients through a matrix data structure (See Chapter II,
Item 12).  The FCG software may produce the matrix data.  Note: Data is lost 1) if the
workspace is cleared, or 2) quitting the MatLab

TM

environment without saving the

variable contents.

7. Other Location: CLICK the "Other Location" button to enable the Batch Mode window.

This will allow a set or sets of filter coefficients to be loaded from a specific text file into
the SPPDM-01.  Selecting this control enables the Batch Mode Input Control Window
(Item 8).

8. Batch Mode Input Control: This control window becomes active whenever the Batch

Mode Selector "Other Location" is selected.  Use this window to enter any other location
different from the MatLab

TM

workspace.  The complete path-name for the file destination

must be entered.  The name of the file must have the ".coe" suffix, otherwise it will
not be validated. 
The workspace variable created specifies the set of coefficients as an M
x N 
matrix.  Variable is the number of filters and is the number of coefficients per filter.

3.3.3 Group C, Serial Communication (Items 9 – 15): presents the controls used to set and

enter the parameters that control the serial communication protocol.

12

Содержание 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...

Отзывы: