Hi,
I am trying to get a UART to work on C6713.
I have used the document SPRA633C for the basic code and understanding of the McBSP initialization.
But I have a few questions regarding this.
1) I want to work at 9600 bps rate. The internal clock used by the McBSP is CPU clk/2 (225MHz/2). What can be the CLKDIV and
McBSP clock rate that can be used to accomplish 9600bps rate on the UART? Because UART is asynchronous, the clock rate has to be 16/32 times the
required rate...correct? If so the rate will be 153.6kHz / 307.2kHz. What will be the CLKDIV used to set up the McBSP to get this rate
since the max CLKDIV that can be used is 255 and 112MHz / 255 = 439kHz. Can we generate 153kHz clock for the McBSP?
2) The example code in the SPRA633C doc uses INT14 and INT15 for McBSP Rx and Tx using EDMA.
I am using INT13 for McBSP Rx and presently not looking at Tx at all. I am trying to send the serial data to the DSP using Hyperterminal.
I can see the data on the Rx line of the McBSP but cannot see anything in the Buffer given to the EDMA for storage. I am not sure if the EDMA is working properly.
Can you suggest how to debug the EDMA? Can I not use EDMA and just get interrupts and use ISR for the purpose?
What do I expect to see in the buffer ? Only 0xFFFF and 0x0000?
Please do reply ASAP.
Thanks,
Regards,
Aditi.