LPC4078 SSP2

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

LPC4078 SSP2

Jump to solution
1,014 Views
albertoferrari
Contributor II

Hi everybody,

I'm using lpc4078 with LPCXpresso v8.1.4 (build 606).

I'm trying to configure SSP2 but when I write the Control Register 1 of SSP2 , LPCXpresso shows a fault.

LPCXpresso also doesn't show the SSP2 registers on the debug monitor.
Please note that with SSP0 and SSP1 everything works fine.

Do you have some hints about this issue?

Thanks in advance.

Alberto Ferrari

0 Kudos
1 Solution
780 Views
albertoferrari
Contributor II

Hi Kerry Zhou,

I've double checked and it was my fault.

You were right.

I tryed to access to SSP2_CR1->SSE with the SSP not powered (PCONP->PCSSP2=0).

Thanks for your help.

Have a great day.

Alberto Ferrari

View solution in original post

0 Kudos
5 Replies
780 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Alberto Ferrari,

   Did you enable the SSP2 interface  power/clock in register PCONP register?

From the user manual, you can get:

pastedImage_1.png

So, please check PCONP bit20, did you enable the SSP2 power and clock?


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
780 Views
albertoferrari
Contributor II

Hi Kerry Zhou,

thanks for the hint.

The problem seems to be related to a SSP2 CR1 access before that the SPI2 pins were configurated, even if this works for SSP0 and SSP1 ...
Anyway, now the SSP2 works fine.
Thanks again for your help.

Best regards

Alberto Ferrari

0 Kudos
780 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Alberto Ferrari,

    Thank you for your updated information.

    If your problem is solved, please mark the correct answer to close this question.


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
781 Views
albertoferrari
Contributor II

Hi Kerry Zhou,

I've double checked and it was my fault.

You were right.

I tryed to access to SSP2_CR1->SSE with the SSP not powered (PCONP->PCSSP2=0).

Thanks for your help.

Have a great day.

Alberto Ferrari

0 Kudos
780 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Alberto Ferrari,

  Thank you for your information update.

  Now, very clear result!

  If your problem is solved, please help to mark the correct answer to close this question.Thank you!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos