3.2 Prover Application Flow
For the Prover application, perform the following steps after the program starts:
- Initialize the system and enable the 1.25V DC/DC converter.
- Initialize the UWB device using the
uwb_device_init()
function.- Release the nRESET signal.
- Copy the default SPI register data from the Flash/EEPROM into the SRAM working structure.
- Read the UWB device version number.
- Check the UWB device version.
- Set up the UWB device for the Prover
or Verifier operating mode using the
uwb_setup_analog ()
function:- Load the SPI working structure into the SPI register of the ATA8352.
- Set up the PLL (and check the crystal operation).
- Set up the FLL for the RX function.
- Set up the FLL for the TX function.
- Configure the turnaround mode for the Prover or Verifier operation.
- Initialize the Prover operation using
the
init_prover_mode()
function:- Load the SSID data into the device SRAM.
- Configure the IRQ mask of the device.
- Clear the data buffer.
- Execute the Prover mode within an
endless loop using
run_prover_mode()
function:- Load the RNR data into the device SRAM.
- Read the IRQ register of the device to clear the interrupt signal.
- Clear the data buffer.
- Wait until the IRQ pin is active.
- Read the IRQ register of the device to clear the interrupt signal.
- Clear the data buffer.