![]() |
MKMxxZxxACxx5 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 PTF3 and PTF5 through the AIPS-Lite and IOPORT, respectively. The following figure shows timing of the GPIO pin control for non-optimized code - green waveform represents PTF3 and yellow waveform PTF5 pins.
The following figure shows timings of the GPIO pin toggling for code optimized for speed - green waveform represents PTF3 and yellow waveform PTF5 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 | 5.951us | 4.032us |
Toggle time; opt = speed | 3.487us | 1.504us |