Configuring Timers in Simulink Embedded Coder Support Package for Texas Instruments C2000 Processors
16 次查看(过去 30 天)
显示 更早的评论
Hello,
I am using TMS320F28379D (in OP8666 by OPAL RT) and Code Composer Studio (CCS) and I run Simulink models in real time. I want to use the available Embedded Coder Support Package for Texas Instruments C2000 Processors that is integrated in Simulink, to use the Timers of the processor (for example to configure the Timers as in the interrupt_ex3_sw_prioritization code that I found in the C2000Ware_4_XX_XX_XX\driverlib\f2837xd\examples\cpu1\interrupt). I am not sure which block I should use in Simulink to configure the period (PRD register) of the Timers (TIM0, TIM1, TIM2 registers) and use them to generate the hardware interrupts at the time intervals that I want. Maybe the Software Interrupt or the C28x Hardware Interrupt in combination?. Any advice on this will be very helpful!
Thank you in advance
0 个评论
回答(1 个)
Ganesh Thambhahalli Satyen
2023-9-5
Hi Nena,
I understand that you want to configure the Timers present on the board to generate hardware interrupts at the desired time intervals.
The following MATLAB Answer gives insights onto how to configure General Purpose Timers on the same F28379D:
More details about the Asynchronous Scheduling example referenced in the above answer can be found in the following MathWorks documentation link:
I hope the above information helps resolve your query.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!