Configuring Timers in Simulink Embedded Coder Support Package for Texas Instruments C2000 Processors
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Ganesh Thambhahalli Satyen
el 5 de Sept. de 2023
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.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!