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?