McBSP2
7-111
MPU Public Peripherals
ARM_Write(0x0001) => XCR2; set up XCR2 per below configuration.
Table 7–84. Transmit Control Register 2 Configuration (ARM_Write(0x0001) => XCR2)
Bit
Configuration Value
Description
15
0b
Set single-phase frame
14–8
000 0000b
Don’t care for single-phase frame
7–5
000b
Don’t care for single-phase frame
4–3
00b
Set no companding data and transfer start with MSB first
2
0b
Set FSX not ignore after the first resets the transfer
1–0
01b
Set data delay as 1 bit
7.10.1.5
Sample Rate Generator Configuration (SRGR[1,2])
1) Configure the sample rate generator appropriately for CLKX and FSX. For
details, see TMS320C54x DSP Enhanced Peripherals Reference Set,
vol. 5, SPRA302.
2) Wait for two CLKSRG clocks.
3) ARM_Write SPCR2 or (0x0000 0040)
→
SPCR2;CLKG enable
4) Wait two CLKG clocks.
7.10.1.6
Interrupt Flag Configuration and Clear (ILR, ITR, MIR)
1) ARM_Write
→
ILR; set ILR appropriately for the interrupt handling priority.
2) ARM_Write ITR and (0xFFFF FFCF)
→
ITR; clear remained TX and RX
interrupt.
Note:
This setup is not needed after reset.
3) ARM_Write MIR and (0xFFFF FFCF)
→
MIR; enabled SPI TX and RX
interrupt
7.10.1.7
Take out of Reset for Transmit and Receive Starting (SPCR[1,2])
1) ARM_write SPCR1 or (0x0001)
→
SPCR1; enabled receive port
2) ARM_write SPCR2 or (0x0001)
→
SPCR2; enabled transmit port