TI C2000 : In Simulink, how to set ePWM output to a GPIO pin ?

15 views (last 30 days)
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
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.

Answers (1)

Abhinav Aravindan
Abhinav Aravindan on 17 Sep 2024
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.

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!