MCC Configuration Basics
Multi-Channel Controllers (MCCs) 10-3
3. Configure the external interface:
a. Set up the parallel I/O pins.
b. Enable the TDM.
These steps map to the functionality flow of the software driver discussed in this chapter.
See Figure 10-2 for a listing of the driver functions.
Figure 10-2. Driver Functions
ExtIntHandler() provides an example interrupt handler. The handler checks the event that
causes the interrupt and, in the HDLC loopback modes, enables a memory check to ensure
that the received data is identical to the transmitted data. Table 10-1 shows examples of
functions that are useful in handling interrupts.
Table 10-1. Interrupt Handler Functions
Function Name Function Details
BDRxError() Identifies the reason for the Rx interrupt.
LastBD() Indicates whether this is the last buffer descriptor in the ring.
BDEmpty() Determines whether the buffer descriptor is empty.
ExtIntHandler()
BDRxError() LastBD() BDEmpty() GP01ed() GP11ed() FlashGP1Led()
main()
Load Tx
Buffers()
InitBDs() MCC Global
Init()
MCC ExChan
SpecInit()
MCCChan
SpecInit()
Interrupt
ControlInit()
SIInit() InitTxRx
Params()
ClockingInit() InitParallel
Ports()
Init_PHY()
Comments to this Manuals