AnsweredAssumed Answered

LPC1837 - SSP1 busy bit stuck

Question asked by Bosko Petkovski on Feb 27, 2017
Latest reply on Mar 2, 2017 by Kerry Zhou

I've written some code to make use of  the SSP module of lpc1837 for SPI communication and it initially worked just fine.

However, after some minor changes it stopped sending data out. I've tried debugging and discovered that the busy bit from SSP1 status register is stuck on 1.

 

Here are the steps I take:

CREG0 --> 0x2CF

CPSR --> 0x5A

CREG1 --> 0x06

 

After writing in the data register I read and print the status register in a while cycle and it always has the value 0x12 i.e. BSY & TNF bits are set.

 

Has anyone encountered a similar problem?

Outcomes