In the c2000 f28335, Base rate trigger use ? when i use this as timer 0, the model runs otherwise it says eror hgenerating binary output

3 Kommentare

Venkatesh Chilapur
Venkatesh Chilapur am 9 Okt. 2019
Hi,
Let me know if you can provide the model.
Regards,
Venkatesh C
Mohammad Tauquir Iqbal
Mohammad Tauquir Iqbal am 9 Okt. 2019
i cannot see the realtime data. moreover i cannot see anything in host communication used by Matlab video and getting an error when i am using closed-loop in the external mode.
Mohammad Tauquir Iqbal
Mohammad Tauquir Iqbal am 9 Okt. 2019
the host communication

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Nivedita
Nivedita am 23 Jul. 2026
Bearbeitet: Nivedita am 23 Jul. 2026

0 Stimmen

The Base rate trigger selects the interrupt source that runs the model's base-rate scheduler on the F28335.
For a normal time-based model, Timer 0 is usually the right choice. It uses a CPU timer interrupt to call the generated model step function periodically and does not depend on another peripheral interrupt.
Use another trigger source, such as ADC or ePWM, only if the model must run synchronously with that peripheral event. In that case, the selected peripheral must be configured to generate the interrupt used as the base-rate source.
If the model runs with the Timer 0 but fails during binary generation with another trigger source, check the following:
  1. Confirm the selected peripheral, such as ADC or ePWM, is actually used and configured in the target model.
  2. Confirm that the peripheral is configured to generate the interrupt selected as the Base rate trigger.
  3. Make sure the model base sample time matches the interrupt/event rate.
  4. Check that the same interrupt source is not being used or configured inconsistently by another block.
  5. If host communication is used, make sure the target SCI settings match the host communication model settings.
So, unless the applications specifically needs ADC/ePWM-synchronous execution, keep the Base rate trigger set to Timer 0.
Thanks,
Nivedita.

Bearbeitet:

am 23 Jul. 2026

Community Treasure Hunt

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

Start Hunting!

Translated by