The following parameters apply for the
IEP CMP setup:
- 50-kHz EPWM cycle time
- 50-kHz FOC loop update (In EnDAT
ISR)
- SYNC_OUT0 from EtherCAT Client
(ICSSG1) to Sync EPWM clock
- PRU_ICSSG0 IEP0 period is set to
6000 (300000000/50000)
- It is also the EPWM
period
- PRU_ICSSG IEP0 based
address is 0x3002E000
- Setup CMP4 to trigger Sigma Delta
encoded current feedback data sampling:
- One CMP4 in per IEP or
EPWM period: 10us (defined in gTestSdfmPrms.firstSampTrigTime)
- Set in initPruSddf
- Set up CMP3 and CMP6 to trigger
EnDAT 2.2 encoded position feedback data sampling:
- One CMP3 and CMP6 in per
IEP or EPWM period: 3000 ns (defined in endat_periodic_interface.cmp3
and endat_periodic_interface.cmp6)
- Set in
endat_config_periodic_mode