I am Trying to create 8 synced PWM using IMXRT1062 on TEENSY4 board
I created master PWM to sync them to it using XBAR and EXT_SYNC
i could build the PWM easily but i couldn't send the the trigger from the master pwm to the others
i tested it between different modules but everytime i fail ,The slave PWM keep counting to the end of its 16 bit counter without receiving EXT_SYNC signal and then wrap again from zero
i even tried to send the trigger signal to external physical pin as a debugging but i could not see it on the scope
can any one help me what i messed
i am using ARDUINO IDE
I found the problem
The submodules in all register names are 0 indexd submodule 0,1,2,3
But in the table of xbar inputs for output trigger they are 1 indexed
So if you are working with submodule 0 and you want to assign its output trigger to xbar1 you should choose
FLEXPWM1_PWM1_OUT_TRIG0 or
FLEXPWM1_PWM1_OUT_TRIG1
Hi @Motafared,
I highly recommend you download MCUXpresso and try the pwm example codes we provide with the i.MX RT1060 SDK for more information on how to achieve this setup.