Electronics > Microcontrollers
Good book on programming dsPIC controllers
clairemattockskth67:
--- Quote from: rooppoorali on July 18, 2022, 01:12:41 pm ---This one may help too: https://vdocuments.mx/programming-dspic-in-c.html
I read a very cool book, but unfortunately I don't remember the title. If I remember, I will definitely write to you. I just asked do my project, found paperell.net for this. There is time to help you with this issue. In general, now there are many books on demand on the Internet.
--- End quote ---
Thanks so!
tszaboo:
--- Quote from: perdrix on July 27, 2021, 04:35:17 pm ---I'm faced with the task of understanding and then modifying some motor control code running on a PIC (to be specific a dsPIC33FJ12MC201).
Never programmed one of these before, so need a good book to help me get up to speed.
Your recommendations most gratefully received ...
Thanks
David
--- End quote ---
I used dsPIC33 about 12 years ago in a design. I still have PTSD from it.
Did they already write the C libraries for all the peripherals?
I'm just asking because when I tried to use UART4, the functions were only declared, but the body of the function was empty. And the only way to use the ADC the way I wanted was to figure out each configuration bit by hand.
SiliconWizard:
There was a peripheral library I think, but I absolutely never used it on any of the PICs I ever had to work with (from PIC16, 18, dsPIC30, 33.. and PIC32MX.) Wouldn't know how complete the lib was.
The great thing with PICs is that they are rather easy to program directly without using any vendor libraries - certainly much easier than with the more complex ARM Cortex that are all around these days (for which it is also possibly BTW, but really on PICs that's much easier.)
The OP would have to browse the source code of his project to know what it was using exactly.
First thing I recommend the OP to read is the... datasheet.
JPortici:
--- Quote from: tszaboo on August 24, 2022, 11:17:58 am ---I used dsPIC33 about 12 years ago in a design. I still have PTSD from it.
--- End quote ---
That's on you for wanting to use manufacturer's peripheral libraries.
Configuration is trivial, documentation is good.
It may have been that you use one of the earlier dsPIC33FJ, an absolute piece of garbage full of hardware bugs.
Nobody uses dsPIC33FJ. Luckily for me the only board i have that uses one is a project from someone else i don't have to mantain.
But apart from those (and the old turds dsPIC30F / PIC24K) the architecture and docs and compilers is among the nicest, probably the best of the bunch.
dsPIC33E/C and PIC24FJ are the nicest platforms and if you contact support 9 out of 10 times you get people from the 16bit team instead of first level support
tszaboo:
--- Quote from: JPortici on August 24, 2022, 09:47:12 pm ---
--- Quote from: tszaboo on August 24, 2022, 11:17:58 am ---I used dsPIC33 about 12 years ago in a design. I still have PTSD from it.
--- End quote ---
That's on you for wanting to use manufacturer's peripheral libraries.
Configuration is trivial, documentation is good.
--- End quote ---
Yeah, silly me for trying to use the support for the parts that are available from everyone else. :-DD :palm:
Navigation
[0] Message Index
[*] Previous page
Go to full version