9 years, 3 months ago.

FRDM KL25Z Pins

Hello,

We are working on the FRDM KL25Z board with our project group and we can't figure out the use of the PTA, PTB, PTC, PTD, PTE pins on the board. We saw several informations on the datasheet but it didn't help. Can someone tell us what do we use thoses for ? Because on the board picture we saw that some are I2C pins others are PWM pins, but we can't understand the ones that are without specification like PTC17 or PTD7

Thanks for the help !

2 Answers

9 years, 3 months ago.

You can get the Reference Manual (KL25P80M48SF0RM)
http://cache.freescale.com/files/32bit/doc/ref_manual/KL25P80M48SF0RM.pdf

Refer to Chapter 10 for Signal Multiplexing and Signal Descriptions

moto

Thanks for the link, it's very helpful, we saw kind of the same pins list in the datasheet and from what we understood the pins are already set on the default mode if we want to use them but if we want to use another mode for the pins we have to select it from the differents ATL modes ? Are there any functions to initialize the pin's transmission mode or do we have to call the pin itself and just use it ? Thanks again !!

posted by David Provoost 31 Jan 2015
9 years, 3 months ago.

Hi, David

1. I assume that you have read the following: http://developer.mbed.org/teams/Freescale/wiki/frdm-kl25z-pinnames

2. I also assume,that you are familiar with KL25P80M48SF0RM.pdf, or the Reference Manual.

3. Pins can have multiple functions, everything depend on current needs.

For instance:

  • PTB0 is digital I/O,
  • or A0 analog input,
  • or PWM

but only one at a time, properly declared in your program.

Those pins having only one marking surely can have that function only. Ex. PTD7 can be only digital I/O.

Hope that this helps.

Regards,

Thanks a lot Mr Gyozo Nemes,

How can we select the mode of a pin ? Does the mode of the pin is linked to the "ALT(x)" mode of the pinout list?

posted by David Provoost 31 Jan 2015

If we were using standard development tools, we had to set port mux registers, but in this mbed world, you can say
DigitalOut(PTB0)
or
AnalogIn(PTB0)
Then mbed library will take care of the rest. So IMHO, all you need to know is what function you'd like to use with specific pin, then define that function pin with the pin name of that pin.
Meantime, if you really want to, you can specify the register value though.

moto

posted by Motoo Tanaka 31 Jan 2015

Alright Thank you very much Moto, the examples you provided helped us a lot in addition to your description We will build on that to continue our project !

Thanks.

posted by David Provoost 31 Jan 2015