Possible error in pin assignment for LPC4370

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

Possible error in pin assignment for LPC4370

518 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JohnR on Tue Mar 18 09:32:42 MST 2014
Hi,

I think there might some errors in board.c  for the lpc_board_nxp_lpclink2_4370 package

In Board_SSP_Init(LPC_SSP_T *pSSP)

[codeelse if (pSSP == LPC_SSP1) {
/* Set up clock and muxing for SSP1 interface */
/* P1.19 connected to SCL/SCLKSCU_MODE_FUNC1=SSP1 SCK1 */
Chip_SCU_PinMuxSet(0xF, 4, (SCU_PINIO_FAST | SCU_MODE_FUNC1)); // was (0x1, 19,
///* P1.20 connected to nCSSCU_MODE_FUNC1=SSP1 SSEL1 */
//Chip_SCU_PinMuxSet(0x1, 20, (SCU_PINIO_FAST | SCU_MODE_FUNC1));
/* P0.0 connected to SOSCU_MODE_FUNC1=SSP1 MISO1 */
Chip_SCU_PinMuxSet(0x1, 3, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_FUNC1)); // was 0x0, 0,
/* P0.1 connected to nSISCU_MODE_FUNC2=SSP1 MOSI1 */
Chip_SCU_PinMuxSet(0x1, 4, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_FUNC1)); // was 0x0, 1
}
][/code]

I think the original values maybe are for the Hitex boards not the Link 2 card?

The chip select is set to a regular output configuration.

JohnR.


Labels (1)
0 Kudos
Reply
1 Reply

485 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sundarapandian on Thu Mar 20 15:46:41 MST 2014
Thank you for pointing it out. To use SSP1 via Serial expansion connector J3, please use the following Pin Mux configuration code

if (pSSP == LPC_SSP1) {
/* SSEL: P1.20: J3 PIN-6 [Serial Expansion Interface] */
Chip_SCU_PinMuxSet(0x1, 20, (SCU_PINIO_FAST | SCU_MODE_FUNC1));
/* MISO: P1.3: J3 PIN-5 [Serial Expansion Interface] */
Chip_SCU_PinMuxSet(0x1, 3, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_FUNC5));
/* MOSI: P1.4: J3 PIN-4 [Serial Expansion Interface] */
Chip_SCU_PinMuxSet(0x1, 4, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_FUNC5));
/* SCLK: PF.4: J3 PIN-3 [Serial Expansion Interface] */
Chip_SCU_PinMuxSet(0xF, 4, (SCU_PINIO_FAST | SCU_MODE_FUNC0));
}


This will be a part of the next release.
0 Kudos
Reply