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
Solved! Go to Solution.
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
Hi Alberto Ferrari,
Did you enable the SSP2 interface power/clock in register PCONP register?
From the user manual, you can get:
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!
-----------------------------------------------------------------------------------------------------------------------
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
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!
-----------------------------------------------------------------------------------------------------------------------
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
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!
-----------------------------------------------------------------------------------------------------------------------