Created Sun, 06 Mar 2016 02:49:26 +0000 by ltheoret
Sun, 06 Mar 2016 02:49:26 +0000
Hi,
On the Arduino forum I found this IO speed test sketch. I tested it on 2 Arduino's and 3 CkipKIT boards.
I am waiting for an Arduino Due to arrive, I will test that to, when it arrives.
I also want to test the pure computing power not the IOs.
Attached are the sketch and the results:
Mon, 07 Mar 2016 08:25:27 +0000
Very nice job! I really like the thinking to make such measurments!
Also, have you thought to measure the IO digital ports speed including measurements without using Arduino functions but using lower level syntax too? (e.g. by using a simple read such as TEMP=PORTE or a write such as LATE=TEMP, PORTE=TEMP or via REG_PIOC_CODR/REG_PIOC_SODR).
Several month ago i did some tests for a 16 bit port read (for 1000 readings). The results, as fas i can recall, assmuing the code i used is ok, are:
DUE: about 5 MSPS MAX32: 19 MSPS PIC32MZ (wifire configuration): 16 MSPS
(it also includes the saving into a variable array too, because what to do the reading without use it?)
The code was like:
now1 = micros();
for ( int i = 0; i < numsofsamples; i++) {
buff[i]=PORTE;
}
now2 = micros();
If interested i can repeat the tests and come back with fresh results. Any suggestion or correction, is welcome!
Mon, 07 Mar 2016 20:16:10 +0000
Hi,
Yes. any info on speed tests interest me as I have a verity of board to play with. Also would like to see your code.
Luc