AnsweredAssumed Answered

LPCXpresso LPC54618 mcu SPI

Question asked by S S on May 31, 2018
Latest reply on Jun 1, 2018 by Victor Jimenez

I have imported "Spi_interrupt_b2b_transfer_master" example from LPCxpresso sdk 2.3.1 example.

It was for SPI9 so I changed it to SPI1 as per my need. Even changed the pin in pinmux.c file as below:

 

const uint32_t port1_pin9_config = (/* Pin is configured as FC9_SCK */
IOCON_PIO_FUNC1 |
/* Selects pull-up function */
IOCON_PIO_MODE_PULLUP |
/* Input function is not inverted */
IOCON_PIO_INV_DI |
/* Enables digital function */
IOCON_PIO_DIGITAL_EN |
/* Input filter disabled */
IOCON_PIO_INPFILT_OFF |
/* Standard mode, output slew rate control is enabled */
IOCON_PIO_SLEW_STANDARD |
/* Open drain is disabled */
IOCON_PIO_OPENDRAIN_DI);
/* PORT3 PIN20 (coords: N2) is configured as FC9_SCK */
IOCON_PinMuxSet(IOCON, 1U, 9U, port1_pin9_config);

const uint32_t port2_pin3_config = (/* Pin is configured as FC9_RXD_SDA_MOSI */
IOCON_PIO_FUNC1 |
/* Selects pull-up function */
IOCON_PIO_MODE_PULLUP |
/* Input function is not inverted */
IOCON_PIO_INV_DI |
/* Enables digital function */
IOCON_PIO_DIGITAL_EN |
/* Input filter disabled */
IOCON_PIO_INPFILT_OFF |
/* Open drain is disabled */
IOCON_PIO_OPENDRAIN_DI);
/* PORT3 PIN21 (coords: P5) is configured as FC9_RXD_SDA_MOSI */
IOCON_PinMuxSet(IOCON, 2U, 3U, port2_pin3_config);

const uint32_t port2_pin4_config = (/* Pin is configured as FC9_TXD_SCL_MISO */
IOCON_PIO_FUNC1 |
/* Selects pull-up function */
IOCON_PIO_MODE_PULLUP |
/* Input function is not inverted */
IOCON_PIO_INV_DI |
/* Enables digital function */
IOCON_PIO_DIGITAL_EN |
/* Input filter disabled */
IOCON_PIO_INPFILT_OFF |
/* Open drain is disabled */
IOCON_PIO_OPENDRAIN_DI);
/* PORT3 PIN22 (coords: N5) is configured as FC9_TXD_SCL_MISO */
IOCON_PinMuxSet(IOCON, 2U, 4U, port2_pin4_config);

const uint32_t port2_pin5_config = (/* Pin is configured as FC9_CTS_SDA_SSEL0 */
IOCON_PIO_FUNC1 |
/* Selects pull-up function */
IOCON_PIO_MODE_PULLUP |
/* Input function is not inverted */
IOCON_PIO_INV_DI |
/* Enables digital function */
IOCON_PIO_DIGITAL_EN |
/* Input filter disabled */
IOCON_PIO_INPFILT_OFF |
/* Standard mode, output slew rate control is enabled */
IOCON_PIO_SLEW_STANDARD |
/* Open drain is disabled */
IOCON_PIO_OPENDRAIN_DI);
/* PORT3 PIN30 (coords: K13) is configured as FC9_CTS_SDA_SSEL0 */
IOCON_PinMuxSet(IOCON, 2U, 5U, port2_pin5_config);

 

But I am not getting any clock in SPI CLK pin.

 

Kindly guide.

Outcomes