Hi I am trying to configure the MTIOC4D as PWM with 1 kHz and 10% duty cycle but there is NO output at this pin. I am using RPDL library for this, my configuration is ch_create_param.data2 = PDL_MTU2_MODE_PWM1 | PDL_MTU2_SYNC_DISABLE; ch_create_param.data3 = PDL_MTU2_CLK_PCLK_DIV_64 | PDL_MTU2_CLEAR_TGRA; ch_create_param.data6 = PDL_MTU2_A_OC_HIGH_CM_INV | PDL_MTU2_B_OC_HIGH_CM_INV; ch_create_param.data7 = PDL_MTU2_C_OC_HIGH_CM_INV | PDL_MTU2_D_OC_HIGH_CM_INV; ch_create_param.data9 = 0; ch_create_param.data10 = period; // TGRA / ch_create_param.data12 = period; // TGRC / ch_create_param.data13 = DutyCycle; // TGRD / ch_create_param.func2 = PDL_NO_FUNC; // TGRB event func:No fun / ch_create_param.data19 = 5; please respond on this as earliest as possible.
↧