SPRACQ1 May 2020 TMS320F28374D , TMS320F28374S , TMS320F28375D , TMS320F28375S , TMS320F28376D , TMS320F28376S , TMS320F28377D , TMS320F28377S , TMS320F28379D , TMS320F28379S , TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
The eCAP module on F2838x is "Type 2", which has some additional features compared to those on the F2837x devices ("Type 0"). F2838x also have HRCAP features available on some of eCAP input. Sync scheme for eCAP also has been changed on F2838x (same as ePWM Sync)
Table 13 provide the list of changes associated with eCAP module between F2837x and F2838x.
Feature | F2838x | F2837x |
---|---|---|
Type | Type 2 | Type 0 |
Number of eCAP Inputs | 7 | 6 |
Inputs channels with high-resolution capability (HRCAP) | Yes (2, eCAP6 and eCAP7) | No |
Event filter reset bit | Yes (ECCTL2.CTRFILTRESET) | No |
Modulo counter (4 bit sequencer) status bits | Yes (ECCTL2.MODCNTRSTS) | No |
DMA Event generation | Yes (ECCTL2.DMAEVTSEL) | No |
EALLOW protection for registers | Yes | No |
Input select for eCAP | Input for each eCAP module can be selected out of 128 input source including 16 outputs of INPUT XBAR. Input selection is done by ECCCTLx.INPUTSEL | Fixed input from INPUT XBAR for each eCAP module |
SYNC Scheme | Generic Any-To-Any Scheme | Daisy Chain |
Configuration register for SYNC Select | ECAPSYNCINSELECT | SYNCSELECT |
Even though there are some enhancements to the existing feature of the eCAP module, like different input selection logic and EALLOW protection for configuration register, care has to be taken to avoid breaking the compatibility with F2837x code.
The Following implementation has been done to avoid this:
The new SYNC scheme breaks the code compatibility with F2837x. Therefore, you need to modify the respective code while migrating between the F2837x and F2838x devices. For more details on the eCAP module and new SYNC scheme, see the TMS320F2838x Microcontrollers Technical Reference Manual.