Skip to main content
Associate II
June 6, 2024
Solved

SPC58 performance

  • June 6, 2024
  • 1 reply
  • 969 views

Hello,

I created a new project using default settings only to toggle an OUTPUT just to see the microcontroller performance.
I monitored that outpup with an oscilloscope and I get only 4.17MHz.

I am using a SPC58NH-DISP.

Is that an expected output frequency or I am missing something?

How much is the MIPS of SPC58NH microcontroller?

PS.: it was used clock default settings.

Best regards.

/* Inclusion of the main header files of all the imported components in the
 order specified in the application wizard. The file is generated
 automatically.*/
#include "components.h"

/*
 * Application entry point.
 */
int main(void) {

 /* Initialization of all the imported components in the order specified in
 the application wizard. The function is generated automatically.*/
 componentsInit();

 /* Uncomment the below routine to Enable Interrupts. */
 /* irqIsrEnable(); */
 
 /* Application main loop.*/
 for ( ; ; ) {
 pal_togglepad(PORT_LED1, LED1);
 }
}

 

Best answer by Erwan YVIN

Hello Alexandre ,

Normally , this CPU is based on Triple z4 cores 200 MHz 

to calculate the MIPS , you should have : 

MIPS = (CPU Frequency in Hz) / (Number of clock cycles per instruction)

On the different IPs, you can check the clocktree

2024-06-11 15_03_57-Window.png

 

     Best Regards

                    Erwan

1 reply

Erwan YVIN
Erwan YVINBest answer
ST Employee
June 11, 2024

Hello Alexandre ,

Normally , this CPU is based on Triple z4 cores 200 MHz 

to calculate the MIPS , you should have : 

MIPS = (CPU Frequency in Hz) / (Number of clock cycles per instruction)

On the different IPs, you can check the clocktree

2024-06-11 15_03_57-Window.png

 

     Best Regards

                    Erwan