Transmit Control Register 2 Configuration - Texas Instruments OMAP5910 Technical Reference Manual

Dual-core
Hide thumbs Also See for OMAP5910:
Table of Contents

Advertisement

Table 7–84. Transmit Control Register 2 Configuration (ARM_Write(0x0001) => XCR2)
Bit
Configuration Value
15
0b
14–8
000 0000b
7–5
000b
4–3
00b
2
0b
1–0
01b
7.10.1.5
Sample Rate Generator Configuration (SRGR[1,2])
7.10.1.6
Interrupt Flag Configuration and Clear (ILR, ITR, MIR)
7.10.1.7
Take out of Reset for Transmit and Receive Starting (SPCR[1,2])
ARM_Write(0x0001) => XCR2; set up XCR2 per below configuration.
Description
Set single-phase frame
Don't care for single-phase frame
Don't care for single-phase frame
Set no companding data and transfer start with MSB first
Set FSX not ignore after the first resets the transfer
Set data delay as 1 bit
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.
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
1) ARM_write SPCR1 or (0x0001) → SPCR1; enabled receive port
2) ARM_write SPCR2 or (0x0001) → SPCR2; enabled transmit port
MPU Public Peripherals
McBSP2
7-111

Advertisement

Table of Contents
loading

Table of Contents