README.md
1# GPPI one to one {#gppi_basic_one_to_one_desc}
2
3The sample demonstrates a basic functionality of the nrfx_gppi helper.
4
5## Requirements
6
7The sample supports the following development kits:
8
9| **Board** | **Support** | **Driver** |
10|---------------------|:-----------:|:----------:|
11| nrf52dk_nrf52832 | Yes | PPI |
12| nrf52833dk_nrf52833 | Yes | PPI |
13| nrf52840dk_nrf52840 | Yes | PPI |
14| nrf5340dk_nrf5340 | Yes | DPPI |
15| nrf9160dk_nrf9160 | Yes | DPPI |
16
17## Overview
18
19Application initializes nrfx_gpiote, nrfx_timer drivers and the nrfx_gppi helper in a way that sets up the TIMER COMPARE event to be forwarded via PPI/DPPI to GPIOTE and to toggle a pin.
20
21> For more information, see **GPPI helper - nrfx documentation**.
22
23## Wiring
24
25To run this sample, no special configuration is needed.
26You should monitor the output from the board to check if it is as expected.
27
28## Building and running
29
30To run this sample, build it for the appropriate board and then flash it as per instructions in [Building and running](@ref building_and_running) section.
31
32## Sample output
33
34You should see the following output:
35
36```
37- "Starting nrfx_gppi basic one-to-one example."
38- "GPIOTE status: initialized"
39- "Time to wait: 1000 ms"
40- "Timer status: enabled"
41- "Timer finished. Context passed to the handler: >Some context<"
42- "GPIOTE output pin: <LED1_PIN> is low"
43- "Timer finished. Context passed to the handler: >Some context<"
44- "GPIOTE output pin: <LED1_PIN> is high"
45```
46
47> In the output, instead of `<LED1_PIN>`, you should see the corresponding pin numbers defined in `common/nrfx_example.h`.
48
49[//]: #
50[Building and running]: <../../../README.md#building-and-running>
51