Open main menu

DAVE Developer's Wiki β

Changes

DESK-MX6-L/Peripherals/GPIOs

158 bytes added, 09:57, 4 October 2022
gpio interrupt example
===== gpio interrupt example =====
If a push button, with proper pull-up, is connected to a GPIO line available - for example using the J33.34 pin available on [[AXEL_Lite_SOM/AXEL_Lite_Evaluation_Kit/Interfaces_and_Connectors/WIDE | SBC AXEL Lite WIDE]] connector - the related GPIO can be used as an interrupt:
* J33.40 is connected to J10.40 SOM pin (** J33 connector is the WIDE connector in the [[AXEL_Lite_SOM/AXEL_Lite_Evaluation_Kit | AXEL Lite EVK]]** J10 connector on SBC is the SO-DIMM connector in the AXEL Lite EVK)** ALT-5 alternate function for this pin is <code>GPIO1_IO06</code>
* the corresponding pin number is 0 6
* <code>gpiomon</code> utility can be used for monitor the pin status and triggering, for exmapleexample, the ''falling-edge'' event:
<pre class="workstation-terminal">
8,226
edits