lpcware

[SOLVED] LPC11U68 SPI problem

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by cstephant on Fri Mar 14 07:14:29 MST 2014
HI,

I'm using SSP1 port on a LPC11U68.
It's working correctly but I have to change the MISO pin from PIO1_21 to PIO0_22 which is normally possible ( -> UserManual says : PIO0_22 R/W 0x058 I/O configuration for pin PIO0_22/AD6/CT16B1_MAT1/MISO1 ).
I changed the pin config according to the user manual :
Chip_IOCON_PinMuxSet(LPC_IOCON, 1, 21, IOCON_FUNC0 | IOCON_MODE_INACT);
Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 22, IOCON_FUNC3 | IOCON_MODE_INACT);

UM :
2:0 FUNC Selects pin function. Values 0x4 to 0x7 are reserved. 000
0x0 PIO0_22.
0x1 AD6.
0x2 CT16B1_MAT1.
0x3 MISO1.

The RNE (Reciever FIFO Not Empty) flag in the SSP1 Status register is going up when I recieve a frame but there is no datas available in the Data Register.

Any idea of what I'm doing wrong with this pin configuration ?

Outcomes