|
|
View previous topic :: View next topic |
Author |
Message |
alan
Joined: 12 Nov 2012 Posts: 357 Location: South Africa
|
|
Posted: Fri Apr 26, 2013 4:57 am |
|
|
Downside, CCS doesn't support PIC32, so you will have to use the Microchip compiler.
Regards |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19551
|
|
Posted: Fri Apr 26, 2013 8:28 am |
|
|
probeoil wrote: | Hi !!
what is your appinion about the PIC32MX795F512 processor
I found a board that has what i need
http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,892,894&Prod=CHIPKIT-MAX32
my conserne is that the have a 8MHz crystal on it, will it reduce the maximum speed?
I can't find the CPU speed in respect to the crystal source.
Although i don't think it would reduce speed, it's like puting wooden wheels on a sports car.. |
Like the 4550, where you have a PLL, this has two. One for the USB, and a separate one for the CPU. For the CPU, you can program the divider, then the multiplier, and then the final divider. You'd divide by 2 to get 4Mhz (since the incoming must be <5MHz), then multiply by 20 to give the 80Mhz max that the sysclock supports. The USB has the incoming clock/2, and this is automatically multiplied by 24 to give the main USB clock.
Key thing is that the chip requires a master clock that is a multiple of 4MHz, so 8MHz is ideal.
As well as the compiler, 'beware' that by the time you add a couple of I/O boards you may well find it costing as much as a micro PC board.
Best Wishes |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Fri Apr 26, 2013 9:27 am |
|
|
The PIC32 processor line is building on the strong name of the PIC processor line but internally is a completely different animal. It is based on the MIPS processor core and as such not supported by any of the CCS compilers.
I think you are making a wise choice by moving away from the PIC18 processors to something faster. However, it also means you are moving away from this forum's target audience. As this forum is also hardware related we can discuss your question here but please be aware that we are getting off topic and that you might not get the best possible answers here (if your only tool is a screwdriver, then every problem looks like a screw).
We don't know what your project is about so with the limited specifications you have given it is difficult to give good advice. And why do you need a minimum of 24MIPS? Depending on the architecture this doesn't mean the same thing, for example 1 instruction on a 8 bit processor is way less powerful than a single instruction on a 32 bit processor. For example, multiplying a 32 bit value on a 32-bit processor can be done in 1 instruction time but will take over 200 instructions on a PIC18.
Note that some modern processors can execute more than 1 instruction per clock tick. So, if you specified the 24MIPS because you want to toggle an I/O pin than you might end up with a too slow processor.
We know you want to read a CCD with a 12-bit ADC at 1Msps. What are you going to do with the data after reading? This will be your next hurdle to take and now you are changing hardware platform it is necessary to think about it. For example, buffering the data would benefit from huge amounts of available RAM. 1 second data buffering requires 2Mb RAM, unthinkable on a PIC18 but less than 1% on some of the newer 32-bit platforms.
Generally: when starting a new design from scratch like you are I would be looking for one of the existing platforms. That'll give you a good head start because driver libraries for many external components are ready for use.
Some of the choices:
- Arduino ATMega based: Great, but tops at about 20MIPS, too slow for you.
- Arduino - ARM based: Good potential but quiet new and not a lot of choices in hardware. Arduino Due model has 512kb Flash, 96kbyte RAM and 84MHz (about 100 MIPS).
- Arduino others: Many companies have adopted the Arduino form factor with different processors. Good thing is that you can use many Arduino extension boards. Disadvantage is that the standard Arduino libraries are not going to work and you depend on manufacturer translated libraries. Your referenced Digilent ChipKit falls into this category with the PIC32 based on a MIPS processor, very different from the ARM and AtMega processors used in the official Arduino. Looking into it, this ChipKit platforms seems promising and is much more powerful than the other Arduinos.
- Raspberry Pi: cheap and very powerful hardware. Disadvantage is that the Linux OS requires some time to boot.
- mbed: great for quick prototyping. A small set of ARM based processor boards and good set of libraries. Design your prototype with given hardware and then for full production only re-use the parts you really need. I've one of these boards at home and they are good though at 48MHz a bit slower than the ChipKits. |
|
|
probeoil
Joined: 02 Apr 2013 Posts: 20 Location: greece
|
|
Posted: Sat Apr 27, 2013 6:46 am |
|
|
Quote: | it also means you are moving away from this forum's target audience. As this forum is also hardware related we can discuss your question here but please be aware that we are getting off topic and that you might not get the best possible answers here (if your only tool is a screwdriver, then every problem looks like a screw). |
I know that i am off the topic, and that if i move to a different design i won't be able to use CCS compiler and this forum.
The last 2 posts helped a lot.
The idea of the project i am working on is to measure the quality and safety of virgin olive oil through spectroscopy.This is why a need a CCD or CMOS to measure the photons that are not absorb from the oil.
The trick is that those sensors have a minimum video output frequency of 200KHz-500KHz, and to sample that signal i need a double frequency sample rate. I could measure with a simple photodiode, but at deep UV wavelength oil has massive absorption, so i am expecting a low light signal, that is why i need high quantum efficiency sensors.
I want to thank everyone for the massive help you have given me, you are terrific engineers. |
|
|
|
|
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
|