On Thu, Aug 25, 2011 at 6:45 AM, cdb wrote: > ::I m working on my senior project and I m in real need for help with > ::programming dspic30f4011. > > Look in your library for a book by Creed Huddlestone 'Intelligent Sensor > Design' which is aimed at the DSPIC, it has a chapter on the ADC, there i= s > also a mighty large book by Robert Reese (Course Technology CENGAGE > Learning) which although aimed at the PIC24 series, goes into great detai= ls > with template code for the advanced ADC's and PWM's. > > You could also check out the 'C' ADC and PWM library code for the Microch= ip > DSPIC compiler. > > Colin If you do this, make sure the peripherals are the same variety for your dsPIC30F4011 as they're talking about in the book. There are several varieties of ADC and PWM now. Xavier, basically you will need to read the data sheet sections that describe the peripherals you want to use, and set the bits for all of the setup registers. Simulate your code step-by-step in MPLAB and you can somewhat see if it is working or not before you try to run real hardware. Don't be afraid to spend a few days reading documentation. It will help you very much. --=20 Martin K. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .