9 years, 11 months ago.

Is it change the pin for UART1?

Hi

a month ago, I saw pin description of FRDM-KL25Z in mbed web page. in this description, UART1 pins are PTD3(tx) and PTD2(rx). ( mbed library source code is also same. )

But currently, UART1 pins are changed to PTE1 and PTE0 in mbed web page. I was wondering how that was possible without modified hardware.

Question relating to:

The FRDM-KL25Z is an ultra-low-cost development platform for Kinetis L Series KL1x (KL14/15) and KL2x (KL24/25) MCUs built on ARM® Cortex™-M0+ processor. Features include easy access to MCU I/O, battery-ready, …

1 Answer

9 years, 11 months ago.

Just checked the list, PTD2 and PTD3 are UART 2, maybe they made a mistake before on the picture. Below is the full list

<<code>> const PinMap PinMap_UART_TX[] = { {PTC4, UART_1, 3}, {PTA2, UART_0, 2}, {PTD5, UART_2, 3}, {PTD3, UART_2, 3}, {PTD7, UART_0, 3}, {PTE20, UART_0, 4}, {PTE22, UART_2, 4}, {PTE0, UART_1, 3}, {NC , NC , 0} };

const PinMap PinMap_UART_RX[] = { {PTC3, UART_1, 3}, {PTA1, UART_0, 2}, {PTD4, UART_2, 3}, {PTD2, UART_2, 3}, {PTD6, UART_0, 3}, {PTE23, UART_2, 4}, {PTE21, UART_0, 4}, {PTE1, UART_1, 3}, {NC , NC , 0} }; <</code>>

Accepted Answer

It is refusing the edit, so again:

const PinMap PinMap_UART_TX[] = {
    {PTC4,  UART_1, 3},
    {PTA2,  UART_0, 2},
    {PTD5,  UART_2, 3},
    {PTD3,  UART_2, 3},
    {PTD7,  UART_0, 3},
    {PTE20, UART_0, 4},
    {PTE22, UART_2, 4},
    {PTE0,  UART_1, 3},
    {NC  ,  NC    , 0}
};
 
const PinMap PinMap_UART_RX[] = {
    {PTC3,  UART_1, 3},
    {PTA1,  UART_0, 2},
    {PTD4,  UART_2, 3},
    {PTD2,  UART_2, 3},
    {PTD6,  UART_0, 3},
    {PTE23, UART_2, 4},
    {PTE21, UART_0, 4},
    {PTE1,  UART_1, 3},
    {NC  ,  NC    , 0}
};
posted by Erik - 16 May 2014

Thank you Erik. I understand this structure by your favor. Your answer is helpful for me.

posted by DongEun Koak 18 May 2014