use of Base rate trigger
Show older comments
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 Comments
Venkatesh Chilapur
on 9 Oct 2019
Hi,
Let me know if you can provide the model.
Regards,
Venkatesh C
Mohammad Tauquir Iqbal
on 9 Oct 2019
Mohammad Tauquir Iqbal
on 9 Oct 2019
Answers (1)
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:
- Confirm the selected peripheral, such as ADC or ePWM, is actually used and configured in the target model.
- Confirm that the peripheral is configured to generate the interrupt selected as the Base rate trigger.
- Make sure the model base sample time matches the interrupt/event rate.
- Check that the same interrupt source is not being used or configured inconsistently by another block.
- 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.
Categories
Find more on Texas Instruments C2000 Processors in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!