CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Most powerful pic that PCWHD support..
Goto page 1, 2  Next
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ELCouz



Joined: 18 Jul 2007
Posts: 427
Location: Montreal,Quebec

View user's profile Send private message

Most powerful pic that PCWHD support..
PostPosted: Mon Oct 27, 2014 7:23 pm     Reply with quote

I'm curious to know what's the most powerful PIC24 or dsPIC that CCS compiler support. (Calculation wise,mips)

Now that I know that PIC32 are out of question.

Just want to see what they have to offer (microchip) before I need to jump the ARM bandwagon.


Thanks!
_________________
Regards,
Laurent

-----------
Here's my first visual theme for the CCS C Compiler. Enjoy!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Oct 27, 2014 8:14 pm     Reply with quote

Use the Microchip Parts Selector to set the minimum MIPs (the left-hand
in the Max MIPs section).
Un-select the box for Pic32, since CCS doesn't support it.
http://www.microchip.com/maps/microcontroller.aspx
I get 107 chips at 70 MIPs. They are all PIC24EP or dsPIC33EP.

Then look at the CCS Devices Supported page to see if they support it.
https://www.ccsinfo.com/devices.php?page=devices
newguy



Joined: 24 Jun 2004
Posts: 1911

View user's profile Send private message

PostPosted: Mon Oct 27, 2014 10:41 pm     Reply with quote

I've used the dsPIC33FJ256GP710A in 3 different designs now. At 80MHz, it gives 40MIPS. The most time sensitive/computationally intensive project is a communication bridge that supports 2 independent CAN channels @ 250kbps each and two independent serial links running at 500kBAUD. No issues at all with data throughput. I love the DMA on this processor as it handles pretty much all of the communication links on its own. Only issue was setting up DMA in the first place as that was a bit of a learning experience.

With an extra 30MIPS....I know I'd put them to use but I don't know on what.

I do have to say that I did find the limits of the PCD compiler when I was writing those 3 projects. I used version 4.141 of the compiler. I haven't used version 5 at all so I can't comment as to whether they've fixed some of the bugs, but 4.141 didn't handle CAN worth a damn on the dsPICs. I had to write all the CAN routines myself by directly reading/writing the low level registers because the built-in functions didn't work at all. At the time I did report this all to CCS but I don't know if they fixed it since. It was just a real leap given my previous experience with v4.099 and CAN on the PIC18F's. All the CCS drivers worked fine with no modifications for those processors.
ELCouz



Joined: 18 Jul 2007
Posts: 427
Location: Montreal,Quebec

View user's profile Send private message

PostPosted: Tue Oct 28, 2014 2:39 am     Reply with quote

Thanks guys! Smile

Another question:

I have some experience with the PIC18 series for awhile but only tried the PIC24 and dsPIC once when the compiler was around 4.060.

It was abysmal and hard since most of the libraries where broken at the time (like you said newguy)

As I can see both offer good performance (dsPIC/PIC24) which series do you recommend to learn?

I mean, will the PIC24 short lived like PIC17?
I don't wan't spend some time learning (Hobby wise) for an almost end of life product.


Which series between the two is easier to work with? (I won't do DSP calculations)
_________________
Regards,
Laurent

-----------
Here's my first visual theme for the CCS C Compiler. Enjoy!
newguy



Joined: 24 Jun 2004
Posts: 1911

View user's profile Send private message

PostPosted: Tue Oct 28, 2014 9:07 am     Reply with quote

I don't have any experience with the PIC24 family. I didn't find the dsPIC architecture hard to learn but there are some things to look out for.

I bought the CCS Analog Dev kit and I found out pretty quickly that it has a hardware fault on the board. Kind of. The sample code would sometimes run, sometimes not. The crystal on the board is 12MHz and the processor would sometimes run, sometimes not. After some digging I found in the datasheet for that family that the oscillator isn't guaranteed to start with a crystal of that value. I had to come up with code to manually start via the internal oscillator, then switch over to the external crystal because the CCS supplied #use delay() wasn't working properly to do the switchover. The supplied examples didn't do any switchover - they defaulted to the external crystal and that's why they sometimes wouldn't work.

I've found that CCS support for basic things like A/D, UART, etc works. CAN didn't as of 4.141, can't speak about more recent versions. DMA I didn't even bother using the built-in functions for, I instead cut my own using direct manipulation of the relevant registers. Microchip has some pretty good documentation on the subject.

Pay particular attention to the errata for whatever chip/family you choose. I did find an undocumented errata for the dsPIC33FJ256GP710A and I did notify Microchip about it. That said, their list of errata is very comprehensive.
temtronic



Joined: 01 Jul 2010
Posts: 9269
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Tue Oct 28, 2014 10:57 am     Reply with quote

re:...what's the most powerful PIC24 or dsPIC......

kinda depends on what's important or necessary for your project.
Some may need a lot of I/O, someone might want tons of memory.
Others need drop in replacement feature..

And of course Microchip will come out with a 'more powerful' PIC 3 days after your PCBs come back from the shop !!

jay
VernonAMiller



Joined: 11 Sep 2014
Posts: 25
Location: Contoocook, NH

View user's profile Send private message

PostPosted: Tue Oct 28, 2014 11:20 am     Reply with quote

As others have already said, it's tough for me to think of PIC32 as a PIC at all. If I ever need to move to something 32-bit, I will look at the ARM chips first. They are just a lot more widely supported.

Having said that, if you do decide to go the PIC32 route, MikroElektronika does make a PIC32 compiler that is reasonably priced. I have not used it, but I did use their PIC compiler (on PIC18 platforms) and it was OK - not as good or easy as the CCS compiler (which is why I'm here) but competent.

(No flame wars please! Just trying to point out options.)

VAM
ELCouz



Joined: 18 Jul 2007
Posts: 427
Location: Montreal,Quebec

View user's profile Send private message

PostPosted: Tue Oct 28, 2014 3:43 pm     Reply with quote

thanks again for the discussion guys! Smile

The closest PIC I could find to be the most powerful and backward compatible with my experience is the dsPIC30F6015.

30 MIPS (not the fastest but its an improvement from 18F4550 12 MIPS) but the most important for me is 5v operation and huge 25ma sink/source per pin!!!

I could live with 3.3v operation pic24/dspic33 but 4-5 ma per pin average won't cut it even for a led!
_________________
Regards,
Laurent

-----------
Here's my first visual theme for the CCS C Compiler. Enjoy!
temtronic



Joined: 01 Jul 2010
Posts: 9269
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Tue Oct 28, 2014 4:54 pm     Reply with quote

I've been using the 18F46K22 for quite awhile. It's my 'goto' PIC. LOTS of mem,I /O, peripherals like two UARTS, etc. 64 Mhz= 16mips I think ?
It's plenty fast for me....
Might be worth a look at ??

Jay
jeremiah



Joined: 20 Jul 2010
Posts: 1358

View user's profile Send private message

PostPosted: Tue Oct 28, 2014 6:23 pm     Reply with quote

ELCouz wrote:

I could live with 3.3v operation pic24/dspic33 but 4-5 ma per pin average won't cut it even for a led!


Which chip? all the PIC24 chips I have worked on are 18-25mA or more per pin. It does max out at 200mA total on most, but you don't typically drive high amounts of current on all the pins, just select ones.
ELCouz



Joined: 18 Jul 2007
Posts: 427
Location: Montreal,Quebec

View user's profile Send private message

PostPosted: Tue Oct 28, 2014 6:28 pm     Reply with quote

jeremiah wrote:
ELCouz wrote:

I could live with 3.3v operation pic24/dspic33 but 4-5 ma per pin average won't cut it even for a led!


Which chip? all the PIC24 chips I have worked on are 18-25mA or more per pin. It does max out at 200mA total on most, but you don't typically drive high amounts of current on all the pins, just select ones.


This what I have in hand PIC24HJ256GP210

From datasheet:

- 4 mA sink on all i/o pins
_________________
Regards,
Laurent

-----------
Here's my first visual theme for the CCS C Compiler. Enjoy!
jeremiah



Joined: 20 Jul 2010
Posts: 1358

View user's profile Send private message

PostPosted: Tue Oct 28, 2014 6:35 pm     Reply with quote

Check out the PIC24FJ (General Purpose) and PIC24EP (same as dsPIC33 family)series. The HJ are special function chips usually.

For General Purpose I use the PIC24FJ64GA004. For low power I use the PIC24FJ64GA104. Both are 18mA sink (25mA absolute max)
VernonAMiller



Joined: 11 Sep 2014
Posts: 25
Location: Contoocook, NH

View user's profile Send private message

PostPosted: Tue Oct 28, 2014 7:36 pm     Reply with quote

ELCouz wrote:
I could live with 3.3v operation pic24/dspic33 but 4-5 ma per pin average won't cut it even for a led!


I usually use a ULN20xx/ULN28xx chip to drive devices that are mounted external to the circuit board, even if they would probably be OK being driven by the PIC pin alone. Those chips are practically indestructible, it only takes a couple mA to drive each buffer, and they help isolate the PIC from the nastiness of the outside world. It's another chip and more real estate, but if you have the room it's something to consider.

VAM
Ttelmah



Joined: 11 Mar 2010
Posts: 19587

View user's profile Send private message

PostPosted: Wed Oct 29, 2014 3:42 am     Reply with quote

ELCouz wrote:
jeremiah wrote:
ELCouz wrote:

I could live with 3.3v operation pic24/dspic33 but 4-5 ma per pin average won't cut it even for a led!


Which chip? all the PIC24 chips I have worked on are 18-25mA or more per pin. It does max out at 200mA total on most, but you don't typically drive high amounts of current on all the pins, just select ones.


This what I have in hand PIC24HJ256GP210

From datasheet:

- 4 mA sink on all i/o pins


Key is to realise that these are aimed at low power. This though is the _minimum_ available from any pin, and the PGECx, and PGEDx pins are rated at 12mA, which is much more reasonable, and the SPI port pins also have higher drive.
It is only these low power models that have such restrictive drive, and the 'A' version doubles the drive.
newguy



Joined: 24 Jun 2004
Posts: 1911

View user's profile Send private message

PostPosted: Wed Oct 29, 2014 7:39 am     Reply with quote

Really, when it comes to questions regarding what's the best or most powerful processor, it all comes down to another question: what's your application?

One of my professors suckered our entire class back when I was in undergrad with that question. At the time the 386 (running at 20MHz mind you) was about the best you could get. I think someone even said "whatever is in a Cray" too. Then he said "My application is a microwave oven. Or what if the application is a remote control?" As soon as he said that, we all realized what a folly it would be to put a very expensive, very power hungry processor into a battery powered device.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group