1st I tried I as shown in example by creating my own example I can able to read the frequency of individual channel
Refer the below code
My input frequency is 500 hz and I can able to read the 500 hz in this single channel but when I configured for multiple channel iam getting errors please below page
uint32_t frequency;
void clock_pins_init(void)
{
/* Initialize clock module */
CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT, g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);
CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);
/* Initialize pins */
PINS_DRV_Init(NUM_OF_CONFIGURED_PINS0, g_pin_mux_InitConfigArr0);
ic_pal();
}
void ic_pal(void)
{
IC_Init(&ic_pal_1_instanceConfig, &ic_pal_1_InitConfig);
frequency = FTM_DRV_GetFrequency(ic_pal_1_instanceConfig.instIdx);
}
int main(void)
{
/* Write your code here */
clock_pins_init();
for(;;)
{
/* Get the latest value */
inputCaptureMeas = IC_GetMeasurement(&ic_pal_1_instanceConfig, 0);
/* Calculate the signal frequency using recorded data*/
inputCaptureMeas = frequency / (inputCaptureMeas);
}
}
/* END main */
/*!
** @}
*/

@rob

After getting single channel output I configured second channel I got below error
- Measure period between two consecutive rising edges
- Measure period between two consecutive falling edges
I tried in both option so iam getting now as below error
Error is odd channel is not supported by odd channels

After I got this I skipped only to read even channels with below configuration I am not able to read still second channel frequency

include "sdk_project_config.h"
volatile uint16_t inputCaptureMeas = 0,inputCaptureMeas1 = 0U,inputCaptureMeas2 = 0U;
uint32_t frequency;
void clock_pins_init(void)
{
/* Initialize clock module */
CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT, g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);
CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);
/* Initialize pins */
PINS_DRV_Init(NUM_OF_CONFIGURED_PINS0, g_pin_mux_InitConfigArr0);
ic_pal();
}
void ic_pal(void)
{
IC_Init(&ic_pal_1_instanceConfig, &ic_pal_1_InitConfig);
frequency = FTM_DRV_GetFrequency(ic_pal_1_instanceConfig.instIdx);
}
int main(void)
{
/* Write your code here */
clock_pins_init();
for(;;)
{
/* Get the latest value */
inputCaptureMeas = IC_GetMeasurement(&ic_pal_1_instanceConfig, 0);
/* Calculate the signal frequency using recorded data*/
inputCaptureMeas = frequency / (inputCaptureMeas);
inputCaptureMeas1 = IC_GetMeasurement(&ic_pal_1_instanceConfig, 2);
/* Calculate the signal frequency using recorded data*/
inputCaptureMeas1 = frequency / (inputCaptureMeas1);
}
}
/* END main */
/*!
** @}
*/
I am not getting any channel2 output

Can I get few more tips how can I achieve reading of multiple channel frequency
@Robin_Shen