Author Topic: Good book on programming dsPIC controllers  (Read 13622 times)

0 Members and 1 Guest are viewing this topic.

Offline perdrixTopic starter

  • Frequent Contributor
  • **
  • Posts: 640
  • Country: gb
Good book on programming dsPIC controllers
« 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
 

Online JPortici

  • Super Contributor
  • ***
  • Posts: 3461
  • Country: it
Re: Good book on programming dsPIC controllers
« Reply #1 on: July 27, 2021, 04:50:02 pm »
lucio di jasio's books, definetly.
Programming 16-Bit PIC Microcontrollers in C: Learning to Fly the PIC 24
though it's a bit outdated if you program bare metal you won't have any problem
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5898
  • Country: es
Re: Good book on programming dsPIC controllers
« Reply #2 on: July 27, 2021, 08:37:49 pm »
Also: Intelligent Sensor Design Using the Microchip dsPIC , Creed Huddleston
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline perdrixTopic starter

  • Frequent Contributor
  • **
  • Posts: 640
  • Country: gb
Re: Good book on programming dsPIC controllers
« Reply #3 on: July 28, 2021, 08:03:11 am »
Thank you both ...

David
 

Offline rooppoorali

  • Regular Contributor
  • *
  • Posts: 100
  • Country: bd
Re: Good book on programming dsPIC controllers
« Reply #4 on: July 18, 2022, 01:12:41 pm »
 

Offline clairemattockskth67

  • Newbie
  • Posts: 2
  • Country: fr
Re: Good book on programming dsPIC controllers
« Reply #5 on: August 24, 2022, 10:31:02 am »
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.

Thanks so!
« Last Edit: August 26, 2022, 07:23:26 pm by clairemattockskth67 »
 

Offline tszaboo

  • Super Contributor
  • ***
  • Posts: 7374
  • Country: nl
  • Current job: ATEX product design
Re: Good book on programming dsPIC controllers
« Reply #6 on: August 24, 2022, 11:17:58 am »
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
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.
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14464
  • Country: fr
Re: Good book on programming dsPIC controllers
« Reply #7 on: August 24, 2022, 05:55:35 pm »
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.
 

Online JPortici

  • Super Contributor
  • ***
  • Posts: 3461
  • Country: it
Re: Good book on programming dsPIC controllers
« Reply #8 on: August 24, 2022, 09:47:12 pm »
I used dsPIC33 about 12 years ago in a design. I still have PTSD from it.

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
 
The following users thanked this post: hans

Offline tszaboo

  • Super Contributor
  • ***
  • Posts: 7374
  • Country: nl
  • Current job: ATEX product design
Re: Good book on programming dsPIC controllers
« Reply #9 on: August 25, 2022, 09:22:00 am »
I used dsPIC33 about 12 years ago in a design. I still have PTSD from it.

That's on you for wanting to use manufacturer's peripheral libraries.
Configuration is trivial, documentation is good.
Yeah, silly me for trying to use the support for the parts that are available from everyone else.  :-DD :palm:
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf