Support of SPI in FlexComm5 in LPC55S06

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Support of SPI in FlexComm5 in LPC55S06

374 Views
dhruvinrajpura
Contributor II

In the header file of LPC55S06.h I seen below thing

#define SPI_IRQS { FLEXCOMM0_IRQn, FLEXCOMM1_IRQn, FLEXCOMM3_IRQn, FLEXCOMM4_IRQn, FLEXCOMM6_IRQn, FLEXCOMM7_IRQn, FLEXCOMM8_IRQn }

 

Here I am not able to see support for SPI in Flexcomm 5 but in data sheet it is mentioned that we can use flexcomm5 as SPI, when I tried to use flexcomm5 as a SPI in MCUXpresso it is also saying we can't use this as a SPI so why data sheet is telling that and if it is true what is the way to use flexcomm5 as SPI in LPC55S06?

Tags (2)
0 Kudos
Reply
1 Reply

361 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

For the LPC55S06, as you know that the SPI requires 4 signals, the uart requires only 2 signals. Because of pin limited, the FC2 and FC5 does not support SPI, but they also support uart, I2C and I2S functions.

It is wrong to define:

#define SPI_IRQS { FLEXCOMM0_IRQn, FLEXCOMM1_IRQn, FLEXCOMM3_IRQn, FLEXCOMM4_IRQn, FLEXCOMM6_IRQn, FLEXCOMM7_IRQn, FLEXCOMM8_IRQn }

Because the FC2 and FC5 can not be configured as spi for LPC55S06

 

xiangjun_rong_0-1703756804211.png

Hope it can help you

BR

XiangJun Rong

 

0 Kudos
Reply