3.1 Verifier Application Flow

For the Verifier application, perform the following steps after the program starts:

  1. Initialize the system and enable the 1.25V DC/DC converter.
  2. Initialize the UWB device using the uwb_device_init() function:
    1. Release the nRESET signal.
    2. Copy the default SPI register data from the Flash/EEPROM into the SRAM working structure.
    3. Read the UWB device version number.
  3. Check the UWB device version.
  4. Set up the UWB device for the Prover or Verifier operating mode using the uwb_setup_analog () function:
    1. Load the SPI working structure into the SPI register of the ATA8352.
    2. Set up the PLL (and check the crystal operation).
    3. Set up the FLL for the RX function.
    4. Set up the FLL for the TX function.
    5. Configure the turnaround mode for the Prover or Verifier operation.
  5. Execute the Verifier mode within an endless loop using the run_verifier_mode() function:
    1. Switch ON the 1.25V DC/DC converter.
    2. Set up the UWB device for the Prover/Verifier operating mode using the uwb_setup_analog() function.
    3. Initialize the Verifier operation using the init_verifier_mode().
      1. Load the SSID data into the device SRAM.
      2. Configure the IRQ mask of the device.
      3. Clear the data buffer.
    4. Load the RNR data into the device FIFO.
    5. Enable the Verifier mode.
    6. Wait until the IRQ pin is active.
    7. Read the IRQ register of the device to clear the interrupt.
    8. Read the data buffer with measurement data and check if it is a valid value.
  6. Shut down the device using the uwb_device_shutdown() function:
    1. Apply the nRESET signal.
    2. Disable the 1.25V DC/DC converter.
  7. Calculate the distance calculate_distance().
  8. Display the output data on the OLED board (LE and MaxIDX/MaxV as a graph and distance and packet error as a value).