9 years, 6 months ago.

Which pins are used for i2c ?

Hello , I would like to know what are the pins that can be used for platform i2c in kl25z

Hola, quisiera saber que pines puedo usar para comunicacion i2c en la plataforma kl25z

2 Answers

9 years, 6 months ago.

According to the following PTE0 and PTE1 https://developer.mbed.org/handbook/mbed-FRDM-KL25Z

9 years, 6 months ago.

Here are all I2C pin options:

/************I2C***************/
const PinMap PinMap_I2C_SDA[] = {
    {PTE25, I2C_0, 5},
    {PTC9,  I2C_0, 2},
    {PTE0,  I2C_1, 6},
    {PTB1,  I2C_0, 2},
    {PTB3,  I2C_0, 2},
    {PTC11, I2C_1, 2},
    {PTC2,  I2C_1, 2},
    {PTA4,  I2C_1, 2},
    {NC  ,  NC   , 0}
};
 
const PinMap PinMap_I2C_SCL[] = {
    {PTE24, I2C_0, 5},
    {PTC8,  I2C_0, 2},
    {PTE1,  I2C_1, 6},
    {PTB0,  I2C_0, 2},
    {PTB2,  I2C_0, 2},
    {PTC10, I2C_1, 2},
    {PTC1,  I2C_1, 2},
    {NC  ,  NC,    0}
};

From: https://developer.mbed.org/users/mbed_official/code/mbed-src/file/6cdb58309977/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/PeripheralPins.c