PGA460: Configuring from EVM to Energia Library

Part Number: PGA460
Other Parts Discussed in Thread: ENERGIA,

Tool/software:

Hello,

I am running into issues when trying to configure the PGA460 in the Energia Library (GetDistance.io) to match the settings I successfully used in the GUI. My workflow is as follows:

  1. Configure the PGA460 in the GUI to achieve the desired results.

  2. Export all configuration files from the GUI to a text document using its built-in export feature.

  3. Create a separate case statement in my Energia code to replicate all of the configuration functions, for example:

    1. ussc.initBoostXLPGA460(commMode, baudRate, uartAddrUpdate);
      ussc.initThresholds(fixedThr);
      ussc.defaultPGA460(xdcr);
      ussc.initTVG(agrTVG, fixedTVG);
      ussc.runDiagnostics(1, 0);
      ussc.burnEEPROM();
  4. Use the register values exported from the GUI in the Energia code.

However, when I run this, the measurement results in Energia do not match the results from the GUI, even though I have ensured that #define userInputMode is set correctly and all my selections are passed in properly.

I would appreciate any guidance on why the measurements might differ and how to ensure the standalone Energia configuration matches the GUI behavior.

  • Hi Sahaj,

    Thank you for posting to the Sensors forum!

    How do the results from Energia compare to the results seen by GUI? Just to be sure, are you able to verify that the device is being programmed correctly (i.e., communication signals of RXD/TXD are the same for both Energia and the GUI)?

    Best

    ~Alicia