McBSP2
7-109
MPU Public Peripherals
Section 7.10.1.1 through Section 7.10.1.9 explain how to set up the McBSP
registers for TX master and RX slave mode with 16-bit transfers using
interrupts.
7.10.1.1
Serial Port Control Register Configuration
ARM_Write(0x0000) => SPCR1; set up SPCR1 as initial configuration.
This setup is not needed after reset.
ARM_Write(0x0000) => SPCR2; set up SPCR2 as initial configuration.
This setup is not needed after reset.
7.10.1.2
Pin Control Register Configuration
ARM_Write(0x0a00) => PCR; set up PCR per the following configuration.
Table 7–80. Pin Control Register Configuration
Bit
Configuration Value
Description
15 –14
00b
Reserved
13
0b
Set serial port mode for DX, FSX and CLKX pins
12
0b
Set serial port mode for DR, FSR and CLKR pins
11
1b
TX frame-synchronization signal driven by internal generator
10
0b
RX frame-synchronization signal derived by external source
9
1b
CLKX set output pin and driven by internal generator
8
0b
CLKR set input pin and derived by external source
7
0b
Sample rate generator input clock mode bit
6
0b
CLKS pin status (no meaning in the OMAP5910 device)
5
0b
DX pin status
4
0b
DR pin status
3
0b
Set FSX polarity as active high
2
0b
Set FSR polarity as active high
1
0b
Set CLKX polarity as data driven on rising edge
0
0b
Set CLKR polarity as data sampled on falling edge