McBSP3
9-25
DSP Public Peripherals
9.4.4.16
Transmit Control Register Configuration
The values of RWDLEN1, 2 and XWDLEN1, 2 must be set to the same value
in SPI mode.
DSP_Write(0x0000) => XCR1; set up XCR1 per below configuration.
Table 9–27. Transmit Control Register 1 Configuration (DSP_Write(0x0000) => XCR1)
Bit
Config Value
Description
15
0b
Reserved
14–8
000 0000b
Set transmit frame length as one word per frame
7 –5
000b
Set transmit word length as 8 bits per frame
4–0
0 0000b
Reserved
DSP_Write(0x0000) => XCR2; set up XCR2 per below configuration.
Table 9–28. Transmit Control Register 2 Configuration (DSP_Write(0x0000) => XCR2)
Bit
Config Value
Description
15
0b
Set single-phase frame
14–8
000 0000b
Set transmit frame length as one word per frame
7–5
000b
Set transmit word length as 8 bits per frame
4–3
00b
Set no companding data and transfer start with MSB first
2
0b
Set FSX ignore after the first resets the transfer
1–0
00b
Set data delay as 0 bit
9.4.4.17
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 two CLKSRG clocks.
3) ARM_Write SPCR2 or (0x0000 0040)=>SPCR2;CLKG enable
4) Wait two CLKG clocks.