Sign in

username:

password:



Not a member?

Search c54x



Search tips

Subscribe to c54x



c54x by Keywords

5409 | 5416 | AD5 | ADC | BIOS | Boot | Booting | Bootloader | C540 | C5402 | C5409 | C5416 | CCS | Codec | DMA | Dmad | DSK | DSKPlus | Dsplib | EVM | FFT | FIR | Flash | GPIO | HPI | Initialization | Interrupt | JTAG | LOG_printf | MCBSP | RFFT | RTDX | Sampling | STLM | UART | VC540

Discussion Groups

Discussion Groups | TMS320C54x | XRDY bit not being set

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).

  

Post a new Thread

XRDY bit not being set - jdbwillia - Jan 9 7:28:50 2008



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


(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )

RE: XRDY bit not being set - Jason Williams - Jan 10 8:48:22 2008

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


(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )