Reply by Jason Williams January 10, 20082008-01-10
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... [mailto:c...] On Behalf Of
jdbwillia
Sent: Tuesday, January 08, 2008 5:38 PM
To: c...
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?
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 Industrys First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467

Reply by jdbwillia January 9, 20082008-01-09
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?
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 Industrys First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467