Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 9 months ago.
Speed
I read that this nucleo has 48MHz as speed.
I am trying a similar program in both this architecture and an Arduino UNO which has only 16MHz but it does not seem faster. If anything a little slower...
Is there a way to set the speed of the processor?/ (Previously when working with PICs that was possible)
Question relating to:
1 Answer
8 years, 9 months ago.
Sure you can, but 48MHz is probably its maximum rated speed. How fast it is depends largely on the program and overhead of libraries. For example the Nucleo ones are quite reasonable in toggling an IO in speed in the mbed lib (for sure not worse per clock cycle than an Arduino, and a much faster clock on top of that), but horrible in switching between input and output with their GPIO (blame STM for bad code).
So what are you doing with it? And compared to what? (For example a library/program for an UNO which is written bare metal, so without the Arduino layer in between, will be more efficient than one with the Arduino layer in between).