McBSP3
9-21
DSP Public Peripherals
9.4.4.7
Interrupt Flag Configuration and Clear (ILR, ITR, MIR) on Level 2 Handler
1) DSP_Write => ILR; set ILR appropriately for the interrupt handling priority.
2) DSP_Write ITR and (0xFFFF F3FF)=> ITR; clear remaining TX and RX
interrupts.
Note:
This set up is not needed after reset.
3) DSP_Write MIR and (0xFFFF F3FF) => MIR; enabled SPI TX and RX
interrupt
9.4.4.8
Interrupt Flag Configuration MASK Release on Level 2 Handler
DSP_Write MIR and (0xFFFF FFFB) => MIR0; enabled INT4 (level 2 interrupt
FIR)
9.4.4.9
Take Out of Reset for Transmit and Receive Starting (SPCR[1,2])
1) DSP_write SPCR1 or (0x0001) => SPCR1; enabled receive port
2) DSP_write SPCR2 or (0x0001) => SPCR2; enabled transmit port
Note:
Wait two sample rate clock cycles for McBSP stability.
9.4.4.10
Transmit and Received Data Loading (TX_INT Handling in Interrupt Survive Routine)
For data transmit:
1) DSP_Write => DXR; transmit data loading to DXR
2) DSP_Read <= DRR; wait for data read after the RINT
For two data received:
1) DSP_Write => DXR; dummy write 0xFFFF for data receive after the TINT
2) DSP_Read <= DRR; first data read after the RINT
3) DSP_Write => DXR; dummy write 0xFFFF for data receive after the TINT
4) DSP_Read <= DRR; second data read after the RINT
9.4.4.11
Register Setup GPIO Mode
1) DSP_Write SPCR1 and (0xFFFE) => SPCR1; disabled receive port
2) DSP_Write PCR or (0x1000) => PCR; DR pin set as GPI