• AVR Freaks

Hot!dsPIC30F Code Examples: Now on the Web

Page: 1234 > Showing page 1 of 4
Author
kannadiga
Starting Member
  • Total Posts : 47
  • Reward points : 0
  • Joined: 2004/08/09 18:07:45
  • Status: offline
2005/11/08 10:34:20 (permalink)
5 (1)

dsPIC30F Code Examples: Now on the Web

Dear Microchip Customers,

It is with pleasure that we announce a new initiative that serves to help you in your dsPIC Code Development Efforts.

We now provide code examples (abbreviated CE) on our website.
These code examples are complete MPLAB IDE projects/workspaces that are self-contained, requiring no files outside the provided zip file.
Each code example has a brief description provided in a Readme.txt file or an associated PDF file. Further, comments in source code should aid in understanding the purpose of the example.

The code examples are written primarily in C. The examples are written so that the source code may be easily re-used by you in your project.

The link on the website is:
http://www.microchip.com/codeexamples

Best Regards,
Smile
Hrushikesh Vasuki
Microchip Technology Inc.
Digital Signal Controller Applications Team
post edited by kannadiga - 2007/02/20 14:39:32
#1

73 Replies Related Threads

    DSchabel
    Super Member
    • Total Posts : 1714
    • Reward points : 0
    • Joined: 2005/05/24 14:00:34
    • Location: Western NY State
    • Status: offline
    RE: dsPIC30F Code Examples: Now on the Web 2005/11/08 11:49:04 (permalink)
    0
    GREAT NEWS!
    < Message edited by DSchabel -- Nov. 8, 2005 2:51:44 PM >
    #2
    p.erasmus
    Super Member
    • Total Posts : 1799
    • Reward points : 0
    • Joined: 2004/11/25 03:18:34
    • Location: Saratov Russia
    • Status: offline
    RE: dsPIC30F Code Examples: Now on the Web 2005/11/08 13:03:16 (permalink)
    0
    Thank you Microchip.
    as allways you have again showed your commitment to the users of your products Great well done
    #3
    Guest
    Super Member
    • Total Posts : 80500
    • Reward points : 0
    • Joined: 2003/01/01 00:00:00
    • Location: 0
    • Status: online
    RE: dsPIC30F Code Examples: Now on the Web 2005/11/10 08:58:54 (permalink)
    0
    I am trying to compile the example code CE005 provided by the microchip website but the following error occurs:

    F:\Project\CE005_FIR_DSP_lib_Filter\CE005_FIR_DSP_lib_Filter\gld\p30f6014a.gld:1: undefined symbol `__reset' referenced in expression

    Can you help me with this matter? The readme.txt file supplied seems rather brief would it be possible to send me a more detailed version of how to use this program?
    #4
    kannadiga
    Starting Member
    • Total Posts : 47
    • Reward points : 0
    • Joined: 2004/08/09 18:07:45
    • Status: offline
    RE: dsPIC30F Code Examples: Now on the Web 2005/11/14 14:16:03 (permalink)
    0
    This error occurs when the project is unable to find the C start-up library libpic30-coff.a.
    This should be located in the lib folder if you unzip with folder structure preserved. I would not have expected this error to occur and I am not able to replicate it. Please let me know if this fixes your issue.

    cheers,
    Rishi Vasuki
    #5
    kannadiga
    Starting Member
    • Total Posts : 47
    • Reward points : 0
    • Joined: 2004/08/09 18:07:45
    • Status: offline
    RE: dsPIC30F Code Examples: Now on the Web 2005/12/08 07:14:01 (permalink)
    0
    Dear Microchip Customers,

    While the MPLAB IDE projects provided with the code examples are set up for a specific dsPIC30F device, the projects are easily reconfigured to use a different dsPIC device. Simply, change the device linker script, device include file so you can build the project for another dsPIC30F device.

    Regards,

    Hrushikesh Vasuki
    Microchip Technology Inc.
    Digital Signal Controller Applications Team
    #6
    jblackburn
    Senior Member
    • Total Posts : 166
    • Reward points : 0
    • Joined: 2005/11/08 08:46:38
    • Status: offline
    RE: dsPIC30F Code Examples: Now on the Web 2006/01/11 11:09:55 (permalink)
    0
    Any chance of getting more examples in ASM30? Not everyone uses C or has a compiler and there appear to be a number of differences in the directives for ASM30 assembler.
    #7
    kannadiga
    Starting Member
    • Total Posts : 47
    • Reward points : 0
    • Joined: 2004/08/09 18:07:45
    • Status: offline
    RE: dsPIC30F Code Examples: Now on the Web 2006/01/17 12:26:35 (permalink)
    0
    Thanks for the input. Currently C examples seem to be in higher demand because we have a free student edition of the C30 compiler posted. However, in my experience writing dsPIC assembly, I found its instruction set quite friendly so will take this as feedback that there is a world of users out there who want Assembly examples.
     
    Regards,
    Rishi
     
     
    #8
    kannadiga
    Starting Member
    • Total Posts : 47
    • Reward points : 0
    • Joined: 2004/08/09 18:07:45
    • Status: offline
    RE: dsPIC30F Code Examples: Now on the Web 2006/01/17 12:27:52 (permalink)
    0
    Hi All,
     
    Please watch for an update that enhances CE018 and fixes a bug in CE016.
     
    Thanks,
    Rishi
     
    #9
    Guest
    Super Member
    • Total Posts : 80500
    • Reward points : 0
    • Joined: 2003/01/01 00:00:00
    • Location: 0
    • Status: online
    RE: dsPIC30F Code Examples: Now on the Web 2006/01/18 02:50:41 (permalink)
    0
    Hi!
    Is it possible that Microchip posts more examples in C30 for dsPIC? I am particulary interested in motor control (sensorless BLDC, V-f =const. for IM,...).
     
    Also, some examples with oversampling, overmodulation, decimation, USB communication with dedicated chips (e.g. from FDTI company)would be of great importance for real design problems.
     
    Regards.
    #10
    Vihang
    Starting Member
    • Total Posts : 83
    • Reward points : 0
    • Joined: 2006/01/19 21:54:05
    • Location: INDIA
    • Status: offline
    RE: dsPIC30F Code Examples: Now on the Web 2006/01/19 22:55:01 (permalink)
    0
    Hello,
                I want to confirm can i use these codes for dsPIC33F series which is yet to come. one more thing I am using si3000(voice codec) chip for FSK modem  as well as for voice decoding application with dsPIC33F as a CPU. so i wan t to know can i use soft modem libraries given by microchip to port on si3000. main question is can i use si3000 for modem application with some discrete components. Also is there boot loader code for dsPIC33F/30F.

    Vihang
    #11
    richchu
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2005/11/06 22:23:34
    • Status: offline
    RE: dsPIC30F Code Examples: Now on the Web 2006/01/20 23:24:00 (permalink)
    0
    HI, kannadiga,
    The Digital Filter Design lite can only design up to 8 taps for IIR bandpass filter.  What dose 'taps' mean? I need a IIR cascade biquad direct form II filter with more than 12 sections, can this version tool perform well?
    Thank you.

    #12
    Guest
    Super Member
    • Total Posts : 80500
    • Reward points : 0
    • Joined: 2003/01/01 00:00:00
    • Location: 0
    • Status: online
    RE: dsPIC30F Code Examples: Now on the Web 2006/01/22 23:00:55 (permalink)
    0
    hii do u have  any idea where i can find C code for the AN908 Induction motor vector control . please help me out wih this if possible.
    Thanking You,
    Gagan Deep
    #13
    Guest
    Super Member
    • Total Posts : 80500
    • Reward points : 0
    • Joined: 2003/01/01 00:00:00
    • Location: 0
    • Status: online
    RE: dsPIC30F Code Examples: Now on the Web 2006/01/24 06:10:54 (permalink)
    0
    Can anyone help me to get code of Direct Torque Control of Induction motor using DSPIC ?
    #14
    Guest
    Super Member
    • Total Posts : 80500
    • Reward points : 0
    • Joined: 2003/01/01 00:00:00
    • Location: 0
    • Status: online
    RE: dsPIC30F 2006/04/10 05:45:10 (permalink)
    0
    hi
     
    can i have more information on space vector PWM control of an AC induction motor.
    thanks
     
     
     
     
    #15
    kiwiboy
    New Member
    • Total Posts : 11
    • Reward points : 0
    • Joined: 2006/04/10 04:33:30
    • Location: 0
    • Status: offline
    RE: dsPIC30F Code Examples: Now on the Web 2006/04/13 04:48:26 (permalink)
    0
    I am new to DSP and want to start some experiments. I have built a platform with the 30F6014A and want to start by converting a small wave file to frequency domain and display the significant freq component by illuminating one of about 8 leds which represent 8 audio segments in the audio band 300hz to say 3Khz. I want to keep it as simple as possible and do this in assembler. I am looking for idea's and guidence in setting up Microchips FFT routine (some of the terms elude me). I would be greatful for any pointers or knowledge of any resources that may be releavant for a newcomer. My platform is built similar to the dspicdem1.1 but without the LCD and other non-essentials. I have retained the codec, the Oscillators and the ICD2 connection.
    #16
    mikelim
    Junior Member
    • Total Posts : 93
    • Reward points : 0
    • Joined: 2005/08/23 08:23:51
    • Status: offline
    Problem with CE18; fft 2006/04/23 08:47:46 (permalink)
    0
    Hi,

    I am trying to use the dspicwork to generate different signal and sample size to test out the dspic ce18 fft code.

    I have 2 problem.

    1, with the dspicwork;

    I generate a sine wave of 5k, Fsampling of 400k,
    in the freq domain, I have a peak freq of 4.69k. 

    Is the reading tolerance normal?

    Is it because of my choosen of sampling freq, leading to bins resolution problem?

    2. I then input the generate data in the data section of the ce18 project.  in the file "inputsignal_square 1khz.c"

    The data is basically
    0x0000, 0x4B3C, 0x79BC, 0x79BC, 0x4B3C,
    0x0000, 0xB4C4, 0x8644, 0x8644, 0xB4C4,
    repeats to 256 samples,
    and
    256 padded zeros.

    I run the file and saw the followings in the watch window;
    peak freq is 46860!
    and peak freq bin is 30!

    Can someone please help me with this 2 problems asap.

    :To add on;
    I do think that the tolerance of the fft of ce18 is a bit big because although if you try to run the default timing samples of a 1khz you will get a reading of 1024hz.
     
    I believe that I have made some mistakes in the dspic works (in choosing the bins) because the attached timing diagram in the ce18 when fft i see a okay fft peak of 0.9961khz.
    See the 2nd attachment.
     
    Is it normal?

    Thank you a lot.




    post edited by mikelim - 2006/04/23 09:03:48

    Attached Image(s)

    #17
    Guest
    Super Member
    • Total Posts : 80500
    • Reward points : 0
    • Joined: 2003/01/01 00:00:00
    • Location: 0
    • Status: online
    RE: Problem with CE18; fft 2006/05/05 18:01:21 (permalink)
    0
    mikelim,if you gain the right result using CE18 fft,I see your frequence of signal is 5k,and your FFT result is near to 5k,it seems to right.But my result is wrong,my signal is 600Hz, my FFT result is 1116Hz.The type of signal data is "int",if the type can be used in FFT?I see that the data used in FFT and bit_reverse program in CE18 fft are complex number,and generally,before doing FFT,it should do bit_reverse first ,but I see in the example  program,it do  bit_reverse first,FFT second.is it like this,or I make wrong?
    #18
    Guest
    Super Member
    • Total Posts : 80500
    • Reward points : 0
    • Joined: 2003/01/01 00:00:00
    • Location: 0
    • Status: online
    RE: Problem with CE18; fft 2006/05/05 18:25:06 (permalink)
    0
    mikelim,in your message,the setence "I run the file and saw the followings in the watch window; peak freq is 46860! and peak freq bin is 30! ",you signal is 5k,if 46860Hz is your fft result?But brfore this setence,you said"I generate a sine wave of 5k, Fsampling of 400k, in the freq domain, I have a peak freq of 4.69k.  "I don't know which is your fft result??
    if 46860Hz is your result,I think  we are in the face of the same problem that CE18 fft can't make us gain the right FFT result.Now I doubt that the point is that  the data type can't use int,but I don't make sure.I want know if you have idea??
    #19
    Guest
    Super Member
    • Total Posts : 80500
    • Reward points : 0
    • Joined: 2003/01/01 00:00:00
    • Location: 0
    • Status: online
    RE: Problem with CE18; fft 2006/05/06 01:02:39 (permalink)
    0
    I generate a sine wave of 5k that is same to yours,but the result I gain is not the same to yours,my frequece bin is 2,frequence is 3124Hz
    #20
    Page: 1234 > Showing page 1 of 4
    Jump to:
    © 2019 APG vNext Commercial Version 4.5