Related to tms processor

1 次查看(过去 30 天)
Tapan Kumar Nayak
Tapan Kumar Nayak 2021-2-13
回答: Hari 2024-9-2
I am trying to generate a switching pulse directly using GPIO . To generate switching pulse a carrier signal i have used which has a frequency of 9kHZ. Which is only possible at solver step size of 1micro second or less than that. But when i am taking the solver step size of 1e-6 then the processor is responding as the target is not connected ,but when i am taking the step size as 0.5e-6 the processor is running but the gate pulse generated is not proper because the carrier signal is not like the triangular carrier signal it is distorted. So how to solve this problem by changing the step size ..

回答(1 个)

Hari
Hari 2024-9-2
Hi Tapan Kumar Nayak,
I understand that you want to generate a switching pulse using GPIO with a carrier signal frequency of 9kHz, and you are encountering issues with the solver step size affecting the signal quality and processor connectivity.
I assume you are working within Simulink simulation environment targeting a TMS processor and that the correct functioning of your model depends on the simulation’s step size, which impacts the accuracy of the generated carrier signal and the connectivity with your processor.
You can consider the following to ways to deal with Step Size Adjustment:
  1. Solver Configuration: Ensure you are using a fixed-step solver that is capable of handling the high-frequency dynamics of your system. The step size influences both the simulation's accuracy and its computational load.
  2. Step Size Refinement: If a step size of (1e-6) seconds disconnects the processor and (0.5e-6) seconds distorts the signal, you might need to experiment with values in between, or even smaller, to find a balance between connectivity and signal integrity. It is a process of trial and improvement.
  3. Signal Generation Method: Review the method used to generate the triangular carrier signal. Ensure it is designed to produce accurate results at high frequencies and small step sizes. Sometimes, using a precomputed signal array rather than generating it on-the-fly can improve accuracy.
  4. Processor Load Management: Consider the computational load on the processor. High-frequency operations with small step sizes can overwhelm the processor. If possible, offload some computations or simplify the model.
  5. Alternative Approaches: If step size adjustments alone do not resolve the issue, consider alternative approaches for generating your switching pulse. This might include using a different signal generation technique or adjusting the model to reduce its real-time computational demands.
References:
Hope this helps!

类别

Help CenterFile Exchange 中查找有关 Get Started with DSP System Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by