Example of GPIO test in input mode

nRF9151 Hardware Verification Guidelines

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:
    • For each pin, write 0x300 to the PIN_CFN register.
  2. Set the GPIO pins to input mode:
    • Write 0x0 to the DIR register to set all pins as input.
  3. Set the GPIO pins to the wanted state from a production tester.
  4. Read the GPIO status from the IN register.
  5. Compare the read value to the tester setting.
For information on GPIO peripheral registers, see GPIO - General purpose input/output in nRF9151 Product Specification.