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:
-
Configure the PGA460 in the GUI to achieve the desired results.
-
Export all configuration files from the GUI to a text document using its built-in export feature.
-
Create a separate
case
statement in my Energia code to replicate all of the configuration functions, for example:- ussc.initBoostXLPGA460(commMode, baudRate, uartAddrUpdate);
ussc.initThresholds(fixedThr);
ussc.defaultPGA460(xdcr);
ussc.initTVG(agrTVG, fixedTVG);
ussc.runDiagnostics(1, 0);
ussc.burnEEPROM();
- ussc.initBoostXLPGA460(commMode, baudRate, uartAddrUpdate);
- Use the register values exported from the GUI in the Energia code.