LPC4078 SSP2

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
3,801件の閲覧回数
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,567件の閲覧回数
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,567件の閲覧回数
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,567件の閲覧回数
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,567件の閲覧回数
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,568件の閲覧回数
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,567件の閲覧回数
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 件の賞賛
返信