6295504725

6295504725



short input_left_sample(); short input _right_sample():

############################################################################# //C6713dskinit.c Includes functions from TI in the C6713 CSL and C6713DSK BSL #include "C6713dskinit.h"

#defme using bios    //if BIOS don't use top of vector table

extem Uint32 fs;    //for sampling frequency

void c6713_dsk_init()    //dsp-peripheral initialization

{

DSK6713_initO;    //cali BSL to init DSK-EMIF,PLL)

hAIC23_handle=DSK6713_AIC23_openCodec(0, &config);//handle(pointer) to codec DSK6713_AIC23_setFreq(hAIC23_handle, fs); //set sample ratę

MCBSP_config(DSK6713_AIC23_DATAHANDLE,&AIC23CfgData);//interface 32 bits toAIC23

MCBSP_start(DSK6713_AIC23_DATAHANDLE, MCBSP_XMIT_START | MCBSP_RCV_START |

MCBSP SRGR START | MCBSPSRGRFRAMESYNC, 220);//start data channel again

>

void comm_poll()

//added for communication/init

using polling

X

poll=l;

//I if using polling

c6713 dsk init();

}

//init DSP and codec

void comm_intr()

//for communication/init using

interrupt

i

X

poll=0;

//O sińce not polling

IRO globalDisableO;

//disable interrupts

c6713 dsk init();

//init DSP and codec

CODECEventId=MCBSP_getXmtEventId(DSK6713_AIC23_codecdatahandle);//McBSPl

Xmit

#ifndef using_bios

//do not need to point to vector table

IRQ_setVecs(vectors);

//point to the IRQ vector table

#endif

//sińce interrupt vector

handles this

IRQ_map(CODECEventId, 11); //map McBSPl Xmit to INT11

IRQ reset(CODECEventId);

//reset codec INT 11

IRQ_globalEnableO;

//globally enable interrupts

IRQ_nmiEnable();

//enable NMI interrupt

IRQ_enable(CODECEventId);

//enable CODEC eventXmit INT11

output_sample(0);

//start McBSP interrupt outputting a sample

}



Wyszukiwarka

Podobne podstrony:
712 744 P0712 Transmission fluid temperaturę (TFT) sensor - Iow input Wiring short to earth, TFT sen
72 103 P0072 Outside air temperaturę sensor - Iow input Wiring short to earth, outside air temperatu
Skin Front Left Center Side Rigtrt Side Left Back Left Back Rigtrt S/PDIF Input Sample Ratę: • Notę:
835 857 P0835 Clutch pedał position (CPP) switch B - high input Wiring short to positive, CPP switch
858 880 P0S5S Traction control input signal - Iow Wiring short to earth, ECM/PCM/TCM P0859 Traction
940 968 P0940 Hydraulic oil temperaturę sensor - Circuit high input Wiring short to positive, hydrau
546 578 P0546 Exhaust gas temperaturę (EGT} sensor 1, bank 1 - high input Wiring short to positive,
lm317 Figurę 7. Voltage regulator with protection diodes 1N4001 Notę: D1 protect the device against
223 237 P0223 Throttle oosition fTP1) switch B/accelerator oedal oosition (APP 1 switch B - hiah inp
237 251 P0237 Manifold absolute pressure (MAP) sensor A, TC system - Iow input Wiring short to earth
00477 ?d879c3fb6e9f78fbb855dd7194d159 An Algorithm and a Graphical Approach for Short Run Processes
21unx26 A sample ctf *trctf* input: .óePP .br .sp .it +0.5 i And anotJhcr sample: .de PP .br .sp .it
Feature Reference 3 0 Task Editor Top ^ *18: move the search label to the left of the input box &nbs
In1 blok E Błock Paramełers: In1 - Inport Provide an input port for a subsystem or model. The Sampl
trigger popup menu Trigger module.. Used by : WaveRecorder Modę : NORMAL    ► Source

więcej podobnych podstron