Author Topic: [Kinetis KL03] Custom pin assignments  (Read 2816 times)

Offline Raffaele

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
[Kinetis KL03] Custom pin assignments
« on: November 26, 2018, 07:52:36 PM »
Hi all,

on page 48 of the Kinetis KL03 datasheet https://www.nxp.com/docs/en/data-sheet/KL03P24M48SF0.pdf   the signals available on each pin are reported.

My question is: can I change this assignments?
Let's say I want to assign a timer TPM0_CH0 to PTB4 as ALT2 function. Now, ALT2 function is already assigned to PTB4 and it is an I2C0_SDA. Or I could also assign TPM0_CH0 as ALT4 since it is empty.

I know how to use the _CONFIG_PERIPHERAL to select the function that I want on a pre-assigned pin, but I don't know IF/HOW to reassign functions to a pin.
If this is possible, which function/registers do I need to change? And in which file are they?

Thank you
« Last Edit: November 26, 2018, 08:05:50 PM by Raffaele »

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3234
    • View Profile
    • uTasker
Re: [Kinetis KL03] Custom pin assignments
« Reply #1 on: November 26, 2018, 08:11:23 PM »
Raphael

The pin multiplexing details as given by the user's manual/data sheet are those that are present in the hardware.
One of these can be selected (as you know) but other combinations are not possible sine the chip don't physically support them.

Regards

Mark