CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

DSP Analog Dev Kit Lesson 12

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
starfire151



Joined: 01 Apr 2007
Posts: 195

View user's profile Send private message

DSP Analog Dev Kit Lesson 12
PostPosted: Sat Nov 21, 2009 4:54 pm     Reply with quote

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:
Code:
while(!lock);

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
PostPosted: Mon Jan 11, 2010 8:32 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Jan 11, 2010 12:37 pm     Reply with quote

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
PostPosted: Wed Jan 13, 2010 5:25 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Jan 13, 2010 12:15 pm     Reply with quote

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
PostPosted: Thu Jan 14, 2010 8:09 pm     Reply with quote

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 : [email protected]

thanks


-shaharil-
starfire151



Joined: 01 Apr 2007
Posts: 195

View user's profile Send private message

PostPosted: Sun Jan 17, 2010 10:50 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group