SSP1 for LPC433x-Xplorer board

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

SSP1 for LPC433x-Xplorer board

595 Views
chuyuanchiang
Contributor I

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

Labels (1)
0 Kudos
2 Replies

505 Views
chuyuanchiang
Contributor I

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

0 Kudos

505 Views
chuyuanchiang
Contributor I

the noise signal in SCK1 about 2.4MHz with pvp 2.4v, I think it will let SSP work abnormal 

0 Kudos