LPC4078 SSP2

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LPC4078 SSP2

跳至解决方案
3,791 次查看
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 项奖励
回复
1 解答
3,557 次查看
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 项奖励
回复
5 回复数
3,557 次查看
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 项奖励
回复
3,557 次查看
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 项奖励
回复
3,557 次查看
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 项奖励
回复
3,558 次查看
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 项奖励
回复
3,557 次查看
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 项奖励
回复