Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years 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:
1 Answer
10 years 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>>
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} };