8 years, 9 months ago.

Serial TX,RX

I'm started to use FRDM-KL05z.

The figure on ARM mbed/Platforms page, titled "FRDM-KL05z arduino Headers", says D0 = TX (of uart) and D1 = RX. https://developer.mbed.org/platforms/FRDM-KL05Z/

Is it correnct ? I wonder it should be D0 = RX and D1 = TX. Or .. mama.. Could each of these pins be assigned both Tx and Rx ?

Question relating to:

The FRDM-KL05Z is an ultra-low-cost development platform enabled by the Kinetis L Series KL0x MCU family built on the ARM® Cortex™-M0+ processor. Features include easy access to MCU I/O, battery-ready, …

I found, in TARGET_KLXX/TARGET_KL05Z/PinNames.h, PTB1 is defined as USBTX = D1. So the figure on ARM mbed/platfoms page seems to be wrong.

posted by yoo uta 17 Feb 2016

1 Answer

8 years, 9 months ago.

Hi,

In the Reference Manual of KL05,
PTB1 can be assigned to UART0_TX (ALT2) and UART0_RX (ALT3)
PTB2 can be assigned to UART0_RX (ALT2) and UART0_TX (ALT3).

moto

Accepted Answer

Motoo, Thanks a lot. I suspected why that figure is different from the Arduino uno pin assignment, while that is titled "Arduino xx". Anyway, I shall understand D0 should be RX (and D1 should be TX), for the better compatibility. Thank you again.

posted by yoo uta 26 Jan 2016