New to the pin tool and was trying to configure a KV46 MCU's multiplexed ADC inputs (ADCA Channels 6 & 7) when I go to enable any one after the first , (ADCA_ch6a, b, c etc..) the check boxes for those muxed channels turn from green to being highlighted in red. When I hover over the red boxes it displays that the routing and the SIM_ADCOPT register is multiply defined, and warn about the Channel select for the ADC channel 6 and/or 7. I guess I was wondering if I can ignore this since I will be manually controlling the mux registers in software?
Regards,
Hi Brian,
you can ignore (if you want) warnings, but not errors in red. As long as there are errors, code is not generated/updated, so you have to resolve the errors.
You indicate that you are changing the muxing during runtime
For switching muxing at runtime you can create functions. For this you add a 'tab' in the routed pins view (you can give each tab its own name):
That way you can have both sub channels be configured, as they won't be active at the same time:
And you have two functions (named after the tabs) you can call for the muxing from your application:
I hope this helps,
Erich
Hello Erich,
I am having the same problems has Brian. I tried your solution, however it does not work as my MCUXpresso configuration tool does not offer me the option of adding "tabs" to define sub-channels. Is there another way to do that? I am using MCUXpresso Config Tool version 5.0. My MCU is an MKV46F256VLL.
Thank you,
Pierre Garon.
Hi guys,
in the latest version, tabs were replaced by functional groups, see tool bar.
For each functional group, one C-function will be generated.
Regards
Marek