Test the response time from toggling a GPIO input to setting a GPIO output from the interrupt handler.

Measure the interrupt response time for a GPIO input

This mbed program registers "on rise" and "on fall" interrupt handlers for a GPIO input and drives a different GPIO output to follow the input.

Measurements are performed on a NUCLEO-F767ZI board https://os.mbed.com/platforms/ST-Nucleo-F767ZI/.

mbed-os-5.12.3

  • rising: 1.1 usec - 1.3 usec
  • falling: 1.1 usec - 1.3 usec

/media/uploads/stefanwaldschmidt/mbed-os-5.12.3.gif

OS 2

  • rising: 0.7 usec - 1.2 usec
  • falling: 0.8 usec - 1.3 usec

/media/uploads/stefanwaldschmidt/imag001.gif

Files at this revision

API Documentation at this revision

Comitter:
stefanwaldschmidt
Date:
Fri May 10 07:44:18 2019 +0000
Parent:
2:57e26cc56a38
Commit message:
upgrade form mbed 2 to mbed-os-5.12.3;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show diff for this revision Revisions of this file
diff -r 57e26cc56a38 -r e4a312a8ad61 main.cpp
--- a/main.cpp	Thu May 09 13:43:35 2019 +0000
+++ b/main.cpp	Fri May 10 07:44:18 2019 +0000
@@ -2,9 +2,11 @@
    Test interrupt response time
 
    Hardware: NUCLEO-F767ZI
+   Libraries:
+     mbed-os-5.12.3
    Measured delay between gpio_in and gpio_out
-   * rising:  0.7 usec - 1.2 usec
-   * falling: 0.8 usec - 1.3 usec
+   * rising:  1.1 usec - 1.3 usec
+   * falling: 1.1 usec - 1.3 usec
 */
 
 #include "mbed.h"
diff -r 57e26cc56a38 -r e4a312a8ad61 mbed-os.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Fri May 10 07:44:18 2019 +0000
@@ -0,0 +1,1 @@
+https://github.com/ARMmbed/mbed-os.git/#2f1338b89fc2d8d932b1165a4e19d76989219c66
diff -r 57e26cc56a38 -r e4a312a8ad61 mbed.bld
--- a/mbed.bld	Thu May 09 13:43:35 2019 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file