Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE
Hello,
I am using a TMS320F28388D board from Texas Instruments. I develop the software with MATLAB Simulink. Here is the following software environment:
MATLAB 2025b
TI C2000 Code Generation Tools 22.6.0
TI ARM Code Generation Tools 20.2.7
TI Code Composer Studio 20.0.1.00004
TI C2000Ware 5_02_00_00
ti-cgt-c2000_22.6.0.LTS
ti-cgt-arm_20.2.7.LTS
The CPU clock is 200 MHz.
I use this board to detect rising edges of a squared signal thanks to an eCAP module. The signal frequency is 1.0152 MHz. I use the 6th eCAP module wich is set to monitor input 1. I configure the input X-BAR to route input 1 and the GPIO 37 where my 1.0152 MHz signal is plugged. In addition, the eCAP module works in continuous mode, captures only one event (a rising edge) and triggers an interrupt on capture event 1. This interrupt triggers a task. First, this task switches on a GPIO, then performs diverse operations and finally switches off the GPIO. This GPIO monitors the trigger time and the execution duration of the task. The model deployed on the CPU1 implements the eCAP module and the CPU2 model only makes a LED blink.
I monitor the GPIO with an oscilloscope and I notice that the task is not triggered regularly (see capture in attachment, where the blue signal is the signal at 1.0152 MHz monitored by the eCAP module and the green one is the GPIO, please do not take care of the other signals).
So I am wondering if the eCAP module can capture such fast signals?
I tried to use the hrCAP modules as well but I noticed the same behavior. I also tried to permute the CPU1 and the CPU2 models (to execute the CPU1 model on the CPU2 and so on) but I also noticed the same behavior.
I also contacted Mathworks first and they suggest me to contact your team.
If you need more information, please do not hesitate to ask me.
Thanks
Regards
Audrey L.
Control engineer at THALES