Part Number:AM3359
Tool/software: TI-RTOS
hHi,
I write this post by direction of @Garrett Ding. The issue is very simple and probably due to my teams limited experience as we all are students :
1. Currently we have generated a full version of ethercat code on the iceam3359 board.
2. We have modified the icev2 config as recommended by @Garrett Ding, to include PWM in the board
3. @Garrett Ding also recommends to sync the etherCAT synco with PWM Syncin in the following manner which makes little sense to me . It goes as follows :
" For EPWM_SYNCIN, please look into the Figure 15-9. ePWM Submodules and Critical Internal Signal Interconnects, and Table 15-12. Key Time-Base Signals: EPWMxSYNCI Time-base synchronization input - Input pulse used to synchronize the time-base counter with the counter of ePWM module earlier in the synchronization chain. An ePWM peripheral can be configured to use or ignore this signal. For example, this signal could come from a device pin for the first ePWM module (ePWM0). For subsequent ePWM modules this signal could be passed from another ePWM peripheral, such that EPWM1SYNCI is generated by the ePWM0 peripheral, EPWM2SYNCI is generated by ePWM1, and so forth. See Section 15.1.2 for information on the synchronization order of a particular device."
Can anybody here with an experience in this explain exactly how should this be done?
4. Our approach to the problem is this :
a) Try pure PWM on the board first before syncing it with EtherCat signal. Can anybody tell how the diag example in the pdk , how is it supposed to used? We are unable to find signal on any of the pins after trying a code . We don't know how to locate the processor pin definitions on the actual board layout given there are only 2-3 ports.
b) Once we are done with PWM, we want to sync it with an incoming EtherCAT Master signal. Operation we aim for is simple: similar to the demo example : Moment the slave receives the signal, the LED blinks and the motor connected to PWM rotates. Any simple guidance in a simple language would be much appreciated.
Attaching some codes which we tried. Corrections are welcome.
Regards,
Keyshav(Please visit the site to view this file)(Please visit the site to view this file).