![]() |
MKM34Z256VLx7 Bare Metal Software Drivers
R4.1.6
Reference Manual
|
This benchmark application demonstrates performance of the Peripheral Bridge (AIPS-Lite) and IOPORT, a special single-cycle interface with the ARM Cortex-M0+ core, for GPIO pin control. The code sets and clears PTF1 and PTF2 through the AIPS-Lite and IOPORT, respectively. The following figure shows timing of the GPIO pin control for non-optimized code - green waveform represents PTF1 and yellow waveform PTF2 pins.
The following figure shows timings of the GPIO pin toggling for code optimized for speed - green waveform represents PTF1 and yellow waveform PTF2 pins.
GPIO pin control timings for 2 MHz core and bus clocks executed in a while(1){..}
loop for non-optimized and optimized codes are summarized below:
Performance | AIPS (Lite) | IOPORT |
---|---|---|
Toggle time; opt = none | 2.975us | 2.016us |
Toggle time; opt = speed | 1.504us | 0.448us |