cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC Creator & Designer Software

New Contributor

When using the AMuxSeq component in muxtype "single mode", the API does not generate a next function to handle the mux channels.

How to switch the channels otherwise?

0 Likes
Reply
1 Solution
Moderator
Moderator

Hi,

To see the implementation of the Amux next funciton in case of single ended mode, kindly check the cyfitter_cfg.c  generated sources. This is actually similar to differential configuration  where the functions AMuxSeq_1_CYAMUXSIDE_A_Next(), AMuxSeq_1_CYAMUXSIDE_B_Next() will defined inside the cyfitter_cfg.c file. Regardless of all these you can confirm this just by calling the funciton in the main.c file.

Best Regards,
Vasanth

View solution in original post

0 Likes
Reply
3 Replies
Moderator
Moderator

Hi,

Which device are you testing in ? When I tested at my end I could find the next function getting generated. Will you be able to share the configuration ?

Best Regards,
Vasanth R S

0 Likes
Reply
New Contributor

I'm working with a CY8C5868AXI, with PSoc Creator 4.2.0.641.

I can see from the code that the next function is explicitely disable when not using differential inputs:

#if (AMuxSeq_1_MUXTYPE == AMuxSeq_1_MUX_DIFF)

/*******************************************************************************

* Function Name: AMuxSeq_1_Next

********************************************************************************

.....

*******************************************************************************/

void AMuxSeq_1_Next(void)

{

    AMuxSeq_1_CYAMUXSIDE_A_Next();

    AMuxSeq_1_CYAMUXSIDE_B_Next();

}

0 Likes
Reply
Moderator
Moderator

Hi,

To see the implementation of the Amux next funciton in case of single ended mode, kindly check the cyfitter_cfg.c  generated sources. This is actually similar to differential configuration  where the functions AMuxSeq_1_CYAMUXSIDE_A_Next(), AMuxSeq_1_CYAMUXSIDE_B_Next() will defined inside the cyfitter_cfg.c file. Regardless of all these you can confirm this just by calling the funciton in the main.c file.

Best Regards,
Vasanth

View solution in original post

0 Likes
Reply