Motorola MC68824 User Manual page 67

Token-passing bus controller
Table of Contents

Advertisement

II
Load the Function Code of the Init Table Pointer into ORO
Issue LOAD INITIALIZATION TABLE FC Command
Wait until Semaphore Register is 'FF'
Load the Init Table Pointer into DR
Issue INITIALIZE Command
Issue SET MODE 1 Command to Set CACF and CUFC Mode Bits
Issue SET MODE 3 Command to Set SWAP, HLEN, PS3, and RCDS Bits if Desired
Issue SET 1 WORD or 2 WORDS Command to Set Individual Address Mask to Zero (Copy all
Frames)
Issue SET 1 WORD or 2 WORDS Command to Set Group Address Mask to 'FFFF' (Copy all
Frames)
Issue SET PTP Command
Prepare Free FD and BD Pools
Issue SET 2 WORDS Commands to Initialize the Free FD and BD Pool Pointers as well as the
RX Queue Access Class 6 EOQ Pointer
Issue SET FC BD, FD, and RXlTX Data Buffers if needed
Issue SET INTERNAUEXTERNAL LOOPBACK MODE
Initialize Modem if in External Loopback Mode
Load CPA VALO with Pattern Word -
Must be Two Identical Bytes
Clear Done Bit in CPA Status Word
Issue RECEIVER TEST (Code is BO)
Wait for Command Confirmation which Indicates Acceptance of the Test
Wait until FD or BD Pool Empty (Bits
1
and
2
in Interrupt Status Word
0)
Issue the OFFLINE Command
Check for Received Frames' Status in the FD (Class
6)
NOTE
In order to check for command completion, the host must clear the done bit in CPA
status word before issuing a command to the TBC.
3.6.6 Sequence for Running all the Tests
The tests may be run one after the other without reinitialization, provided each preceding test
runs successfully to completion. If a test fails, it is strongly recommended to reinitialize the chip
before running the next test. This sequence of tests can be run at system initialization and after
reset. The four tests are executed in the following sequence: host interface, full duplex loopback,
receive, and transmit. This routine should be performed as follows:
TBC INITIALIZATION
Prepare'the Initialization Table
Issue RESET Command
Wait until Semaphore Register is ,FF'
Initialize the Interrupt Vector Register
Load the Function Code of the Init Table Pointer into ORO
MOTOROLA
3-24
MC68824 USER'S MANUAL

Advertisement

Table of Contents
loading

Table of Contents