I am using MKS22FN256VLH12 in my application. Many pins not used in application.
I don't know exactly what to do with these pins. Can they float, do they have to go to GND or VDD.
In KS22 there is two CAN modules and only one module is using in application, what to do with unused CAN module pins.
I referred in the "Data sheet and Kinetis Ks22 Sub-Family Reference Manual " there is no correct answer for this.
Can someone give me a hint or help me with this?
Solved! Go to Solution.
This information is from the datasheet:
Unused GPIO pins must be left floating (no electrical connections) with the MUX field of the pin’s PORTx_PCRn register equal to 0:0:0. This disables the digital input path to the MCU.
This refer to chapter 12.6.1 Pin Control Register n (PORTx_PCRn) from your reference manual. On this register you select the alternative for the pin you want to use. f.e. CAN0_TX pin is assigned to PTA12 as Alternative 2 (ALT2) and by setting MUX pins as 0:0:0 this will be disabled.
Best Regards, Miguel.
This information is from the datasheet:
Unused GPIO pins must be left floating (no electrical connections) with the MUX field of the pin’s PORTx_PCRn register equal to 0:0:0. This disables the digital input path to the MCU.
This refer to chapter 12.6.1 Pin Control Register n (PORTx_PCRn) from your reference manual. On this register you select the alternative for the pin you want to use. f.e. CAN0_TX pin is assigned to PTA12 as Alternative 2 (ALT2) and by setting MUX pins as 0:0:0 this will be disabled.
Best Regards, Miguel.
I think you mean the MK22 and not a MKS22?
You can keep unused pins floating, see https://community.nxp.com/t5/Wireless-Connectivity-Knowledge/Configuration-for-Unused-Pins-GPIOs-on-...