View previous topic :: View next topic |
Author |
Message |
starfire151
Joined: 01 Apr 2007 Posts: 195
|
DSP Analog Dev Kit Lesson 12 |
Posted: Sat Nov 21, 2009 4:54 pm |
|
|
I've just procured the CCS DMA Analog Development Kit and have entered the code for Lesson 9, Audio Codec and Lesson 12, Direct Memory Access and SD/MMC.
Lesson 9 worked correctly. I was able to get Mic input to route to the headphone output. I modified the code and was able to route stereo line input from my computer Windows Media Player output through the dev kit to the headphones. There was a fairly low-level, high-pitched whine in the background but, overall, the quality was pretty good.
I tried to launch Lesson 12, though, and found the code was locking up on the line looking for a lock from the dsPIC33FJ128GP706 after modifying the PLL for a clock rate of 80MHz (40MIPS). I verified the parameters were correct for the CLKDIV (N1), PLLPOST (N2), and PLLFBD (M) values to obtain 80MHz starting with a 12MHz crystal. The Lesson code stated:
The bit definition was actually in upper case so I changed the while(!lock); to while(!LOCK) ; but it still gets caught in that loop and doesn't continue. I inserted a line prior to the setup_pll() call to turn on the GREEN_LED and turn it back off when I return from the routine. The GREEN_LED is staying lit.
Does anyone have an idea on this?
Does anyone else have this development system and has this program working?
Thanks. |
|
|
Guest
|
Re: DSP Analog Dev Kit Lesson 12 |
Posted: Mon Jan 11, 2010 8:32 am |
|
|
Hi Starfire151,
I'm shaharil..I also bought DSP analog Development kit last month. But the example 12 is not working when I run the example 12 program.
Did example 12 program is work for you?
I found that, my MMC/SD card cannot detect. May be because of the "mmcsd.c" file where in only trigger SPI1 only but the SD/MMC used SPI2 line..Did you has any idea to solve this?
- shaharil- |
|
|
starfire151
Joined: 01 Apr 2007 Posts: 195
|
|
Posted: Mon Jan 11, 2010 12:37 pm |
|
|
Hi Shaharil -
I got the Lesson 12 to work only after contacting CCS Tech Support. They sent me a modified version of the mmcsd.c file. The modified file is called mmcsd_mod.c. I cannot send this file to you because it is copyrighted by CCS. I would suggest you contact CCS Tech Support directly and ask for the file.
Dave |
|
|
shaharil Guest
|
Example 12 problem - DSP analog Dev kit |
Posted: Wed Jan 13, 2010 5:25 am |
|
|
Hi Dave,
I trying to email CCS tech support but they dont reply to me yet.
Have you try to read the"mp3" file by using that DSP analog Dev kit?
It is working..I trying to find and example program to read the ".mp3" file from SD/MMC card by using CCS.
thanks
- shaharil- |
|
|
starfire151
Joined: 01 Apr 2007 Posts: 195
|
|
Posted: Wed Jan 13, 2010 12:15 pm |
|
|
Hi Shahiril -
CCS response is sometimes very slow, depending on the subject matter. There doesn't seem to be a lot of support for the dsPIC family problems... at least in my experience. I've posted questions that have taken up to a month to get a response... and then it's not complete.
When the "right" person gets assigned the problem and responds, though, it is usually pretty good. CCS Tech Support has been outstanding for other types of processors. I just hope they get more qualified people to handle the new "up-and-coming" processor line, like the dsPIC family. One extremely frustrating part of trying to hold a conversation with the CCS Tech Support is they assign you an ID and put you in the queue. When you finally get a response from a tech, they try to answer your question but good luck if you ned to respond to them again... If you try to send further information on your problem, they assign you a different ID number and put you in the queue again! This can take several weeks to get a repsonse to... again! I've been trying to track down a problem with their hardware development board, their compiler, and their example code since November.
I have not heard anything about being able to read an .mp3 file using this dsPIC Analog Development Board. Is the SD card formatted with FAT or FAT32? Have you tried SDHC cards? Is there a link to where the source code is?
Thanks.
Dave |
|
|
shaharil Guest
|
DSP analog got problem |
Posted: Thu Jan 14, 2010 8:09 pm |
|
|
Hi Dave,
The CCS technical support not reply my email yet...Don't know what to do..hu.hu..
I have updated my CCS C compiler to version 10.4 and I found that the "mmcsd.c" file is a little bit different with "mmcsd.c" version 10.3. But when I tried that "mmcsd.c" version 10.4, it is not working also.. I really hope you can help me...
Can you check and compare whether that "mmcsd.c" version 10.4 file is same or not with your "mmcsd_mod.c" modified file? I will pass that file to your personal email. Can you sent me your personal email..This is my personal email : shaharil85@gmail.com
thanks
-shaharil- |
|
|
starfire151
Joined: 01 Apr 2007 Posts: 195
|
|
Posted: Sun Jan 17, 2010 10:50 am |
|
|
Have you had a response from CCS Tech Support yet? Have they assigned you a case ID number yet?
I compared the most recent version of the mmcsd.c file (dated 12/18/2009) and compared it with the mmcsd_mod.c file Tech Support supplied to me. There seems to be many changes but mostly in vriable description definitions. In several cases the passing parameters format was changed, also. This is with the latest version of the compiler, version 4.104. One thing that was changed was the default CS pin for the SD card, which was changed from PIN_C2 to PIN_C1 but that shouldn't make any difference to the Example 12 program since it #defines the CS pin to PIN_D8 anyway. I think the earlier versions specified to use MODE 3 and the later version specify to use MODE 0 in the #use spi() called out at the top of the mmcsd.c file, also. |
|
|
|