Reply by Avik Juneja February 23, 20102010-02-23
Hi All,

I have been trying to implement UART using McBSP0 on a dskC6713. I am
using interrupts and have taken some hints from the McBSP-UART manual
(SPRA633B). Correct me if I am wrong. The way I am sending data out
through the DX0 pin is by writing into the DXR register when an
interrupt is invoked as a result of first DXR-XSR copy (This is done
manually by sending the first character or bit to the DXR). Since
subsequent interrupts are invoked automatically and corresponding IRQs
transfer data from a transmit buffer(implemented in software) to the
DXR register. Since these interrupts are driven automatically by each
transfer, I know that the data is being correctly written to DXR and
hence to XSR. I had also placed many breakpoints using CCS 3.1 to
check the values in the DXR, which are correct and follow the required
pattern. Also, the External peripheral interface has been initialized
to be linked to the McBSP0 and this was verified by testing the CLKX0
pin and FSX0 pin on the scope. Even the interrupt period was also
cross checked by toggling a LED at the beginning and end of the
IRQ...whose waveform was also observed on the scope. The register
contents are correct, the interrupts is called at the right times and
the clock is prescaled accordingly, yet I am unable to receive the
desired waveform form out of the DX0 pin. Could anyone please help me
out in this regard.
Is there a way to check the contents of XSR.
On trying to implement the communication using polling, the DX is by
default high and gives low pulses at random intervals. When interrupt
is used, the DX is low and random high pulses are generated....I want
the DX to be in high state when idle.... What shall I do in this
regard

Kindly reply at the earliest...

Thanks.

--
Regards,

Avik

_____________________________________