Technical discussions about the TI C54x DSPs (including the c5401, c5402, c5402a, c5404, c5407, c5409, c5409a, c5410, c5410a, c5416, c5420, c5421, c5441, c549, c5470 and c5471).
Hi everyone, I have a SPI port that behaves nicely the majority of the time. I can transmit and receive without any problem, but once in a blue moon my transmit routine will mysteriously hang waiting for the XRDY bit to be set. The c54 is the master and there is only one slave (an MSP430). I just don't see, if the c54 is the master, how the XRDY bit would ever not be set soon after I write to the DXR register. Is there something that can prevent the SPI port from transmitting?=20 The port is not in reset and the transmitter is enabled. All clocks are generated internally. The XEMPTY bit is set (which means, I think, that the last word I wrote to the DXR is still sitting in the XSR). What is it waiting on? Any ideas? Thanks, Jason Check Out Industry=92s First Single-Chip, Multi-Format, Real-Time HD Video = Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm= 6467 =20
Nevermind. This was an illusion created by the debugger environment. When stepping through the code, I wasn't giving the c54 enough time to shift the data out before rechecking the bit. Jason -----Original Message----- From: c...@yahoogroups.com [mailto:c...@yahoogroups.com] On Behalf Of jdbwillia Sent: Tuesday, January 08, 2008 5:38 PM To: c...@yahoogroups.com Subject: [c54x] XRDY bit not being set Hi everyone, I have a SPI port that behaves nicely the majority of the time. I can transmit and receive without any problem, but once in a blue moon my transmit routine will mysteriously hang waiting for the XRDY bit to be set. The c54 is the master and there is only one slave (an MSP430). I just don'= t see, if the c54 is the master, how the XRDY bit would ever not be set soon after I write to the DXR register. Is there something that can prevent the SPI port from transmitting?=20 The port is not in reset and the transmitter is enabled. All clocks are generated internally. The XEMPTY bit is set (which means, I think, that th= e last word I wrote to the DXR is still sitting in the XSR). What is it waiting on? Any ideas? Thanks, Jason Check Out Industry=92s First Single-Chip, Multi-Format, Real-Time HD Video = Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm= 6467 =20