Because of my English is not enough, i couldn't explain my question previous time. I tried to make my sentences clear.
I am working on reading position information from the quadrature encoder. I have twr-kv46f150m, twr-elev and twr-mc-lv3ph boards and try to run my codes on this setup. I am using MCUXpresso as IDE.
When is check the schematics of the PCB's i see that quad. encoder signals are tied to ch4 and ch6 of FTM3.
My problem is that FTM3_CNT is not increasing when I turn the shaft of the BLDC.
This is the code I have used:
BOARD_InitBootPins(); //PORT C ADJUSTED
BOARD_InitBootClocks(); //CLOCK SETTİNGS
BOARD_InitDebugConsole(); /* Init FSL debug console. */
FTM_GetDefaultConfig(&Ftm); //RESET VALUE
ftm_phase.enablePhaseFilter = false;
// ftm_phase.phaseFilterVal = 1;
ftm_phase.phasePolarity = kFTM_QuadPhaseNormal;
FTM_SetQuadDecoderModuloValue(FTM3, 0U, 1000U);
FTM_SetupQuadDecode(FTM3, &ftm_phase, &ftm_phase, kFTM_QuadPhaseEncode);