To allow for quick evaluation of the TIDA-00176 design an example firmware for Piccolo F28069M MCU is provided, where the interpolated high-resolution angle is calculated for both the 16-bit dual ADC ADS8354 and the F28069M MCU’s embedded dual S/H 12-bit ADC. A user interface through USB virtual COM port at 115000 baud allows for easy performance evaluation.
The user interface through virtual COM port at 115000 baud supports the following features:
- Selection of Sin/Cos encoder line count: up to 32000
- Hardware and software synchronized sampling of the external dual sampling 16-bit ADC through SPI, the internal 12-bit dual S/H ADC and the incremental counter with a synchronization delay of less than 100 ns
- High resolution angle in 32-bit, fractional Q28 format. Angle scaled per unit from 0 to 0.9999999, up to 28-bit interpolated angle resolution
- Automatic absolute position initialization after first occurrence of index marker R
- Menu to support display mode at 10 Hz or data dump mode at a 200-Hz update rate for total angle, incremental angle and phase with both, the 16-bit dual ADC (ADS8354) on the TIDA-00176 design, and the C2000 on-chip 12-bit dual S/H ADC
- Diagnostic error message when encoder not connected or when differential input voltage below 0.3 VPP