TI C2000 : In Simulink, how to set ePWM output to a GPIO pin ?
17 次查看(过去 30 天)
显示 更早的评论
Hi Sir,
I am using TI C2000 processor(TMS320F28335), and had just placed an ePWM module into the Simulink and set some parameters.
(I guess C2833x is for TMS320F28335, am I correct ?)
now I want to set the ePWM output to a GPIO pin, but under "Hardware setting" -> "Hardware Implementation" -> "Target hardware resource"->"ePWM", there is no relevant settings for GPIO
On the other hand, refer to : www.mathworks.com/.../sub-modules-of-epwm-type-1-4.html
GPIO mapping for ePWM output can be set in the same window(the green mark in the below picture), I guess it's due to different C2000 part (?)
I am new to both C2000 processor and Simulink, sorry for such a simple question, very appreciate for your help, thanks.
0 个评论
回答(1 个)
Abhinav Aravindan
2024-9-17
I understand that you want to configure the GPIO pins for the ePWM Type 1-4 block. To answer your first question, yes, C2833x is the correct library for the TI Delfino F2833x processor.
Regarding the GPIO pin configuration, I assume you are using a MATLAB release prior to R2024a. From MATLAB R2024a, the GPIO Pin Assignments for the ePWM module can be viewed in the Configuration Parameters.
However, it appears that the GPIO pin mapping to each PWM pin is fixed for TI Delfino F2833x and not configurable currently.
Please find the related documentation below for your reference.
0 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!