MC68000 MOTOROLA [Motorola, Inc], MC68000 Datasheet - Page 361

no-image

MC68000

Manufacturer Part Number
MC68000
Description
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MC68000-10/BZAJC
Manufacturer:
MOT
Quantity:
26
Part Number:
MC68000-8BXAJ
Manufacturer:
MOT
Quantity:
9
Part Number:
MC680008FN8
Manufacturer:
FREESCALE
Quantity:
8 831
Part Number:
MC680008L8
Manufacturer:
AMD
Quantity:
42
Part Number:
MC68000FN10
Manufacturer:
MOT
Quantity:
5 510
Part Number:
MC68000FN10
Manufacturer:
MOTOROLA/摩托罗拉
Quantity:
20 000
Part Number:
MC68000FN12
Manufacturer:
MOT
Quantity:
5 510
Part Number:
MC68000L8
Manufacturer:
MOTOROLA/摩托罗拉
Quantity:
20 000
Part Number:
MC68000P10
Manufacturer:
MOT
Quantity:
1 000
Part Number:
MC68000P10
Manufacturer:
MOT
Quantity:
20 000
Finally:
D.3.7 Final Comments
Note that nowhere in the algorithm does RBD# or TBD# need to be read. The empty and
ready bits provide all the necessary information.
Whether receiving buffers or confirming buffers, the interrupt routines deal with all the buff-
ers they can before the interrupt routine is exited. This approach is not mandatory, but if not
all buffers are dealt with, then some provision needs to be made for getting the work done
without waiting for another interrupt.
For frame-oriented protocols such as HDLC, the user may wish to only process frames, not
buffers. In this case, the algorithm would be the same, but the interrupt mask would be set
for frame interrupts only.
D.3.8 HDLC Code Listing
The following code shows the initialization of the HDLC protocol and the implementation of
the buffer processing algorithms just described. HDLC frames are continuously transmitted
and received in the SCC loopback mode.
MOTOROLA
If the interrupt was due to a buffer being transmitted, perform the following confirm pro-
cess:
2. While (CTD -> Ready) = 0 and (CTD -> data length) > 0, do the following:
3. Clear the SCC bit in the in-service register (ISR) of the interrupt controller. This is stan-
4. Return from interrupt.
*************************** BUFFER PROCESSING CODE**************************
************************************EQU TABLE******************************
* The following three values are application dependent
BASE
INIT
INT_VEC
* Commonly used Registers and Parameters
BAR
SCR
CKCR
GIMR
IPR
/* Look at frames that have been transmitted, but not confirmed */
dard procedure.
e. Clear all status bits to zero (the default condition).
f. Set (PRD -> Empty) = 1.
g. Move PRD to point to the next BD (If the wrap bit is set, point to the first BD).
a. Check for errors in the BD.
b. Clear all status bits to zero (the default condition).
c. Clear out the data length field so that it is zero to start with. This procedure al-
d. Move CTD to point to the next BD. (If the wrap bit is set, point to the first BD.)
lows new data be placed in this transmit buffer by the transmit algorithm.
EQU
EQU
EQU
EQU
EQU
EQU
EQU
EQU
$0700000
$0030300
$0031000
$0F2
$0F4
$0F6
BASE +
BASE +
MC68302 USER’S MANUAL
$812
$814
;This is set according to the val in BAR
;Initialization Routine
;Interrupt Vector for SCC1
;Base Address Register
;System Control Register
;Clock Control Register
;Global Interrupt Mode Register
;Interrupt Pending Register
MC68302 Applications
D-11

Related parts for MC68000