Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Problem with McBSP in master mode

$
0
0

I’m trying to setup MASTER mode McBSP for I2S interface.

I use DM3730 microprocessor and McBSP3 port. Software platform is Linux.

The McBSP control registers have next values:

 

SPCR2: 0x02f5

SPCR1: 0x0031

RCR2:  0x0041

RCR1:  0x0040

XCR2:  0x0041

XCR1:  0x0040

SRGR2: 0x101f

SRGR1: 0x0f3d

PCR0:  0x0f0f

 

All necessary bits for master mode are set.

If I run the port for transmitting or receiving I see clock and frame pulses on appropriate microprocessor pins.

In the case of transmitting all works correctly.

But in the case of receiving port doesn’t receive any data.

I check this by RRDY bit in SPCR1 register. RRDY bit is always 0.

But if I switch port into digital loopback mode (DLB = 1) it starts to receive own data.

It seems clock or frame pulses aren’t routed correctly when DLB=0. 

DM3730 has five serial ports. They are initialized similar way by the same Linux driver.

I’ve tried to do similar experiment with the rest of the ports.

McBSP1 and McBSP2 work as expected.

But receiving doesn’t work on McBSP2, McBSP4, McBSP5.

I’ve tried set EXTCLKGATE bit in XCCR but this hasn’t changed situation.

 

I'm in a standoff.

Any advise please.

 

Thanks.

Pavel.

 


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>