diff --git a/GPIO/IMXRT1062/ring.IMXRT1062.ino b/GPIO/IMXRT1062/ring.IMXRT1062.ino new file mode 100644 index 0000000000000000000000000000000000000000..c0097be21bbf0fb23e923b6f2fdcdf1cbda4c3b9 --- /dev/null +++ b/GPIO/IMXRT1062/ring.IMXRT1062.ino @@ -0,0 +1,27 @@ +// +// ring.IMXRT1062.ino +// +// ring oscillator test +// +// Neil Gershenfeld 8/12/21 +// +// This work may be reproduced, modified, distributed, +// performed, and displayed for any purpose, but must +// acknowledge this project. Copyright is retained and +// must be preserved. The work is provided as is; no +// warranty is provided, and users accept all liability. +// + +void setup() { + pinMode(0,OUTPUT); + } + +void loop() { + while (1) { + uint8_t data = GPIO6_DR; + if (data & 0b100) // pin 1 + GPIO6_DR = 0; + else + GPIO6_DR = 0b1000; // pin 0 + } + } diff --git a/index.html b/index.html index 2ef0f55a13501a37246000623ca2245450815730..8c577367bb803376c978e4f0dfdbf54eeba936a3 100644 --- a/index.html +++ b/index.html @@ -42,7 +42,7 @@ The GPIO test measures how quickly pins can communicate with a processor core; t <tr> <td>23.08</td> <td>IMXRT1062</td> -<td>Teensy 4.1, 600 MHz, <a href=GPIO/Arduino/ring.ino>Arduino</a>, GPIO</td> +<td>Teensy 4.1, 600 MHz, <a href=GPIO/Arduino/ring.ino>Arduino</a>, <a href=GPIO/IMXRT1062/ring.IMXRT1062.ino>GPIO</a></td> <td>August, 2021</td> </tr>