background image

dsPIC

® 

DSC DTMF DETECTION

LIBRARY USER’S GUIDE

©

 2008 Microchip Technology Inc.

DS70332A-page 31

Index

A

API Functions

DTMFDetection

.............................................. 21

DTMFDetInit

.................................................. 19

C

Country Settings ...................................................... 17
CTR-21 Compliance................................................. 15
Customer Notification Service.................................... 5
Customer Support...................................................... 6

D

DAA/AFE

Configuration Options ....................................... 15
Connections to dsPIC30F................................. 13
Driver Functions................................................ 27
Gain Control...................................................... 14

DAA/AFE Driver Functions

go_off_hook

.................................................. 29

go_on_hook

.................................................... 29

Init_Si3021

.................................................. 27

SetFs7200

...................................................... 28

SetFs8000

...................................................... 28

speaker_off

.................................................. 30

Documentation

Conventions........................................................ 3
Layout ................................................................. 2

F

FCC Compliance...................................................... 15
Free Software Foundation.......................................... 4

G

GNU Language Tools ................................................ 4

I

Internet Address......................................................... 5

J

JATE Compliance .................................................... 15

M

Microchip Internet Web Site ....................................... 5
MPLAB IDE User’s Guide .......................................... 4

P

PTT Compliance ...................................................... 15

R

Reading, Recommended ........................................... 4

S

SetFs8000................................................................ 28

W

Warranty Registration ................................................ 3
WWW Address........................................................... 5

Содержание dsPIC DSC DTMF

Страница 1: ...2008 Microchip Technology Inc DS70332A dsPIC DSC DTMF DETECTION LIBRARY USER S GUIDE...

Страница 2: ...hnology Incorporated in the U S A All other trademarks mentioned herein are property of their respective companies 2008 Microchip Technology Incorporated Printed in the U S A All Rights Reserved Print...

Страница 3: ...log Front End AFE 2 1 Analog Front End AFE Overview 13 2 2 Gain Control Register Settings 14 2 3 Si3035 FCC Options 15 2 4 Si3034 Global Based Chipset Options 15 Chapter 3 Application Programming Inte...

Страница 4: ...dsPIC DSC DTMF Detection Library User s Guide DS70332A page iv 2008 Microchip Technology Inc NOTES...

Страница 5: ...dated and this manual is no exception Microchip tools and documentation are constantly evolving to meet customer needs so some actual dialogs and or tool descriptions may differ from those in this do...

Страница 6: ...Chapter 2 Configuring the Analog Front End AFE This chapter describes the Analog Front End AFE on the dsPICDEM net Connectivity Development Board that provides a programmable line interface to support...

Страница 7: ...ow or dialog Save project before build Underlined italic text with right angle bracket A menu path File Save Bold characters A dialog button Click OK A tab Click the Power tab N Rnnnn A number in veri...

Страница 8: ...are for the dsPIC30F and dsPIC33F MCU families MPLAB ASM30 MPLAB LINK30 and Utilities User s Guide DS51317 This document details Microchip Technology s language tools for dsPIC DSC devices based on GN...

Страница 9: ...ification whenever there are changes updates revisions or errata related to a specified product family or development tool of interest To register access the Microchip web site at www microchip com cl...

Страница 10: ...cation Engineer FAE Technical Support Customers should contact their distributor representative or Field Application Engineer FAE for support Local sales offices are also available to help customers A...

Страница 11: ...quirements To help meet these objectives a sample application program running on a dsPIC33F device is analyzed in Chapter 4 DTMF Detection Demonstration This sample program demonstrates the remote DTM...

Страница 12: ...minimum silence duration for the tone validation The shape of a DTMF tone is a result of the combination of these two phases This tone also includes the Pause period 1 3 1 Tone Validation Test The Sh...

Страница 13: ...ned to work on a frame consisting of 100 samples The Goertzel DFT algorithm is repeated twice so that the processing is periodic with a sample size of 200 samples Thus the difference in the frame size...

Страница 14: ...les EQUATION 1 2 FEED FORWARD PHASE EQUATION After computing for N number of samples the output of the Goertzel DFT filter con verges towards a pseudo DFT value vk N which can be used to determine the...

Страница 15: ...OF FREQUENCIES AND FILTER COEFFICIENTS First Harmonics N 100 Fs 8 kHz Second Harmonics N 100 Fs 8 kHz DTMF K K N Fs cos 2 k N DTMF K K N Fs cos 2 k N 697 8 7125 697 27979 1394 17 425 1394 15013 770 9...

Страница 16: ...as answering machines public and private telephone exchanges telephony and line test equipment remote control of computer and telephone equipment Table 1 4 provides the size of the Data Memory Program...

Страница 17: ...Si3035 chipsets consist of the following DAA and AFE ICs Si3034 chipset Si3021 AFE Si3014 DAA Si3035 chipset Si3021 AFE Si3012 DAA The Si3021 chipset is configured as the Master device and uses its in...

Страница 18: ...Register Setting Control Registers 16 17 and 18 The Si3034 Si3035 chipset supports four configurable International Control registers Si3034 is a Global chipset and can be configured for Federal Commu...

Страница 19: ...FIR filter selection for transmit and receive filters n 0 Enable FIR filter n 1 Enable IIR filter On power up default FIR filter is enabled Note The Si3034 Global based chipset options are available...

Страница 20: ...0 Normal Gain n 1 If FCC DC Termination mode is selected setting this bit will force the Japan DC Termination mode while allowing for a transmit level of 1dBm define R18_VOL n Line Voltage Adjust Use...

Страница 21: ...or 0 0 2 0 0 2 2 Finland 0 0 or 1 3 0 0 3 0 France 0 0 or 1 3 0 0 3 0 Germany 0 0 or 1 3 0 0 3 0 Greece 0 0 or 1 3 0 0 3 0 Guam 0 0 2 0 0 0 0 Hong Kong 0 0 2 0 0 0 0 Hungary 0 0 2 0 0 0 0 Iceland 0 0...

Страница 22: ...0 Singapore 0 0 2 0 0 0 0 Slovakia 0 0 2 0 0 0 0 Slovenia 0 0 2 1 1 0 0 South Africa 1 0 2 1 0 0 0 Spain 0 0 or 1 3 0 0 3 0 Sweden 0 0 or 1 3 0 0 3 0 Switzerland 0 0 or 1 3 0 0 3 0 Syria 1 0 0 1 0 0 0...

Страница 23: ...LIBRARY API FUNCTIONS The following functions are available in the DTMF Detection library DTMFDetInit DTMFDetection DTMFDetInit Description Initializes the parameters to detect a DTMF signal The user...

Страница 24: ...e dtmfdet_sHandle CH1 dtmfdet_sConfig CF1 CF1 DTMFframeType NOT_A_DIGIT_FRAME Init frametype CF1 DTMFshapeTest YES Disable the Shape Test CF1 DTMFcurrentDigit CURRENT_DIGIT Init 20 as the Current Digi...

Страница 25: ...Type Remarks None Code Example dtmfdet_sHandle CH1 int inSignal 80 int Digit State State DTMFDetection CH1 inSignal 0 Digit Table 3 1 DTMF Detection State Frame Type Symbolic Representation Descripti...

Страница 26: ...dsPIC DSC DTMF Detection Library User s Guide DS70332A page 22 2008 Microchip Technology Inc NOTES...

Страница 27: ...splay 2 To apply power to the dsPICDEM net board remove the J6 jumper and apply 3 3V to J6 terminal 3 Do not connect the 9V DC power supply to J14 terminal 4 Jumper M0 must be kept open 5 Set up the H...

Страница 28: ...ff hook 7 On the telephone keypad enter 0 9 or Observe the series of digits displayed on the HyperTerminal 8 To end hang up the phone and press RESET on the board Figure 4 2 shows a flow chart that su...

Страница 29: ...TION DEMO FLOW Send Detected Digit to UART Feed Digit to dsPIC DSC DTMF Detection Library Initialize DTMF Detection Initialize Si3034 Si3035 DAA AFE Hardware Connectivity Board Ringing Start No Yes Pr...

Страница 30: ...dsPIC DSC DTMF Detection Library User s Guide DS70332A page 26 2008 Microchip Technology Inc NOTES...

Страница 31: ...rates when communicating with the DAA AFE The following driver functions are provided to operate the Si3021 chipset with different options Init_Si3021 SetFs7200 SetFs8000 go_on_hook go_off_hook speake...

Страница 32: ...by the user appli cation when the data pump requests the user application to change the sampling rate to 7 2 kHz Prototype void SetFs7200 void Arguments None Return Value None Code Example SetFs7200...

Страница 33: ...id go_on_hook void Arguments None Return Value None Code Example go_on_hook go_off_hook Function Used to set the AFE to the Off Hook state Prototype void go_off_hook INT SpeakerVolume Arguments None R...

Страница 34: ...n Used to mute the transmit and receive path signals for the call progress AOUT pin of this chipset This function is used to turn off the transmit and receive signal to the speaker connected to the AO...

Страница 35: ...onnections to dsPIC30F 13 Driver Functions 27 Gain Control 14 DAA AFE Driver Functions go_off_hook 29 go_on_hook 29 Init_Si3021 27 SetFs7200 28 SetFs8000 28 speaker_off 30 Documentation Conventions 3...

Страница 36: ...24 2334 2393 China Shenzhen Tel 86 755 8203 2660 Fax 86 755 8203 1760 China Wuhan Tel 86 27 5980 5300 Fax 86 27 5980 5118 China Xiamen Tel 86 592 2388138 Fax 86 592 2388130 China Xian Tel 86 29 8833 7...

Отзывы: