i `ve found out, that no signals are on the CLK/FS/DX-pins on the peripheral connector, so i believe it`s the same error like on the C6711-DSK, where the McBSP0 is not activated due to the on-board-ADC. the C6713 manual on page 2-5 describes the CPLD-register. bit 1 and 0 defines if the McBSP0/1 is onboard (AIC23 codec) or offboard (for daughtercards). this registerfields are set in the dsk6713.h file (#define MCBSP2SEL 0x02 #define MCBSP1SEL 0x01) and i thought that these entries are right for daughertcard-mode and have include this file in my sourcecode: #include <dsk6713.h> but it doesn`t works. does anybody know where the error is ? there are no more hints in the manual...... sincerely, olaf lindner |
|
How to activate the McBSP0/1 on C6713-DSK ?
Started by ●September 1, 2003
Reply by ●September 1, 20032003-09-01
--- olaf636 <> wrote: > i `ve found out, that no signals are on the > CLK/FS/DX-pins on the > peripheral connector, so i believe it`s the same > error like on the > C6711-DSK, where the McBSP0 is not activated due to > the on-board-ADC. well... olaf... I really don't know what "error" you're talking about... there is no error on C6711DSK with McBSPs - I definitely don't know what you mean by "is not activated"... > the C6713 manual on page 2-5 describes the > CPLD-register. bit 1 and 0 > defines if the McBSP0/1 is onboard (AIC23 codec) or > offboard (for > daughtercards). this registerfields are set in the > dsk6713.h file > (#define MCBSP2SEL 0x02 > #define MCBSP1SEL 0x01) > and i thought that these entries are right for > daughertcard-mode and > have include this file in my sourcecode: > #include <dsk6713.h> > > but it doesn`t works. does anybody know where the > error is ? there are no more hints in the manual. well... I'm not sure about your software approach... for example - are you using DSP/BIOS? if not - are you using CSL? if not - how are you setting McBSP registers? from the code you sent us previously I gather that you don't use DSP/BIOS, you try to use CSL but I think you are doing it wrong... well - if that helps you - you can download two files from my site: http://www.wrewers.karolin.pl/codec_poll1.c http://www.wrewers.karolin.pl/serial_funcs.c that program is not using DSP/BIOS but it is using CSL and it's macros to set McBSP registers - I'm setting McBSP1 to work with PCM3003 audio daughtercard, but you can do the same exact thing to set McBSP0 or whatever you have on C6713... good luck... __________________________________ |
|
Reply by ●September 1, 20032003-09-01
dear wojciech, when i worked with the c6711, i could use only the mcbsp1, cause i have to set a resistor ("JP1" on circuit board) to "connect" the mcbsp0 with the peripheral connector, otherwise it was connected with the ADC. the c6713 dsk has a CPLD-register, in which you can change the settings for both mcbsp-ports http://www.spectrumdigital.com/techlib/download.cgi?file=docstore/DSP%20Starter%\ 20Kits/dsk_c6713a.pdf page 2-3 resp. 2-5 thats what i mean with "activate"...... .......... well, thus that my code works fine on the c6711, i think i`ve init proper the mcbsp0...: in the code: #include "config2cfg.h" #include "dsk6713.h" #include <csl.h> #include <csl_mcbsp.h> #include <c6x.h> #include <stdio.h> void main() { void CSL_cfgInit(); .........................................u know the rest :) and in the "config2cfg.h": #include "config2cfg.h" #pragma CODE_SECTION(CSL_cfgInit,".text:CSL_cfgInit") MCBSP_Config mcbspCfg0 = { 0x02000000, /* Serial Port Control Reg. (SPCR) */ 0x00050000, /* Receiver Control Reg. (RCR) */ 0x00050000, /* Transmitter Control Reg. (XCR) */ 0x300F0F63, /* Sample-Rate Generator Reg. (SRGR) */ 0x00000000, /* Multichannel Control Reg. (MCR) */ 0x00000000, /* Receiver Channel Enable(RCER) */ 0x00000000, /* Transmitter Channel Enable(XCER) */ 0x00000A00 /* Pin Control Reg. (PCR) */ }; /* Handles */ MCBSP_Handle hMcbsp0; /* * ======== CSL_cfgInit() ======== */ void CSL_cfgInit() { hMcbsp0 = MCBSP_open(MCBSP_DEV0, MCBSP_OPEN_RESET); MCBSP_config(hMcbsp0, &mcbspCfg0); } i become desperate........the website of spectrumdigital is not reachable......... sincerely, olaf lindner |
|
Reply by ●September 1, 20032003-09-01
--- olaf636 <> wrote: > when i worked with the c6711, i could use only the > mcbsp1, cause i > have to set a resistor ("JP1" on circuit board) to > "connect" the > mcbsp0 with the peripheral connector, otherwise it > was connected with the ADC. yeah - that's correct... > the c6713 dsk has a CPLD-register, in which you can > change the settings for both mcbsp-ports > http://www.spectrumdigital.com/techlib/download.cgi?file=docstore/DSP%20Starter%\ 20Kits/dsk_c6713a.pdf > page 2-3 resp. 2-5 > thats what i mean with "activate"...... oh - ok - I've never seen C6713DSK... > well, thus that my code works fine on the c6711, i > think i`ve init proper the mcbsp0...: ? so your code works fine on C6711DSK? then I don't see any reason why it wouldn't work on C6713DSK - does it not work fine on C6713DSK? > in the code: > #include "config2cfg.h" > #include "dsk6713.h" > #include <csl.h> > #include <csl_mcbsp.h> > #include <c6x.h> > #include <stdio.h> > > void main() > { > void CSL_cfgInit(); >....u know the rest :) well - I did find your previous postings with your code... however - I still think it's a mess ;-) for example: void main(){ void CSL_cfgInit(); int wert=1; ... here - this CSL_cfgInit(); is never called!!! You are declaring it and not calling! So - if you're trying to run that code you sent us - you're neither opening the mcbsp nor configuring it... also here: MCBSP_FSET(SPCR0, XRDY, 1); MCBSP_FSET(SPCR0, RRDY, 1); you are trying to set XRDY and RRDY fields - well - those are read-only fields! and as I said before - I'd rather use the macros to make register values and write those values to the registers at once rather than accesing each field separately... and again - I suggest you take a look at those files from my site - they are exercising the PCM3003 codec, but they are also showing the proper way to use McBSP without DSP/BIOS... > i become desperate........the website of > spectrumdigital is not reachable yeah - I can clearly see your desperation ;-) well - there's no reason to be desperate - it's normal - there is a learning curve - if it was easy and everybody could do that - we couldn't ask all those $$$ for our work - right? ;-) good luck to you... __________________________________ |