Other Parts Discussed in Thread: CONTROLSUITE, TMS320F28379D
Hello all,
I am trying to read data from MU150 19-bit absolute encoder [link] connected to Ic-Haus evaluation board [link]. The master clk (MA) and server data (SLO) signal (non-differential) pins from the evaluation board are connected to launchpad as per the following figure from Biss-c position manager library document (sprui37).
Following the above diagram, I made these connections within launchpad and to the evaluation board:
1. gpio-6 (pin J8:80) to MA clk on evaluation board
2. gpio-7 (pin J8:79) to gpio-26 (pin J6:53)
3. gpio-24 (pin J4:34) to SLO pin on evaluation board
4. gpio-25 (pin J6:51) is not connected
5. gpio-27 (pin J6:52) to GND (J6:60) of launch pad
6. I did not configure and connect the PWR CTL pin to the encoder as the encoder evaluation board is powered independently.
Now, on the software side,
1. Used library from "<install_dir>\controlSUITE\libs\app_libs\position_manager\v01_02_00_00\bissc\examples". Includes screenshot below:
2. Changed position and crc bits to 19 and 6 respectively in "biss.h".
3. Following some forum answers, added "F28x_Project.h" into "biss.h" and "volatile" to BISSC_DATA_STRUCT.
4. CRC polynomials as per the encoder data sheet are 0x43 and 0x13 for SCD and CD. I tried those and also 0x03 and 0x03 (following one of the forum threads).
5. Created target configuration for F28379D with no compiler optimizations, the project builds with the following warnings:
6. Now, when I debug with the launchpad and encoder board connected, the program stops at 'while (bissc_data_struct.dataReady != 1) {}
' line.
7. At this point, if I disconnect either of the two MA clk and SLO lines to the encoder evaluation board, the values are read but with incorrect CRCs. Of course, the values doesn't seem to increase/decrease as I rotate the encoder. A screenshot of the watch window is given below:
Could anyone help me in troubleshooting the issue(s) I mentioned in points 5,6 and 7 above? Thank you in advance.