Example of GPIO test in input mode

In the following example, a GPIO test is done in the input mode with Serial Wire Debug (SWD) controls.

  1. Write the GPIO pins connected with drive strength H0H1:
    • Address: 0x50842700 (+ n x 0x4 for GPIO0-31)
    • Data: 0x300
  2. Write the GPIO pins to the input mode:
    • Address: 0x50842514
    • Data: 0x0
  3. Set the GPIO pins to the wanted state from a production tester.
  4. Read the GPIO status.
    • Address: 0x50842510
  5. Compare the read value to the tester setting.
For information on GPIO, see GPIO - General purpose input/output in nRF9160 Product Specification.