Configuring Timers in Simulink Embedded Coder Support Package for Texas Instruments C2000 Processors
조회 수: 9 (최근 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!