background image

Evaluation Kit for CMX608/618/638 

 

EV6180/6380 

 

 

 2016 CML Microsystems Plc 

14 

UM6180/5 

6.2. 

Full-duplex Demonstration 

 

This section contains an example script that can be executed using the Script Handler tab, which 
is part of the ES0003 software application. The script is available as part of the EV6380 support 
package, which is available from 

http://www.cmlmicro.com/

. For a full description of the Script 

Handler command syntax refer to the Script Language Reference (publication SD/PE0003/script/2 
or later) and the PE0003 User Manual (publication UM0003/2 or later). For a full description of the 
CMX638 device refer to the CMX608/618/638 datasheet. 
 
The example script will set up the CMX638 for full-duplex operation at 2400bps. Using a software 
sound editor such as Audacity, installed on the host PC, PCM samples can be output from the PC 
sound card and fed into the CODEC input socket on the EV6180/6380. The PCM sample data will 
be encoded, decoded and the resultant output from the CODEC output socket of the EV6180/6380 
can be played back through the sound card on the host PC. 
 

;FullDuplexDemo.txt 
value buffer 27 

 

 

 

;Declare an array 'value' of size 27 x 16-bit.   

 
 

 

register #1, #$09, #1   

;Set Powersave register length to 8 bits 

 

 

register #1, #$07, #1   

;Set Vocoder configuration register length to 8 bits 

 

 

register #1, #$2E, #1   

;Set Service Acknowledgement reg. length to 8 bits 

 

 

register #1, #$10, #1   

;Set Decoder Frame register length to 8 bits  

 

 

register #1, #$30, #1   

;Set Encoder Frame register length to 8 bits 

 

 

register #1, #$06, #1   

;Set Analogue Output Gain register length to 8 bits 

 

 

register #1, #$05, #1   

;Set analogue Input gain register length to 8 bits 

 

 

register #1, #$0A, #1   

;Set DTMF Attenuation register length to 8 bits 

 
 

 

device #1 

 

 

;Select device 1 (connect EV6380 to J3 PE0003) 

 

 

copy #1, *$01   

 

;Reset CMX638 

 

 

copy #0, value 

 

 

 

 

while value == #0 

 

 

 

copy *$40, value 

;Wait for RDY flag (Status reg. bit 15) to be set 

 

 

 

and #$8000, value 

 

 

endwhile 

 

 
 

copy #$00, *$05 

 

;Set analogue input gain to 0dB 

 

copy #$08, *$06 

 

;Set analogue output gain to +2dB   

copy #$8107, *$1F 

 

;Enable interrupts 

 

 

copy #$0006, *$1D 

 

;Select fast clock speed for full-duplex mode 

copy #$00, *$0A 

 

 

 

 

 

 

copy #$03, *$09 

 

;Turn on analogue BIAS and CODEC master clock 

 

 

delay #100 

 

 

;Allow 100ms to allow bias to reach its final value 

copy #$37, *$07 

 

;Set FEC, HDD, 2400bps and 3 x 20ms frames 

 

 

copy #0, value 

 

 
 

while value == #0 

 

 

 

copy *$40, value 

;Wait for RDY flag to be set 

and #$8000, value 

endwhile 

 

 
 

copy *$2E, value 

 

;Check that device has accepted configuration 

 

 

and #$0001, value 

 

 

jmpc value == #$0001 device_configured 

 

disp "Device not configured" 

 

stop 

 
device_configured 

 

disp "Device configured" 

 

copy #$0003, *$11 

 

;Enable encoder and decoder 

 

copy #0, value 

 

 

while value == #0 

 

 

 

copy *$40, value 

;Wait for RDY flag to be set 

 

 

 

and #$8000, value 

 

 

endwhile 

 

copy *$2E, value 

 

;Check that device has accepted control command 

 

 

and #$0001, value 

 

 

jmpc value == #$0001 device_ready 

Содержание EV6180

Страница 1: ...on Kits EV6180 for CMX608 and CMX618 EV6380 for CMX638 The EV6180 and EV6380 Evaluation Kits each provide the means to demonstrate and evaluate the operation of CMX6x8 RALCWI Vocoder ICs The boards ar...

Страница 2: ...6 2 2 2 Contents Unpacking 6 2 3 Approvals 6 3 Quick Start 7 3 1 Setting Up the EV6180 6380 with the PE0003 7 3 2 Adjustments 7 3 3 Operation 7 4 Signal Lists 8 5 Circuit Schematics and Board Layouts...

Страница 3: ...er tab settings 10 Table 4 Configuration Options for Voice CODEC I O 13 Figure Page Figure 1 Evaluation Layout Diagram 4 Figure 2 PCB Layout top 11 Figure 3 PCB Layout bottom 11 Figure 4 Import Raw Da...

Страница 4: ...MX608 618 638 EV6180 6380 2016 CML Microsystems Plc 4 UM6180 5 PE0003 EV6180 EV6380 PC USB J3 J2 Power Supply J J9 J3 Soundcard output J8 J10 Loudspeaker output EvKit Interface Card J11 Figure 1 Evalu...

Страница 5: ...p www cmlmicro com The PE0003 is not supplied with this kit but can be ordered separately 2 1 3 External CODEC An external voice CODEC is required for demonstrating the CMX608 functionality This conne...

Страница 6: ...stereo 2 2 Handling Precautions Like most evaluation kits this product is designed for use in office and laboratory environments The following practices will help ensure its proper operation 2 2 1 Sta...

Страница 7: ...upply to J2 on the EV6180 6380 and J11 on the PE0003 The supply voltage should be set at 5V Attach the USB cable between connector J9 on the PE0003 and the relevant USB port on the host PC Apply volta...

Страница 8: ...tal ground 16 SOFT_RESET I P Reset control line for CMX6x8 19 20 3V3D PWR 3 3V digital supply voltage J4 1 N C 2 3V3D PWR 3 3V digital supply voltage 3 STRB I P SSP port serial strobe input 4 SDI I P...

Страница 9: ...dio input Ring SOCKETN I P Negative external audio input J10 Sleeve GNDA PWR Analogue ground Tip OUTP O P Positive external audio output Ring OUTN O P Negative external audio output J11 1 3 3V3D PWR 3...

Страница 10: ...JP7 1 2 Short Current measurement connection for 3 3V analogue rail J7 1 2 3 4 5 6 Short Open Open SYNC control pulled high to 3 3V J9 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Short Short Open Open Open...

Страница 11: ...Circuit Schematics and Board Layouts For clarity circuit schematics are available as separate high resolution files These can be obtained via the CML website The layout on each side of the PCB is sho...

Страница 12: ...ndication LEDs D4 and D5 can be optionally connected to or disconnected from pins 19 and 20 respectively of the CMX6x8 device The jumper tab settings on connector J12 determine whether the LEDs are in...

Страница 13: ...le via connector J5 Alternative access to the voice CODEC I O is through connectors J8 and J10 which are stereo 3 5mm jack sockets Signals applied to the board via these sockets can be routed into and...

Страница 14: ...r length to 8 bits register 1 2E 1 Set Service Acknowledgement reg length to 8 bits register 1 10 1 Set Decoder Frame register length to 8 bits register 1 30 1 Set Encoder Frame register length to 8 b...

Страница 15: ...d from http audacity sourceforge net A short guide to using Audacity with the demonstration is described below Before running through the demonstration it is assumed that the following has been carrie...

Страница 16: ...ript has been extracted and select it Once the script has been loaded press the Run button to run the script 6 Using the opened Audacity editor window begin playback of the imported audio track by pre...

Страница 17: ...V Voltage on any connector pin to VSS 0 3 VDD 0 3 V Current into or out of OUTP OUTN VIN and VSS pins 0 1 5 A Current into or out of any other connector pin 20 20 mA 7 1 2 Operating Limits Correct op...

Страница 18: ...nce OUT P or OUT N 3 32 Output Voltage Range OUT P or OUT N 2 10 to 90 VDDPA Differential Output Voltage 2 160 VDDPA Differential Output Power 2 120 mW Xtal Clock Input for an external clock High puls...

Страница 19: ...ts Operation of these kits and boards outside a laboratory environment is not permitted within the European Community All software firmware is supplied as is and is without warranty It forms part of t...

Отзывы: