background image

DS70332A-page 32

©

 2008 Microchip Technology Inc.

AMERICAS

Corporate Office

2355 West Chandler Blvd.
Chandler, AZ  85224-6199
Tel:  480-792-7200  
Fax:  480-792-7277
Technical Support: 
http://support.microchip.com
Web Address: 
www.microchip.com

Atlanta

Duluth, GA 
Tel: 678-957-9614 
Fax: 678-957-1455

Boston

Westborough, MA  
Tel: 774-760-0087 
Fax: 774-760-0088

Chicago

Itasca, IL  
Tel: 630-285-0071 
Fax: 630-285-0075

Dallas

Addison, TX 
Tel: 972-818-7423  
Fax: 972-818-2924

Detroit

Farmington Hills, MI 
Tel: 248-538-2250
Fax: 248-538-2260

Kokomo

Kokomo, IN 
Tel: 765-864-8360
Fax: 765-864-8387

Los Angeles

Mission Viejo, CA 
Tel: 949-462-9523  
Fax: 949-462-9608

Santa Clara

Santa Clara, CA 
Tel: 408-961-6444
Fax: 408-961-6445

Toronto

Mississauga, Ontario, 
Canada
Tel: 905-673-0699  
Fax:  905-673-6509

ASIA/PACIFIC

Asia Pacific Office

Suites 3707-14, 37th Floor
Tower 6, The Gateway
Harbour City, Kowloon
Hong Kong
Tel: 852-2401-1200
Fax: 852-2401-3431

Australia - Sydney

Tel: 61-2-9868-6733
Fax: 61-2-9868-6755

China - Beijing

Tel: 86-10-8528-2100 
Fax: 86-10-8528-2104

China - Chengdu

Tel: 86-28-8665-5511
Fax: 86-28-8665-7889

China - Hong Kong SAR

Tel: 852-2401-1200  
Fax: 852-2401-3431

China - Nanjing

Tel: 86-25-8473-2460
Fax: 86-25-8473-2470

China - Qingdao

Tel: 86-532-8502-7355
Fax: 86-532-8502-7205

China - Shanghai

Tel: 86-21-5407-5533  
Fax: 86-21-5407-5066

China - Shenyang

Tel: 86-24-2334-2829
Fax: 86-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-7252
Fax: 86-29-8833-7256

China - Zhuhai

Tel: 86-756-3210040 
Fax: 86-756-3210049

ASIA/PACIFIC

India - Bangalore

Tel: 91-80-4182-8400 
Fax: 91-80-4182-8422

India - New Delhi

Tel: 91-11-4160-8631
Fax: 91-11-4160-8632

India - Pune

Tel: 91-20-2566-1512
Fax: 91-20-2566-1513

Japan - Yokohama

Tel: 81-45-471- 6166  
Fax: 81-45-471-6122

Korea - Daegu

Tel: 82-53-744-4301
Fax: 82-53-744-4302

Korea - Seoul

Tel: 82-2-554-7200
Fax: 82-2-558-5932 or 
82-2-558-5934

Malaysia - Kuala Lumpur

Tel: 60-3-6201-9857
Fax: 60-3-6201-9859

Malaysia - Penang

Tel: 60-4-227-8870
Fax: 60-4-227-4068

Philippines - Manila

Tel: 63-2-634-9065
Fax: 63-2-634-9069

Singapore

Tel:  65-6334-8870
Fax: 65-6334-8850

Taiwan - Hsin Chu

Tel: 886-3-572-9526
Fax: 886-3-572-6459

Taiwan - Kaohsiung

Tel: 886-7-536-4818
Fax: 886-7-536-4803

Taiwan - Taipei

Tel: 886-2-2500-6610  
Fax: 886-2-2508-0102

Thailand - Bangkok

Tel: 66-2-694-1351
Fax: 66-2-694-1350

EUROPE

Austria - Wels

Tel: 43-7242-2244-39
Fax: 43-7242-2244-393

Denmark - Copenhagen

Tel: 45-4450-2828 
Fax: 45-4485-2829

France - Paris

Tel: 33-1-69-53-63-20  
Fax: 33-1-69-30-90-79

Germany - Munich

Tel: 49-89-627-144-0 
Fax: 49-89-627-144-44

Italy - Milan 

Tel: 39-0331-742611  
Fax: 39-0331-466781

Netherlands - Drunen

Tel: 31-416-690399 
Fax: 31-416-690340

Spain - Madrid

Tel: 34-91-708-08-90
Fax: 34-91-708-08-91

UK - Wokingham

Tel: 44-118-921-5869
Fax: 44-118-921-5820

W

ORLDWIDE

 S

ALES

 

AND

 S

ERVICE

01/02/08

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

Отзывы: