The ICSS SDFM driver provides a well defined set of APIs to expose sigma delta interface.
The ICSS SDFM example invokes these APIs to
Once these steps are executed
Following section describes the Example implementation of ICSS SDFM on ARM(R5F).
Folder/Files | Description |
---|---|
${SDK_INSTALL_PATH}/examples/motor_control/icss_sdfm | |
app_sddf.c & sddf.c | ICSS SDFM application |
${SDK_INSTALL_PATH}/source/motor_control/current_sense/sdfm | |
firmware/ | Folder containing SDFM firmware sources. |
driver/ | ICSS SDFM driver. |
Parameter | Value |
---|---|
CPU + OS | r5fss0-0 freertos |
ICSSG | ICSSG0 |
PRU | PRU0 |
Toolchain | ti-arm-clang |
Board | am243x-evm |
Example folder | examples/motorcontrol/sddf |
Other than the basic EVM setup mentioned in EVM Setup, below additional HW is required to run this demo
Test detail | Steps | Pass/fail crieteria |
---|---|---|
To check raw data for 64 NC OSR | 1. Set NC OSR to 64 | Resolution of sampled data should be 13.9 bits |
2. Set data read time half of epwm cycle | ||
3. Set epwm output frequency 20Khz | ||
4. Draw graph for Raw data | ||
To check raw data for 32 NC OSR | 1. Set NC OSR to 32 | Resolution of sampled data should be 11.4 bits |
2. Set data read time half of epwm cycle | ||
3. Set epwm output frequency 20Khz | ||
To check Threshold comparator | 1. Set High Threshold to 3500 and low threshold to 2500 | Logic analyzer capture for High & Low Thresholds |
2. Set Over current OSR to 32 | ||
3. Probe Ch0 high, low threshold GPIO pins & input signal | ||
4. Capture signal in Logic analyzer |