8 years, 2 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:

Affordable and flexible platform to ease prototyping using a STM32F091RCT6 microcontroller.

1 Answer

8 years, 2 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).