can anyone tell me the difference between the DSPIC and the PIC?
I know that the DSPIC is a high-performance 16-bit microcontroller with the high computation speed of a fully implemented digital signal processor (DSP).
while the PIC Is 8-bit microcontroller.
is that true?
concerning the programming,is it the same?
same instructions?
Not same instructions, but similar. Can use same IDE, source written in C can be ported...
If you need high spped, go dsPIC, otherwise, stay with 8-bit PICs.
dspic is for signal conditioning too. there r motor control facility and some features and peripherals in dspic to facilitate signal processing and control applications
Microchip site, there are free libs there.
In general, you should write code in C. Use ASM only for time sensitive operations. With 16 registers and more complex ALU and pointer architecture, it is hard to write pure ASM code.
My opinion: if you are an intermediate or advanced PIC user do not spend your time with DSPIC. Is the worse DSP (as MIPS) available on the market (ok, maybe there are more). Start learning a true DSP: https://focus.ti.com/lit/ml/sprt415/sprt415.pdf
Well, here is the way I see it: Write hw interface subroutines in asm when time is critical, use ready to use libs as much as possible, but write main program and complex algorithms in C.
With more complex programs (and that is the reason you want to use dsPIC, or you would still use 16F84 ) writing MMI (man machine interface) becomes an suicide mission.
And I too don't see dsPICs as a true DSP, only as PIC on steroides
Online comprehensive manual for programming dsPIC microcontrollers in Pascal
"Learn how to write your own program, debug it, and use it to start the microcontroller. We have provided plenty of practical examples with necessary connection schemes: temperature sensors, AD and DA converters, LCD and LED displays, relays, communications, and the book is constantly being updated with fresh examples. All code is commented in details to make it easier for beginners. Instruction set, operators, control structures, and other elements of PASCAL are thoroughly explained with many examples. Also, the book includes a useful appendix on mikroPascal for dsPIC development environment: how to install it and how to use it to its full potential."