BISS-C diagnostic application does the following:
This application is controlled with a terminal interface using a serial over USB connection between the PC host and the EVM. Please connect a USB cable between the PC and the EVM/LP. A serial terminal application (like teraterm/ hyperterminal/ minicom) is then run on the host. To configure, select the serial port corresponding to the port emulated over USB by the EVM. The host serial port should be configured to 115200 baud, no parity, 1 stop bit and no flow control.
The BISS-C receiver firmware running on PRU provides a defined interface. The BISS-C diagnostic application interacts with the BISS-C receiver firmware interface. It then presents the user with menu options to select Data ID code. The application collects the data entered by the user and configures the relevant interface. Then via the BISS-C receiver interface, the command is triggered. Once the command completion is indicated by the interface, the status of the transaction is checked. If the status indicates success, the result is presented to the user.
The BiSS-C diagnostic application supports two types of periodic trigger modes for continuous position sampling as described in Periodic Trigger Modes.
| Folder/Files | Description |
|---|---|
| ${SDK_INSTALL_PATH}/examples/position_sense/bissc_diagnostic | |
| bissc_diagnostic.c | BISS-C diagnostic application |
| ${SDK_INSTALL_PATH}/source/position_sense/bissc | |
| firmware/ | Folder containing BISS-C PRU firmware sources |
| driver/ | BISS-C diagnostic driver |
| Parameter | Value |
|---|---|
| CPU + OS | r5fss0-0 freertos |
| ICSSM | ICSSM0 |
| PRU | PRU0 |
| Toolchain | ti-arm-clang |
| Board | am263px-lp |
| Example folder | examples/position_sense/bissc_diagnostic/single_channel |
This example supports one BiSS-C channel using one PRU. In this example:
| Designator | ON/OFF | Description |
|---|---|---|
| J13 | ON | 3V3 Supply to Booster Pack |
| J14 | ON | 5V0 Supply to Booster Pack |
| Designator | ON/OFF | Description |
|---|---|---|
| J11 | OFF | VSENSE/ISENSE select |
| J13 | OFF | VSENSE/ISENSE select |
| J17 | Pin 1-2 Connected | SDFM Clock Feedback Select |
| J18/J19 | J19 installed: sets VSENSOR1 to 5.0V | Axis 1: Encoder/Resolver Voltage Select |
| J20/J21 | J21 installed: sets VSENSOR2 to 5.0V | Axis 2: Encoder/Resolver Voltage Select |
| J22 | OFF | Axis 1: Manchester Encoding Select |
| J23 | OFF | Axis 2: Manchester Encoding Select |
| J24 | OFF | Axis 1: RS485/DSL MUX |
| J25 | OFF | Axis 2: RS485/DSL MUX |
| J26 | OFF | VSENSE/ISENSE Select |
| J27 | OFF | Encoder and SDFM Paths Select |
| J28 | ON | AM243/AM263 Mode |
Shown below is a sample output when the application is run:
Shown below is a sample output when two encoders are in daisy chain and safety is enabled in one of encoders:
This section describes how to debug the BiSS-C application, including a guide to debugging the BiSS-C example and firmware. Several common debugging steps on verifying the configuration of key registers, hardware details for probing pins, debugging firmware, common issues with multi-channel or continuous mode, etc. are described in Encoder Examples Debug Guide.
If the BiSS-C interface is not initializing correctly, the steps mentioned below can help identify the root cause. Additionally, ensure that the hardware connections and software configurations are properly set up before proceeding with debugging.
In case of initialization failure, perform the following steps to identify the root cause:
Verify that the clock and RX signals show meaningful data exchanges. If the initialization communication is incorrect, possible causes include:
Troubleshooting steps:
| UART Option Number | Name | Description | Pass/fail Criteria |
|---|---|---|---|
| 3 | Data readout (absolute position data) | Absolute rotor position value, errors, and warnings are received. | CRC success with ABS, E, W and CRC values printed in the terminal. |
| 4 | Control Communication | Absolute rotor position value, errors, and warnings, along with the result of the control communication command are received. | CRC success with ABS position value, E, W and CRC values of position data along with the control communication result printed in the terminal. |
| 6 | Start periodic CMP mode | Absolute rotor position value, errors, and warnings are received periodically using IEP CMP event. Rotate the rotor of motor and see the changes in position value on UART. | 0 CRC errors with ABS position value, E, W and CRC values printed in the terminal. |
| 7 | Start periodic CAP mode | Absolute rotor position value, errors, and warnings are received periodically using IEP CAP event. Rotate the rotor of motor and see the changes in position value on UART. | 0 CRC errors with ABS position value, E, W and CRC values printed in the terminal. |
| 8 | Enable/disable safety mode | Enable/disable safety mode which toggles between 6/16 bit CRC and enables/disables Sign of Life counter | Safety should be enabled and CRC and Sign of Life counter will be displayed from next position data request |