Show Posts
Pages: [1]
1  Products / Arduino Due / Re: Cortex M3 Assembly Files on the Due on: April 01, 2013, 09:50:03 am
Thanks for the reply. Ya, I found a couple of different libraries in the meantime, but like you said, 90% of them use AVR assembly for speed. I did however run into this:,140107.0.html
Apparently we have access to an almost complete CMSIS/DSP_Lib, you just have to follow the instructions above to be able to access it. For what I need to do it's working pretty well, but definitely check that library out, it's got a ton of useful functions in it.
2  Products / Arduino Due / Re: Analog I/O Pins and ADC Sampling Frequency on: April 01, 2013, 09:39:32 am
I also just received the Due and have found myself facing similar problems. Check out the following link:
Apparently it's the startup time that screws us up. Another way I went about fixing that is using:
adc_init(ADC, SystemCoreClock, ADC_FREQ_MAX, ADC_STARTUP_FAST);
Where I simply multiplied the max frequency by 2 (less advised as its probably set at max for a reason). I hear what you're saying about the prescaler, but I have yet to find a way to edit it directly. In the above link he states that its set to its maximum value, so there's that too. Anyway best of luck with this mysterious chip  smiley-razz
3  Products / Arduino Due / Cortex M3 Assembly Files on the Due on: March 30, 2013, 08:28:53 am
I've just upgraded from the Uno to the Due yesterday and have ran into a few problems. I've been using an FFT library in a project I've been working on and jumped to the Due for more storage and speed. What slipped my mind is although my code transferred fine, the library was mostly written for AVR, making it useless on this ARM chip. Now I'm on the hunt for a new library. I found the following site which has exactly what I need written for the Cortex M3 chips:            Namely FFTCM3.s
The problem is I have no idea how to interface with a .s file. Before I was using a .h , and if I try including the .s in my sketch and try to use any functions the terminal lights up in errors. Am I using the right approach on this, is this file usable for me? Any help is greatly appreciated, if you couldn't already tell, I'm new at this  smiley-razz
Pages: [1]