Hello,
My team and I have the evaluation module/GUI application and it works great as expected. Now, I'm struggling with the code for our own custom board. Before receiving our PCBA we put together the intended circuit and thresholds on the breadboard, and were able to dial it in to match our needs. I've been using the Arduino code as reference, but our custom board uses a Kinetis MCU. We are using UART (with 2 stop bits) as our communication method, 5V logic from the MCU, pulling the TEST pin to 5V through a resistor to match.
For testing, I've been writing the thresholds, delay, write to EEPROM, delay, writing 1 burst and 1 listen, delay, and then using the UMR command to retrieve the distance. It always returns the following no matter the circumstance:
44 01 11 11 11 87
Here's a sample of my output from the Kinetis to the PGA460:
55 10 01 11 11 11 11 11 FC 5A A4 1C E7 38 38 38 38 00 01 11 11 11 11 11 FC 5A A4 1C E7 38 38 38 38 00 81 55 0C 01 11 11 11 11 11 FC 5A A4 1C E7 38 38 38 38 00 00 00 00 00 22 22 22 4D 94 4B 00 C0 32 00 04 04 72 FF 0C 11 22 69 CA 00 00 00 00 48 55 00 01 FE 55 05 FA
Running this will only work without UMR request:
{ 0x55, 0x09, 0x1B, 0xDB}
But returns:
44 C0 FA
Should it be returning a 0x40 instead of 0x44?