Hi,
I have a LPC43s67 espresso borad before, and I set the SSP0 works,
now, I want to change the SSP function into a new board LPC4330 xplorer.
I use the SSP1 from the onboard pins (from pin number 5~8) with the code
Chip_SCU_PinMuxSet(0x1, 5, (SCU_PINIO_FAST | SCU_MODE_FUNC5)); /* P1.5 => SSEL1 */
Chip_SCU_PinMuxSet(0xF, 4, (SCU_PINIO_FAST | SCU_MODE_FUNC0)); /* PF.4 => SCK1 */
Chip_SCU_PinMuxSet(0x1, 4, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_FUNC5)); /* P1.4 => MOSI1 */
Chip_SCU_PinMuxSet(0x1, 3, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_FUNC5)); /* P1.3 => MISO1 */
now, it not works, and I detect a large noise in the SCK and SSEL pin,
dose it have any idea about this?
Thanks,
ChuYuan
oh, this is my fault, I just use the lpc43s67 code to do that, but the SCLK1 pin set is different between 4330 and 4367,
I adjust the code for sclk1 to:
Chip_SCU_ClockPinMuxSet(0, (SCU_PINIO_FAST | SCU_MODE_FUNC6));
and it works,
Thanks,
ChuYuan
the noise signal in SCK1 about 2.4MHz with pvp 2.4v, I think it will let SSP work abnormal