chipKIT® Development Platform

Inspired by Arduino™

chipkit max 32 sample speed question

Created Sat, 03 Nov 2012 07:00:52 +0000 by juguefre


Sat, 03 Nov 2012 07:00:52 +0000


I do know the sample speed of the chipkit max32 is 1 MS per second, however I need to read 4 analog channels and I don't know if that 1 MS is split in those 4 analog channels or if that is split in the 16 analog channels and I end up using 1/16 of that 1 MS in each analog channel, the ideal state for me would be to have 1/4 of the 1 MS in each analog channel I need to read.

If by default that is not happening I need to know if there is way to enable this sample speed management.

Sorry for my poor english.

Any help will be greatly appreciated.

Thank you for reading.


Sat, 03 Nov 2012 12:45:35 +0000

The 1Megasample/second value is from the PIC32 datasheet. The current Arduino style libraries do not support this high of a sample speed. In order to achieve the max sample rate, you will need to create your own ADC sample library.

You can sample all of the ADC channels you want, but there is only one ADC peripheral on the PIC32, and it's max is 1MS/s. So you can divide that rate up between 2 channels (each at 500KS/s) or more if you like.