Programming Model
8-16 ADSP-214xx SHARC Processor Hardware Reference
Loop-Back Test Mode
Loop-back test mode is used for debug operations and is enabled by set-
ting the LBM bit in the MLB_DCCR register. This mode provides basic testing
capabilities for the MediaLB pads, physical layer, link layer, channel pro-
tocol and the local channel buffer by enabling a single receive channel and
a single transmit channel. When loop-back test mode is enabled, a data
path is enabled which allows receive data from even channel N to be sent
out as transmit data on channel N + 1, where N = {0, 2, 4 …30}.
Programming Model
The following sections provide procedures that are helpful when program-
ming media local bus interface.
I/O Interrupt Mode
To configure the MLB interface for I/O mode using interrupts, use the
following procedure.
1. Reset the MLB device.
2. Program the appropriate bits in the PICRx register to generate MLB
interrupt.
3. Unmask the appropriate bits in
MLB_SSCR register inorder to moni-
tor the MLB network.
4. Configure the MLB control register (MLB_DCCR) with the appropri-
ate settings and enable the MediaLB device.
5. Check for MLB lock using the status bit in the
MLB_SSCR register
using polling or interrupt.
6. Configure the MLB_LCBCRx register for channel buffer threshold,
depth and start address.