Datasheet MK50H27Q, MK50H27 Datasheet (SGS Thomson Microelectronics)

Page 1
SECTION1 - FEATURES
CompleteLevel 2 Implementationof SS7. Compatible with 1988 CCITT, AT&T, ANSI,
and Bellcore Signalling System Number 7 link level protocols.
Pin-for-pin and architecturally compatible with MK50H25 (X.25/LAPD), MK50H29 (SDLC), and MK50H28(FrameRelay).
System clock rates up to 33 MHz (MK50H27 -
33), or 25 MHz(MK50H27- 25). Data rate up to 4 Mbps continuous for SS7
protocol processing, 20 Mbps for transparent HDLC mode, or up to 51 Mbps bursted (gapped data clocks,non-continuousdata).
On chip DMA control with programmableburst length.
DMA transfer rate of upto 13.3Mbytes/sec us­ing optional 5 SYSCLK DMA cycle (150 nS) at 33 MHzSYSCLK.
BufferManagementincludes:
- InitializationBlock
- SeparateReceive and TransmitRings
- VariableDescriptorRing and Window Sizes.
Selectable BEC or PCR retransmission meth­ods, includingforced retransmissionfor PCR.
Handles all 7 SS7 Timers, plus the additional Signal Unit intervaltimers for JapaneseSS7.
Handles all SS7 frame formatting:
- Zerobit insert and delete
- FCSgenerationand detection
- Framedelimiting with flags
Programmable minimum Signal Unit spacing (number of flags between SU’s)
Handles all sequencingand link control. SelectableFCS of 16 or 32 bits. Testing Facilities:
- InternalLoopback
- SilentLoopback
- OptionalInternalData ClockGeneration
- SelfTest.
Programmablefor fullor half duplex operation Programmable Watchdog Timers for RCLK and TCLK(to detect absenceof data clocks)
MK50H27
Signalling System 7
Link Controller
DIP48
PLCC 52
Available in 52 pin PLCC, 84 pin PLCC(for use with external ROM), or 48pin DIPpackages.
SECTION2 - INTRODUCTION
The SGS - Thomson SS7 SignallingLink Control­ler (MK50H27) is a VLSI semiconductor device which provides a complete level 2 datacommuni­cation control conforming to the CCITT, ANSI, BELLCORE, and AT&T versions of SS7, as well as options to allow conformance to TTC JT-Q703 (Japanese SS7). This includessignal unit format­ting, transparency (so-called ”bit-stuffing”), error recovery by two types of retransmission, error monitoring, sequence number control, link status control,and fill in signal unit generation.
One of the outstanding features of the MK50H27 is its buffer management which includes on-chip DMA. This feature allows users to handle multi­ple MSU’s of receive and transmit data at a time. (A conventionaldata link controlchip plus a sepa­rate DMA chip would handle data for only a single block at a time.) The MK50H27 will move multiple blocks of receive and transmit data directly into
September 1997
1/56
Page 2
MK50H27
INTRODUCTION (Continued)
and out of memory through the Host’s bus. A possible system configurationfor the MK50H27 is shown in figure 1.
For added flexibility a transparent mode provides an HDLC transport mechanism without link layer support. In this mode no protocol processing is done, all data received between opening flag and CRC is writtento the sharedmemory buffer and it is up to the user to take care of the upper level software.
DIP48 PIN CONNECTION (Topview)
VSS-GND
DAL07 DAL06
DAL05 DAL04
DAL03 DAL02
DAL01 DAL00
READ INTR
DALI DALO
DAS
BMO, BYTE,BUSREL
BMI, BUSAKO
HOLD, BUSRQ
ALE, AS
HLDA
CS ADR
READY RESET
VSS-GND
The MK50H27 may be used with any of several popular microprocessors, such as: 68040 ... 68000, 6800, Z8000, Z80, 80486 ... 8086, i960, etc.
The MK50H27 may be operated in either full or half duplex mode. In half duplex mode, the RTS and CTSmodem control pins are provided. In full duplex mode, these pins become user program­mable I/O pins. All signal pins on the MK50H27 are TTL compatible. This has the advantage of makingthe MK50H27independentof the physical interface. As shown in figure 1, line drivers and receivers are used for electrical connectionto the physicallayer.
1 2
3 4
5 6
7 8
9 10
11 12
13 14
15 16 17
18 19
20 21
22 23
24
M
K 5 0 H 2 7
48 47
46 45
44 43
42 41
40 39
38 37
36 35
34 33 32
31 30
29 28
27 26
25
VCC (+5V) DAL08
DAL09 DAL10
DAL11 DAL12
DAL13 DAL14
DAL15 A16
A17 A18 A19
A20 A21
A22 A23
RD DSR, CTS
TD SYSCLK
RCLK DTR, RTS
TCLK
2/56
Page 3
PLCC52 PIN CONNECTION(Top view)
No Connect
7 1 52 47
DAL02 DAL01 DAL00
READ
INTR
DALI
DALO
DAS
BMO/BYTE/BUSREL
No Connect
BM1/BUSAKO
HOLD/BUSRQ
ALE/AS
8
20
21
DAL04
DAL03
DAL05
VCC
VSS
DAL07
DAL06
MK50H27Q
DAL08
DAL09
DAL10
DAL11
33
DAL12
46
34
MK50H27
DAL13 DAL14 DAL15 A16 A17 A18 A19 A20 A21 A22 No Connect A23 RD
CS
HLDA
ADR
READY
RESET
VSS(GND)
TCLK
No Connect
RCLK
SYSCLK
DTR/RTS
TD
DSR/CTS
3/56
Page 4
MK50H27
TAble 1 - PIN DESCRIPTION
LEGEND: I Input only O Outputonly
IO Input/ Output 3S 3-State OD OpenDrain (no internalpull-up)
Note: Pin out for 52 pin PLCCis shown in brackets.
SIGNAL NAME PIN(S) TYPE DESCRIPTION
DAL<15:00> 2-9
READ 10
INTR 11
DALI 12
DALO 13
DAS 14
BMO
BYTE
BUSREL
BM1
BUSAKO
40-47
[2-10
44-51]
[11]
[12]
[13]
[14]
[15]
15
[16]
16
[18]
IO/3S The time multiplexed Data/Addressbus. During the address portion of a
memory transfer, DAL<15:00> contains the lower16 bits of the memory address. During the data portion of a memory transfer, DAL<15:00> contains the read or write data, depending on the typeof transfer.
IO/3S READ indicatesthe type of operation that thebus controller is performing
during abus transaction. READ is driven by the MK50H27 only while it isthe BUS MASTER.READ is valid during the entirebus transaction and is tristated at all other times. MK50H27 as a BusSlave : READ = HIGH - Data is placed on the DAL linesby the chip. READ = LOW - Data is taken off the DAL lines bythe chip. MK50H27 as a BusMaster : READ = HIGH - Data is taken off theDAL lines by the chip. READ = LOW - Data is placed on the DAL lines by the chip.
O/OD INTERRUPT is an attention interrupt line that indicates thatone or more of
the following CSR0 status flags is set: MISS, MERR, RINT, TINT or PINT. INTERRUPT is enabled by CSR0<09>, INEA=1.
O/3S DALIN is an external bus transceiver control line. DALI is driven by the
MK50H27 only while it is the BUS MASTER. DALI is asserted by the MK50H27 when it readsfrom the DAL lines during the data portion of a READ transfer. DALI is not asserted during a WRITE transfer.
O/3S DALOUT is an external bus transceiver control line. DALO is driven by the
MK50H27 only while it is the BUS MASTER. DALO is asserted by the MK50H27 when it drivesthe DAL linesduring the address portionof a READ transfer or for the durationof a WRITE transfer.
IO/3S DATA STROBEdefines the dataportion of a bus transaction. By definition,
data is stable and valid at the low to high transition of DAS.Thissignal is driven by the MK50H27 while it is the BUS MASTER. During the BUS SLAVE operation, this pin is used as an input. At all other times the signal is tristated.
IO/3S I/O pins 15 and 16 are programmable through CSR4. If bit 06 of CSR4 is set
to a one, pin 15 becomes input BUSREL and is used by the host to signal the MK50H27 to terminate a DMA burst after the current bus transferhas completed. If bit 06 is clear then pin 15 is an outputand behaves as described belowfor pin 16.
O/3S Pins15 and 16 are programmable through bit 00 of CSR4 (BCON).
If CSR4<00> BCON = 0,
I/O PIN 15 = BMO (O/3S)
I/O PIN 16 = BM1 (O/3S) BYTE MASK<1:0> Indicates the byte(s) on the DAL to be read or written during thisbus transaction. MK50H27 drives these lines only as a Bus Master. MK50H27 ignores the BM lineswhen it is aBus Slave. Byte selectionis done as outlined in the following table. BM1 BM0 TYPE OF TRANSFER LOW LOW ENTIRE WORD LOW HIGH UPPER BYTE
(DAL<15:08>)
HIGH LOW LOWER BYTE
(DAL<07:00>)
HIGH HIGH NONE
4/56
Page 5
Table 1: PIN DESCRIPTION(continued)
SIGNAL NAME PIN(S) TYPE DESCRIPTION
HOLD
BUSRQ
ALE
AS
HLDA 19
CS 20
ADR 21
READY 22
17
[19]
18
[20]
[21]
[22]
[23]
[24]
If CSR4<00> BCON = 1,
Byte selectionis done using the BYTE line and DAL<00> latchedduring the address portion of thebus transaction. MK50H27 drives BYTE onlyas a Bus Master and ignores it when a Bus Slave. Byte selection is done as outlined in thefollowing table. BYTE DAL<00> TYPE OF TRANSFER LOW LOW ENTIRE WORD LOW HIGH ILLEGAL CONDITION HIGH LOW LOWER BYTE HIGH HIGH UPPER BYTE BUSAKO is a bus request daisy chainoutput. IfMK50H27 is not requesting the bus and it receives HLDA, BUSAKO will be driven low. If MK50H27is requesting the bus when it receives HLDA, BUSAKO will remain high Note: All transfers are entireword unless the MK50H27 isconfigured for 8 bit operation.
IO/OD Pin 17 is configured through bit 0 of CSR4.
If CSR4<00> BCON = 0, HOLD requestis asserted by MK50H27 when it requires a DMA cycle,if
HLDA is inactive, regardless of the previousstate of theHOLD pin. HOLD is held low for the entireensuing bus transaction. If CSR4<00> BCON = 1,
BUSRQ is asserted by MK50H27 when it requires a DMA cycle ifthe prior state ofthe BUSRQ pin was high and HLDA is inactive. BUSRQ is held low for the entire ensuing bus transaction.
O/3S Theactive level of ADDRESS STROBE is programmable through CSR4.
The address portion of a bustransfer occurs while thissignal is at its asserted level.This signal is drivenby MK50H27 whileit is the BUS MASTER. At all other times, the signalis tristated. If CSR4<01> ACON = 0,
ADDRESS LATCH ENABLE isused to demultiplexthe DAL lines anddefine the address portion of the transfer. As ALE, the signaltransitions from high to low during the address portion of the transfer and remains low during the data portion. If CSR4<01> ACON = 1,
As AS, the signal pulses low during the address portion of the bus transfer. The low to hightransition of AS can be used by aslave device to strobe the address into a register. AS is effectively the inversion of ALE.
I HOLD ACKNOWLEDGE is theresponse to HOLD. When HLDAis low in
response to MK50H27’s assertion of HOLD, the MK50H27 is the Bus Master. HLDA should bedeasserted ONLY afterHOLD has been released by the MK50H27.
I CHIP SELECT indicates, when low, that theMK50H27 is the slave device
for the data transfer. CS must be valid throughout the entire transaction.
I ADDRESS selects the Register Address Port or the Register Data Port. It
must be valid throughout thedata portion of the transfer andis only used by the chip when CS is low. ADR PORT LOW REGISTER DATA PORT HIGH REGISTER ADDRESS PORT
IO/OD When the MK50H27 is a Bus Master, READY is an asynchronous
acknowledgement from the busmemory thatmemory willaccept data in a WRITE cycle or thatmemory has put data on the DALlines in a READ cycle.
I/O PIN 15 = BYTE (O/3S) I/O PIN 16 = BUSAKO (O)
I/O PIN 17 = HOLD
I/O PIN 17 = BUSRQ
I/O PIN 18 = ALE
I/O PIN 18 = AS
MK50H27
5/56
Page 6
MK50H27
Table 1: PIN DESCRIPTION(continued)
SIGNAL NAME PIN(S) TYPE DESCRIPTION
As a Bus Slave,the MK50H27 asserts READY when it has put data on the DAL linesduring a READ cycle or is about to take data from the DAL lines during aWRITE cycle. READY is a response to DAS and it will be released after DAS or CS is negated.
RESET 23
TCLK 25
DTR RTS
RCLK 27
SYSCLK 28
TD 29
DSR CTS
RD 31
A<23:16> 32-39
VSS-GND 1,24
VCC 48
[25]
[28]
26
[29]
[30]
[31]
[32]
30
[33]
[34]
[37-43]
[1,26]
[52]
I RESET is the Bus signal that will cause MK50H27 to cease operation, clear
its internal logic and enter an idle state with the Stop bit ofCSR0 set.
I TRANSMIT CLOCK. A 1x clock input for transmitter timing. TD changes on
the fallingedge of TCLK. The frequency of TCLK may not be greater than the frequency of SYSCL
IO DATA TERMINAL READY, REQUEST TOSEND. Modem controlpin. Pin
26 is configurable through CSR5. Thispin can be programmed to behave as output RTS or as programmable IO pin DTR. If configured as RTS, the MK50H27 will assert this pin if it has data to send and throughout the transmission of a signal unit.
I RECEIVE CLOCK. A 1x clock input for receiver timing. RD is sampled on
the rising edge ofRCLK. The frequency of RCLK may notbe greater than the frequency of SYSCLK.
I SYSTEM CLOCK. System clock used for internal timing ofthe MK50H27.
SYSCLK shouldbe a squarewave, of frequency up to 33 MHz.
O TRANSMIT DATA. Transmitserial data output.
IO DATA SET READY, CLEAR TO SEND. Modem Control Pin. Pin 30 is
configurable throughCSR5. This pincan be programmed to behave as input CTS or as programmable IO pinDSR. If configured as CTS, the MK50H27 will transmit all ones while CTS is high.
I RECEIVE DATA. Received serial data input.
O/3S Address bits<23:16> used inconjunction with DAL<15:00> to produce a 24
bit address. MK50H27 drives these lines only as a Bus Master. A23-A20 may be driven continuously as described in the CSR4<7> BAEbit.
Ground Pins
Power SupplyPin +5.0 VDC + 5%
SECTION3 OPERATIONALDESCRIPTION
The SGS-Thomson MK50H27 Multi-Logical Link CommunicationsController deviceis a VLSI prod­uct intended for high performance data communi­cation applications requiring SDLC link level con­trol. The MK50H27 will perform all frame formatting, such as: frame delimiting with flags, FCS (CRC) generation and detection, and zero bit insertion and deletion for transparency. The MK50H27 also handles all supervisory (S) and unnumbered (U) frames (see Tables A & B). The MK50H27 also includes a buffer management mechanismthat allowsthe user to transmit and/or receive multiple frames for each active channel or DLCI. Contained in the buffer management is an on-chipdual channel DMA: one channel for re­ceive andone channelfor transmit.
6/56
The MK50H27 can be used with any popular 16 or 8 bit microprocessor. A possible system con­figuration for the MK50H27 is shown in Figure 1. This document assumes that the processorhas a byte addressablememory organization.
The MK50H27 will move multiple blocks of re­ceive and transmit data directly in and out of memorythroughthe Host’sbus.
The MK50H27 may be operated in full or half du­plex mode. In half duplex mode the RTS and CTS modem control pins are provided. In full du­plex mode, these pins become user programma­ble I/O pins.
All signal pins on the MK50H27 are TTL compat­ible. This has the advantage of making the MK50H27 independent of the physical interface. As shown in Fig. 1, line drivers and receivers are used for electrical connection to the physical layer.
Page 7
Figure 1: PossibleSystem Configuration for thr MK50H27
HOST PROCESSOR
(68020, i960, Z8000, ETC)
MK50H27
MEMORY
(MULTIPLE
DATA BLOCKS)
DTR, RTS
DSR, CTS
16-BIT DATA BUS INCLUDING 24-BIT ADDRESS AND BUS CONTROL
MK50H27
RCLK
RD
TCLK
TD
LINE DRIVERS
AND RECEIVERS
ELECTRICAL I/O
(SUCH AS RS-232C, RS-423, RS-422)
DATA COMM. CONNECTOR
(SUCH AS RS-449, RS-232C, V.35)
7/56
Page 8
MK50H27
Figure 2: MK50H27Simplified Block Diagram
DALI
DALO
HLDA
HOLD
ALE, AS
BM0
A <23:16>
DAL <15:00>
BM1
DMA
CONTROLLER
READY READ DAS
ADR
CS
CONTROL / STATUS REGISTERS 0 - 5
DTR, RTS
DSR, CTS
INTR
FIRMWARE
ROM
MICRO
CONTROLLER
TIMERS
SYSCLK
RCLK
RD
INTERNAL BUS
RECEIVER
FIFO
RECEIVER TRANSMITTER
LOOPBACK
TRANSMITTER
FIFO
TEST
VCC VSS -GND RESET
TCLK
TD
8/56
Page 9
MK50H27
3.1 Functional Blocks Refer tothe blockdiagram in Figure2. The MK50H27 is primarily initialized and control-
led through six 16-bit Control and Status Regis­ters (CSR0 thru CSR5). The CSR’s are accessed through two bus addressable ports, the Register Address Port (RAP), and the Register Data Port (RDP). The MK50H27 may also generate an in­terrupt(s) to the Host. These interrupts are en­abled and disabled through CSR0.
The on-chip microcontroller is used to control the movement of parallel receive and transmit data, and to handle the Addressfield filtering.
3.1.1 Microcontroller The microcontrollercontrolsall of the otherblocks
of the MK50H27. The microcontroller performs frame processing and protocol processing. All primitive processing and generation is also done here. The microcode ROM contains the control program of the microcontroller.
3.1.2 Receiver Serial receive data comes into the Receiver (Fig-
ure 2). TheReceiveris responsiblefor:
1. Leadingand trailing flag detection.
2. Deletionof zeroes inserted for transparency.
3. Detectionof idle and abort sequences.
4. Detectionof good& bad CK (ChecKbit seq.)
5. MonitoringReceiver FIFO status.
6. Detectionof Receiver Over-Run.
7. Odd byte detection. NOTE: If framesare receivedthathavean odd
numberof bytesthen the last byteof the frame is saidto be an odd byte.
8. Detectionof non-octetalignedframes.Such
framesare treatedas invalid.
3.1.3 Transmitter
The Transmitteris responsiblefor:
1. Serializationof outgoingdata.
2. Generatingand appendingthe CK (CRC).
3. Framingoutgoing frame with flags.
4. Zerobit insertionfor transparency.
5. TransmitterUnder-Rundetection.
6. Transmissionof odd byte.
7. RTS/CTScontrol.
3.1.4 Check Bit Sequenceor Cyclic
Redundancy Check
The CK (CRC) on the transmitter or receiver may be either 16 bit or 32 bit, and is user selectable. For full duplex operation, both the receiver and transmitter have individual CK computation cir­cuits. Thecharacteristics of the CKare:
TransmittedPolarity: Inverted TransmittedOrder: High OrderBit First Pre-setValue: All 1’s Polynomial16 bit:
16+X12+X5
X
+1
Remainder16 bit (if received correctly):
High order bit-->0001 1101 00001111
Polynomial32 bit:
32+X26+X23+X22+X16+X12+X11+X10
X
8+X7+X5+X4+X2
X
+X+1
Remainder32 bit (if received correctly):
high order bit-->110001110000 0100
1101 1101 0111 1011
3.1.5 ReceiveFIFO The Receive FIFO buffers the data received by
the receiver. This performs two major functions. First, it resynchronizes the data from the receive clock to the system clock. Second, it allows the microcontroller time to finish whatever it may be doingbefore it has to process the receiveddata.
The receive FIFO holds the data from the receiver without interrupting the microcontrollerfor service until it contains enough data to reach the water­mark level, or an end of frame is received. This watermark level can be programmed in CSR4 (FWM) to occur when the FIFO contains at least 18 or more bytes; 34 or more bytes; or 50 or more bytes. Thisprogrammability, along with the programmableburst length of the DMA controller, enables the user to definehow often and for how long the MK50H27 must use the host bus. For more information, see CSR4.
For example, if the watermark level is set at 34 bytes and the burst length is limited to 8 word transfers at a time, the MK50H27 will request control of the host bus as soon as 34 bytes are received and again after every 16 subsequent bytes.
3.1.6 TransmitFIFO The Transmit FIFO buffers the data to be trans-
mitted by the MK50H27. This also performs two major functions. First, it resynchronizesthe data from the system clock to the transmit clock. Sec­ond, it allows the microcontroller and DMA con­troller to burst read data from the host’s memory buffers; making both the MK50H27 and the host bus more efficient.
+
9/56
Page 10
MK50H27
The transmitFIFO has a watermarkscheme simi­lar to the one described for the receive FIFO above, and uses the same FWM value selections in CSR4 for the watermark. Once filled to within FWM of being full (by DMA from TX buffer in shared memory), the transmit FIFO will not inter­rupt the microcontroller until it empties enough to fall below the watermark level.
3.1.7 DMA Controller
The MK50H27has an on-chip DMA Controllercir­cuit. This allows it to access memory without re­quiring host software intervention. Whenever the MK50H27 requires access to the host memory it will negotiate for mastership of the bus. Upon gaining controlof thebus the MK50H27 will begin transferring data to or from memory. The MK50H27 will perform memory transfers until either it has nothing more to transfer, it has reached its DMA burst limit (user programmable), or the BUSREL pin is driven low. In any case, it will complete all bus transfers before releasing bus mastership back to the host. If during a memory transfer, the memory does not respond within 256 SCLK cycles, the MK50H27 will re­lease ownership of the bus immediately and the MERR bit will be set in CSR0. The DMA burst limit can be programmed by the user through CSR4. In 16 bit mode the limit can be set to 1 word, 8 words, or unlimited word transfers. In 8 bit mode,it can be set to 2 bytes,16 bytes, or un­limited byte transfers. For high speed data lines (i.e. > 1 Mbps) a burst limit of 8 words or 16 bytes is suggestedto allow maximum throughput.
The byte ordering of the DMA transfers can be programmed to accountfor differences in proces­sor architecturesor host programminglanguages. Byte ordering can be programmed separately for data and control information. Data information is defined as all contents of data buffers;control in­formation is defined as anything else in the shared memory space (i.e. initializationblock, de­scriptors, etc). For more information see section
4.1.2.5 oncontrolstatus register 4.
3.1.8 Bus SlaveCircuitry
The MK50H27 contains a bank of internal con­trol/status registers (CSR0-5) which can be ac­cessed by the host as a peripheral. The host can read or writeto these registers like any other bus slave. The contents of these registers are listed in Section 4 and bus signal timing is described in Figures 9 and 10.
3.2 Buffer Management Overview
Refer toFig. 3.
10/56
3.2.1 InitalizationBlock Chip initialization information is located in a block
of memory called the Initialization Block. The In­itializationBlock consistsof 200 contiguouswords of memory starting on a word boundary. This memory is assembled by the HOST, and is ac­cessed by the MK50H27 during initialization. The InitializationBlock is comprisedof:
A. Mode of Operation. B. Counter/Timer Preset Values. C. Protocol Parameters or Options D. Location and size of Receive and TransmitDe-
scriptorRings. E. Optional Transmit Window SIzeValue F. Locationof StatusBuffer. G. Optional JT-Q703 SignalUnit IntervalTimer
Values H. Statisticsand ErrorCounters.
3.2.2 The Circular Queue The basic organizationof the buffer management
is a circular queue of tasks in memory called de­scriptor rings. There are separate rings to de­scribe the transmit and receive operations. Up to 128 buffers may be queued-up on a descriptor ring awaiting execution by the MK50H27. The descriptor ring has a descriptorassigned to each buffer. Each descriptor holds a pointer for the starting address of the buffer, and holds a value for thelength of thebuffer in bytes.
Each descriptor also contains two control bits called OWNA and OWNB, which denote whether the MK50H27, the HOST, or an I/O ACCELERA­TION PROCESSOR ( if present) ”owns” the buff­er. For transmit, when the MK50H27 owns the buffer, the MK50H27 is allowed and commanded to transmit the buffer. When the MK50H27 does not own the buffer, it will not transmitthat buffer. For receive, when the MK50H27 owns a buffer, it may place received data into that buffer. Con­versely, when the MK50H27 does not own a re­ceive buffer, it will not place received data into that buffer.
The MK50H27 buffer management mechanism will handle frames which are longer than the length of an individual buffer. This is done by a chaining method which utilizes multiple buffers. The MK50H27tests the next descriptorin the de­scriptor ring in a ”look ahead” manner. If the frame is too long for one buffer, the next buffer will be used after filling the first buffer; that is, ”chained”. The MK50H27 will then ”look ahead” to the next buffer, and chain that buffer if neces­sary, and so on.The operational parameters for the buffer management are defined by the user in the initialization block. The parameters defined include the basic mode of operation, protocol op­tions, the number of entries for the transmitter
Page 11
and receiver descriptor rings, etc. The starting address for the Initialization block, IADR, is de­fined in the CSR2 and CSR3 registers inside the MK50H27.
3.2.3 SignalUnit Repertoire
The frame format supported by the MK50H27 is shown in Table A. Each signal unit (SU) may consist of a programmable number of leadingflag patterns (01111110), Backward Sequence Num­ber, Backward Indicator Bit, Forward Sequence Number, Forward Indicator Bit, Lenght Indicator Field, followed by Signalling Information Octet, Service Information Field, or Status Field, de­pending on SU type, and then ended with a CK (CRC) of either 16 or 32 bits, and a trailing flag pattern. The number of leading flags transmitted is programmable through the Mode Register in the Initialization Block. Received signal units may have as few as one flag between adjacent signal units
The symbols and definitions for the signal unit types handledby the MK50H27 are:
MK50H27
NAME DEFINITION
MSU MessageSignal Unit LSSU Link Status Signal Unit FISU Fill In Signal Unit F Flag Sequence (01111110) FSN Forward SequenceNumber BSN Backward Sequence Number FIB Forward IndicatorBit BIB Backward Indicator Bit LI Lenght Indicator X Reserved - programmed as zeroes PRI Priority Indication (JT-Q703 only) SIO Signalling Information Octe SIF Service Information Field SF Status Field CK Check bit Sequence (CRC)
TABLE A - MK50H27Signal Unit Repertoire
11/56
Page 12
MK50H27
TABLE A - MK50H27Signal Unit Repertoire
Message Signal Unit (MSU)
F CK SIF SIO X LI FIB FSN BIB BSN F
8 16/32 8n,n>=2 8 2 6 1 7 1 7 8
Link Status Signal Unit (LSSU)
FCK
8 16/32
Values for SF:
0 - SIO, 1 - SIN, 2 - SIE,
Fill-in Signal Unit (FISU)
SF X LI FIB FSN BIB BSN F
Out of alignment Normal alignment Emergency
FCK
8 16/32
26 17 1 7 88/16
3 - SIOS, 4 - SIPO, 5 - SIB,
X LI FIB FSN BIB BSN F
2 6 171 7 8
Out-of-service Processor outage Congestion (Busy)
12/56
Right-most fields are transmitted first
Page 13
Figure 3: MK50H27MemoryManagement Structure
CSR 2, CSR3
POINTER TO
INITIALIZATIONBLOCK
INITIALIZATIONBLOCK
RECEIVER DESCRIPTOR RINGS
DESCRIPTOR 0
BUFFER STATUS
BUFFER ADDRESS
BUFFER SIZE
BUFFER MSGCOUNT
DESCRIPTOR 1
MK50H27
RECEIVE BUFFER
BUFFER
0
BUFFER
1
MODE
TIMER VALUES
PROTOCOL
PARAMETERS
RX DESCRIPTOR
POINTER
TX DESCRIPTOR
POINTER
STATUS
BUFFER ADDRESS
STATISTIC S
STATUS BUFFER
DESCRIPTOR M
TRANSMIT DESCRIPTOR RINGS
DESCRIPTOR 0
BUFFER STATUS
BUFFER ADDRESS
BUFFER SIZE
BUFFER MSG COUNT
DESCRIPTOR 1
BUFFER
M
TRANSMIT BUFFER
BUFFER
0
BUFFER
1
DESCRIPTOR N
BUFFER
N
13/56
Page 14
MK50H27
SECTION4 PROGRAMMINGSPECIFICATION
This section defines the Control and Status Reg­isters and the memory data structures required to program the MK50H27.
4.1 Control and StatusRegisters
There are six Control and Status Registers (CSR’s) resident within the MK50H27. The CSR’s are accessed through two bus address­able ports, an address port (RAP), and a data port (RDP), thus requiring only two locations in the system memoryor I/O map.
4.1.1.1 Register Address Port (RAP)
15141
1
3
2
1
1 1
0
0
9
00000000
4.1.1 AccessingtheControl& StatusRegisters The CSR’s are read (or written) in a two step op-
eration.The address of theCSR is written into the address port (RAP) during a bus slave transac­tion. During a subsequentbus slave transaction, the data being read from (or written into) the data port (RDP) is read from (or written into) the CSR selected in theRAP. Once written, the address in RAP remains unchanged until rewritten or upon a bus reset. A control I/O pin (ADR)is provided to distinguishthe addressport fromthe data port.
ADR Port
L RegisterData Port (RDP) H RegisterAddressPort (RAP)
0
0
7
8
0
0
5
6
0
0
3
4
0
0 2
0
1
0
H B M
000
8
CSR
<2:0>
B
Y
T
E
BIT NAME DESCRIPTION
15:08 RESERVED Must be written as zeroes
07 BM8 When set, places chip into 8 bit mode. CSR’s, Init Block, and data transfers are all8 bit
06:04 RESERVED Must be written as zeroes 03:01 CS3<2:0> CSR address select bits. READ/WRITE. Selects the CSR to be accessed through the
00 HBYTE Determines which byte is addressed for 8 bit mode. If set,the high byte of the register
14/56
transfers; this provides compatibility with 8 bitmicroprocessors. When clear, all transfers are 16 bit transfers. This bitmust be setto the same valueeach time it is written, changing this bitduring normal operation will achieve unexpected results. BM8 is READ/WRITE and cleared on Bus RESET.
RDP. RAP is cleared by Bus RESET.
CSR<2:0> CSR
0 CSR0 1 CSR1 2 CSR2 3 CSR3 4 CSR4 5 CSR5
referred to by CSR<2:0> is addressed, otherwisethe lowbyte is addressed. This bit is only meaningfulin 8 bit mode and must be writtenas zero if BM8=0. HBYTE is READ/WRITE and cleared on bus reset.
Page 15
4.1.1.2 Register Data Port (RDP)
MK50H27
1
1
5
4
121
1 3
1
0
0
0
06050
0
1
9
8
7
0
0
010
3
4
2
0
CSR DATA
BIT NAME DESCRIPTION
15:00 CSR DATA Writing data to the RDP loads data into the CSR selectedby RAP. Reading the data from
RDP reads the data from the CSR selected in RAP.
4.1.2 Control and StatusRegister Definition
4.1.2.1 Controland Status Register 0 (CSR0)
RAP<3:1> = 0
15141
P
T
O
D
F
M
F
D
1
3
D T X
1
2
T
D
X
R
O
X
N
0
0
9
R
I
X
N
O
E
N
A
1
1
0
0
7
8
M
I
E
N
R
T
R
R
0 6
M I
S S
0 5
R O R
0
0
3
4
P
T
I
U
N
R
T
0
0 2
T I
N T
0
1
0
R I
0
N T
BIT NAME DESCRIPTION
15 TDMD TRANSMITDEMAND,when set,causesMK50H27 to access the
Transmit Descriptor Ring without waiting for the transmit polltime inter­val to elapse. TDMDneed not be set to transmit a MSU, it merelyhas­tens MK50H27’s response to a Transmit Descriptor Ring entry inser­tion by the host. TDMD is Write With ONE ONLY and cleared by the microcode after it is used. It may read as a ”1” for a shorttime after it is written because the microcode may have been busy when TDMD was set. It is also cleared by Bus RESET. Writing a ”0” in this bit has no effect.
14 POFF POFF,when set, indicates thatMK50H27is operatingin the PowerOff
phase of operation. All external activity is disabled and internal logic is reset. MK50H27 remains inactive except for primitive processing until a Power On primitive is issued. POFF IS READONLY and set by Bus RESETor a PowerOff primitive. Writing to this bithas no effect.
13 DTX Transmitterring disable preventsthe MK50H27from furtheraccess to
the Transmitter Descriptor Ring and terminates transmitter polling. No transmissions are attempted after finishing transmission of any signal unit in transmission at the time of DTX being set. TXON acknow­ledgeschanges to DTX, see below. DTX is READ/WRITE.
15/56
Page 16
MK50H27
4.1.2.1 Controland Status Register 0 (CSR0)
BIT NAME DESCRIPTION
12 DRX Disablethe Receiverprevents the MK50H27from furtheraccess to
the Receiver Descriptor Ring. No received signal units are accepted after finishing reception of any signal unit in reception at the time of DRX being set. RXON acknowledges changes to DRX, see be­low. DRX is READ/WRITE.
11 TXON TRANSMITTERON indicates that the transmitring accessis enabled.
TXON is set as the Power On primitive is issued if the DTX bit is ”0” or afterwardas DTX is cleared. TXON iscleared upon recognition of DTX being set, by sending a Power Off primitive in CSR1, or by a Bus RESET. If TXON is clear, the host may modify the Transmit Descriptor Ring entries regardless of the state of the OWNA bits. TXON is READONLY; writing to this bit has no effect.
10 RXON RECEIVERON indicates that the receive ring access is enabled.
RXON is set as the Power On primitive is issued if DRX=0, or after­ward as DRX is cleared. RXONis cleared upon recognition of DRX being set, by sending a Power Off primitive in CSR1, or by a Bus RESET. RXONis READ ONLY;writing to thisbit has noeffect.
09 INEA INTERRUPTENABLEallows theINTRI/O pin to be driven low when
the InterruptFlag is set. If INEA = 1 and INTR = 1 the INTR I/Opin will be low. If INEA = 0 the INTR I/O pin will be high, regardless of the state of the Interrupt Flag. INEA is READ/WRITE set by writing a ”1” into this bit and is clearedby writinga ”0” into this bit, by Bus RE­SET, or while in the Power Offphase. INEA may not be set while in the Power Off phase.
08 INTR INTERRUPTFLAG indicates thatone or more of the followinginterrupt
causing conditionshas occurred: MISS, MERR, RINT, TINT, PINT. If INEA = 1 and INTR = 1 the INTR I/O pin will be low. INTR is READ ONLY, writing this bit has no effect. INTR is cleared as the specific interrupting condition bits are cleared. INTR is also cleared by Bus RESETor by issuinga PowerOff primitive.
07 MERR MEMORYERROR is set when the MK50H27is the BusMaster and
READY has not been asserted within 256 SYSCLKs (25.6 usec @ 10MHz) after asserting the addresson theDAL lines. When a Mem­ory Error is detected, the MK50H27 releases the bus, the receiver and transmitterare turned off, and an interrupt is generatedif INEA=
1. MERRis READ/CLEARONLY and is set by the chip and clearedby writing a ”1” into the bit. Writing a ”0” has no effect. It is cleared by Bus RESET or byissuing a Power Off primitive.
06 MISS MISSEDMSU is set when the receiverloses a MSU becauseit does
not own a receive bufferindicatingloss of data. WhenMISS is set, an interrupt will be generated if INEA = 1. MISS is READ/CLEAR ONLY and is set by MK50H27and cleared by writing a ”1” into the bit. Writ­ing a ”0” has no effect. It is also cleared by Bus RESET or by issu­ing a Power Off primitive.
05 ROR RECEIVER OVERRUNindicatesthat theReceiver FIFO was full When
the receiver wasready to inputdata to the ReceiverFIFO. The sig­nal unit being received is lost but is recoverableaccording to the Link Level protocol. When ROR is set, an interrupt is generatedif INEA =
1. ROR is READ/CLEAR ONLY and is set byMK50H27 and cleared by writing a ”1” into the bit. Writing a ”0” has no effect. It is also cleared by Bus RESETor by issuinga Power Off primitive.
16/56
Page 17
MK50H27
04 TUR TRANSMITTERUNDERRUN indicates that the MK50H27 has aborted
a signal unit since data was late from memory. This condition is reached when the transmitter and transmitter FIFO both become empty while transmitting a signal unit. When TUR is set, an interrupt is generatedif INEA = 1. TUR isREAD/CLEAR ONLYand is set by MK50H27 and cleared by writing a ”1” into the bit. Writing a ”0” has no effect. It is alsocleared by RESETor by issuing a PowerOff primi­tive.
03 PINT PRIMITIVEINTERRUPTis setafterthe chip updates theprimitive
register to issue a providerprimitive. When PINT is set, an interrupt is generated if INEA =1. PINT is READ/CLEAR ONLY and is set by MK50H27and clearedby writing a ”1” intothe bit. Writing a ”0”has no effect. Itisalso clearedbyRESETor by issuinga PowerOff primitive.
02 TINT TRANSMITTERINTERRUPT is set after the chip updatesan entry
in the Transmit Descriptor Ring. When TINT is set, an interrupt is generated if INEA =1. TINT is READ/CLEAR ONLY and is set by MK50H27 and clearedby writing a ”1” into thebit. Writinga ”0” hasno effect. It is also clearedby RESETor by issuinga PowerOffprimitive.
01 RINT RECEIVERINTERRUPT is set afterthe MK50H27 updates an entry in
the ReceiveDescriptor Ring. When RINT is set,an interrupt is gener­ated if INEA =1. RINT is READ/CLEARONLYand is set by MK50H27 and cleared by writing a ”1” into the bit. Writing a ”0” has no effect. It iscleared by Bus RESET or by issuinga Power Offprimitive.
00 0 This bit isREAD ONLYand will always read as a zero.
4.1.2.2 Controland Status Register 1 (CSR1)
1
1
5
4
U
U
E
A
R
V
R
121
1 3
1
UPRIM <5:0>
1
0
0
0
06050
0
9
8
7 P
P
L
A
O
V
S
4
0
0
3
2
PPRIM <5:0>
010
0
T
RAP <3:1> = 1
BIT NAME DESCRIPTION
15 UERR USER PRIMITIVEERROR is setby the MK50H27when a primitive is
issuedby the user which is in conflictwith thecurrent status of the link. UERR is READ/CLEARONLY and is set by MK50H27 and cleared by writing a ”1” into the bit. Writing a ”0” in this bit has no effect. It is also cleared by BusRESET.
14 UAV USER PRIMITIVEAVAILABLE is setby the user whena primitive is
written into UPRIM. It is cleared by the MK50H27 after the primitive has been processed. This bitis also cleared by a BusRESET.
13:08 UPRIM USERPRIMITIVEis writtenby the user,in conjunction with setting
UAV, to control the MK50H27 link procedures. The following primitives are available:
0 PowerOff: causes the MK50H27 to enterthe Power Off state. All DMA
activity ceases, the transmitter transmits all ones, and all received data is ignored. Valid in all states exceptPower Off.
1 PowerOn: valid onlyin the Power Offphase and must be issuedafter
the Init primitiveand prior to the Startprimitive. Causes the MK50H27 to exit the Power Off phase and to enter the Out of Servicephase and
17/56
Page 18
MK50H27
18/56
to continuouslytransmit SIOS signal units.
2 Init:instructsthe MK50H27to read the initializationblock from memory.
Valid only in the PowerOff mode.
3 Trans:instructs the MK50H27 to enter theHDLC Transparentphase of
operation. Data frames are transmitted and received out of the de­scriptor rings but no protocolprocessing is done. Address and Control fields are not prepended to the frames, but CK processing works normally. HDLC Transparent Mode may be exited only with a Power Off primitive or by a bus RESET. Valid only in the Power Off phase.
4 StatusRequest:instructs the MK50H27 to writethe current link status
into the STATUS BUFFER. Valid in all states, but only after the Init primitive has been previouslyissued.
5 Self-TestRequest: instructs the MK50H27to performthe builtin
internal self test. Validonly in thePower Off phase. Seesection 4.4.8 for theself test procedure.
6 Stop: forces allDMA activity to cease. Causesthe MK50H27to enter the
Out of Service phase and tocontinuously transmit SIOS signal units. Valid in all phases exceptthe PowerOff andOutof Servicephase.
7 Start:initial alignment begins andthe descriptor ringsare reset. Start
should only be issued when in the Out of Service phase, after the in­itializationblock has beenread.
8 LocalProcessorOutage: issued to the MK50H27 to indicatethat level
3 or higher levels cannot accept signalling messages. All subsequent MSU’s are ignored by the MK50H27 & SIPO signal units are transmit­ted.
9 LocalProcessorRecovered: indicatesend of Local ProcessorOutage
condition. The MK50H27 mayresume transmittingFISUs and MSUs.
10 Emergency: indicatesthat the emergency proving periodis to be used
for initialalignment.
11 EmergencyCeases: Indicates that thenormal proving period is to be
used forinitial alignment (this is the defaultprovingperiod).
12 Retrieve BSNT: causesthe entire STATUS BUFFERto be updated
including the last transmitted Backward Sequence Number (BSNT). When completed, PPRIM 18 will be issued.
13 Retrieval request and FSNC: indicatesthat the FSNC has been
written to the Status Buffer and requeststhe MK50H27to update the retransmission buffer. The MK50H27 should then place the up­dated retransmissionindex into the Status Buffer.
14 Congestion:causes the MK50H27 to enter a congestionstate and send
SIB signal units at T5 timer interval. It is recommendedthat the DRX bit in CSR0 also be set when issuing this primitive so that MSUs can­not be received during congestion.
15 Clear Congestion: Thisprimitiveshould be usedonly to clear the
Congestion state caused by UPRIM 14. If DRX is set, it should be cleared just prior to issuing this primitive. If congestion state was en­tered due to a MISSed signal unit then the congestionstate should be cleared by clearingMISS.
16 Start Sending SIOS: If JSS7E=1,this primitive can be usedto resume
sending of SIOS signal units, stopped by issuance of UPRIM 17. Valid only in Out Of Service phase whenJSS7E=1 (CSR2).
17 Stop SendingSIOS: If JSS7E=1,this primitive can be usedto stopthe
transmission of SIOS signal units while the MK50H27 is in the Out of Service phase.
TTC specification JT-Q703 requires that transmission of SIOS stop someperiod of time after goingOut Of Service;this primi­tive provides the mechanism for meeting that requiremnt. Transmis-
Page 19
MK50H27
sion of SIOS can be resumed by issuing UPRIM 16 described above. Valid only in Out Of Service phasewhen JSS7E=1(CSR2).
07 PLOST PROVIDERPRIMITIVE LOST is set by MK50H27 when a provider
primitivecannot be issued becausethe PAVbit is stillset from the pre­vious provider primitive. PLOST is cleared when PAV is cleared and by a Bus RESET. Writing to this bit has noaffect.
06 PAV PROVIDERPRIMITIVEAVAILABLEis set by the MK50H27 when a
new provider primitive has been placed in PPRIM. PPRIM is READ/CLEARONLY and is set by thechip and clearedby writing a ”1” to the bit or by Bus RESET.Under normal operation the hostshould clear thePAV bit after PPRIMis read.
05:00 PPRIM PROVIDERPRIMITIVE is written by theMK50H27, in conjunction
with setting the PAV bit, to inform the user of link control condi­tions. Valid ProviderPrimitives are as follows:
0 InitConfirmation: indicates that the initialization has completed. 1 In Service:indicates that alignmenthas completedsuccessfully. 2 In Service Yellow: indicatesalignmentcompleted succesfullywith CCITT
Yellow Book definitions for SINs & SIEs (SF = 9 & 10 respectively). This primitive will occur only if enabledby RYEL=1in Protocol Options.
3 TransmitClock Watchdog TimerExpired: indicates that the watchdog
timer for TCLK has expired due to no transitionon TCLKfor more than the number of SYSCLKcycles as selectedby CSR4<15:14>.
4 ReceiveClock WatchdogTimer Expired: indicates that thewatchdog
timer for RCLK hasexpired due to no transition on RCLK for more than the number of SYSCLKcycles as selectedby CSR4<13:12>.
5 ReceivedSU Timer timeout: indicatesthat no signal units have been
received within the previous 32xTP time (where TP is the poll timer). This primitive is only issuedif RSUTE=1(CSR2<12>).
8 AlignmentOut of Service: indicates that a transferto Out of Service
phase has occured, due to an alignment failure. Alignment will fail if AERM is exceeded, timerT2 times out, or timer T3 times out.
9 LSSUOutof Service:indicates that a transfer to theOut of Service
phase has occured, due to a receivedLSSU.
10 T1 Out of Service: indicates that a transfer to theOut of Service
phase has occured, dueto a timer T1 timeout.
11 Transmit Out of Service: indicatesthat a transferto the Out of
Service phase has occured, due to a transmitlink failure. The trans­mit link willfail if timersT6 or T7 time out.
12 ReceiveOut of Service: indicatesthat a transferto the Out of Service
phase has occured due to receivelink failure. A receive linkfailure will occur when morethan 2 out of 3 signal unitshave a FIBor BSN error.
13 SUERMOut of Service:indicates that a transfer to the Out of Service
phase has occured, due to SUERM beingexceeded.
16 Remote Processor Outage: indicates that a SIPO has beenreceived
indicating that a remote processoroutage conditionhasoccured.
17 Remote Processor Outage Recovered: an FISUor an MSUhas been
received since remote processoroutage condition has been reported.
18 Receivedmessage BSNT:indicates that the MK50H27has written the
BSNT to the Status Buffer as requested by UPRIM12.
19 Retrieval complete: retrievalrequest and FSNC completedsuccessfully.
The pointer to the retransmissionbufferis available in STATUSbuffer.
20 Remote Processor Busy: an SIB has been received indicating that
the remote nodehas enteredinto congestion.
21 RemoteProcessorBusy Recovered: theremotenodehas acknowledged
19/56
Page 20
MK50H27
the receipt of an MSU after having entered congestion. This primitive indicatesthat theremote nodecongestion has abated.
1
1
5
4
C
E
Y
S
C
E
L
N
E
4.1.2.3 Controland Status Register 2 (CSR2)
RAP<3:1>= 2
BIT NAME DESCRIPTION
15 CYCLE Setting thisbit selectsa shorterDMAcycle(5 vs6 SYSCLKsforbursting 14 ESEN ExtendedScaler Enable. Setting this bit enablesthe use of the 16-bit
13 0 Reserved, must be writtenas zeroes. 12 RSUTE ReceivedSU TimerEnable. Setting thisbit enablesa timer fordetecting
11:09 0 Reserved, must be written as zeroes. 08 JSS7E JapaneseSS7 Enable. Settingthisbit enablesTTCJT-Q703compliance.
121
1 3
R S U T E
1
0
0
0
06050
0
1
or 5 vs 7 SYSCLKsfor single DMA). See Figures 7a and 8afor details.
timer pre-scaler at IADR+24 rather than the 8-bit Scaler at IADR+02. Using the 16-bit Scaler allows longer timer values at higher SYSCLK rates. Set ESEN=0for backwardcompatibility with the MK50H27.
more than 32xTP time between received Signal Units. If RSUTE=1, PPRIM=5 will be issued upon expiry of the Received SU Timer. A typi­cal use for RSUTis to detectbreakingof the serial dataconnection.
When JSS7E=1the MK50H27 will align using only SIEs, timersTf, Ts, To, Ta, and Te will be activatedappropriately, and the SUERM will act in accordance with JT-Q703 requiring interchanging the location of the T and D fields in the InitializationBlock.
9
8
7
J S S 7 E
IADR<23:16>0 000
0
0
010
3
4
2
0
If JSS7E=1the MK50H27 will
NOT comply with all CCITT/ITU,ANSI, or AT&Tspecifications.
07:00 IADR The high order8 bits of the address of the first word (lowest address)
in the Initialization Block. IADR must be written by the Host prior to issuingan INIT primitive.
1
1
5
4
4.1.2.4 Controland Status Register 3 (CSR3)
RAP<3:1>= 3
BIT NAME DESCRIPTION
15:00 IADR The low order 16 bits of the addressof the firstword (lowest address)
20/56
1 3
1 2
1 0
0 9
0 8
0 7
0 6
0 5
0 4
0 3
0 2
0 1
0 0
0IADR <15:00>
1 1
in the Initialization Block. Must be written by the Host prior to issu­ing an INIT primitive. The Initialization block must begin on a word boundary.
Page 21
4.1.2.5 Controland Status Register 4 (CSR4)
MK50H27
1 5
X W D 1
1 4
X W D 0
R W D 1
121
1 3
R W D 0
1
0
0
0
06050
0
1
9
8
7
B
F
00
W M
B
B A E
S
U
W
S
P
R
C
0
0
010
3
4 B
U R S T
2 B
1
S
:
W
0
P D
0
A
B
C
C
O
O
N
N
CSR4 allowsredefinition of the busmasterinterface. RAP<3:1>= 4
BIT NAME DESCRIPTION
15:12 XWD0/1, RWD0/1 Thesebits enableand determine the timervalues for the Transmit and
Receive Watchdog Timers. These timers are independently program­mable and are reset by any transition on the TCLK and RCLK pins re­spectively. The Watchdog timers will expire after approximately Wn SYSCLK cycles (if not reset by transition on TCLK / RCLK pins) and Provider Primitive 3 or 4 will be issued. The followingtable shows the selectionsfor Wn:
XWD1/RWD1 XWD0/RWD0 Wn
0 0 Disabled 012 102 112
18 19 20
11:10 0 Reserved,mustbe writtenas zero. 09:08 FWM Thesebits definethe FIFOwatermarks. FIFO watermarks prevent
the MK50H27 from performing DMA transfers to/from the data buffers until the FIFOs contain a minimum amount of data or space for data. For receive data, data will only be transferredto the databuffers after theFIFO has at least N 16-bit words or an end of signal unit has been reached. Conversely, for transmit data, data will only be transferred from the data buffers when the transmit FIFO has room for atleast N words of data. N is defined as follows:
FWM<1:0> N
11 1word 10* 9 words 01 17words 00 25words
* Suggestedsetting
07 BAE BusAddress Enable: if BAE is set then the A23-A20 pins are driven
by the MK50H27 constantly providingthe ability to use A23-A20 for memory bus selection. If clear, A23-A20 behaveidentically to A19­A16.
06 BUSR If this bit is set,pin 15 becomes input BUSREL. If thisbit is clear
then pin 15 is either BM0 or BYTE depending on bit 00. For more information see the description for pin 15 in this document.BUSR is READ/WRITE and cleared on bus Reset.
05 BSWPC This bit determines the byte ordering of all ”non-data”DMA transfers.
21/56
Page 22
MK50H27
”Non-data DMA transfers refers to any DMA transfers that access memory other than the data buffers themselves. This includes the Initialization Block, Descriptors, and Status Buffer. It has no effect on data DMA transfers. BSWPCallows the MK50H27to operate with memory organizations that have bits 07:00 at even addresses and with bits 15:08 at odd addressses or vice versa. BSWPC is Read/Write and cleared by BUSRESET. With BSWPC= 1:
Address Address
XX1 0 . . . 7
8...15XX1
This memory organizationis used with the 8086 family of microproces­sors. With BSWPC = 0:
Address Address
8
...
15XX0
XX1 0 . . . 7
This memory organization is used with the 68000 and the Z8000 microprocessors.
04:03 BURST This fielddeterminesthe maximum numberof data transfers
performed each time control of the host bus is obtained. BURST is READ/WRITE and clearedon bus Reset.
BURST <1:0> 8 bit mode 16 bit mode
00 2 bytes 1 words
10* 16 bytes 8 words
01 unlimited unlimited
* Suggestedsetting
02 BSWPD This bit determines the byte ordering of all data DMA transfers.
Data transfers are those to or from a data buffer. BSWPD has no ef­fect on non-data transfers. The effectof BSWPD on data transfers is the same as that of BSWPC on non-data transfers (see above). For most applications, including most 68000 based sys­tems, this bit should beset.
01 ACON ALE CONTROL defines theassertivestate of pin 18 when the
MK50H27 is a Bus Master. ACON is READ/ WRITE and cleared by Bus RESET.
ACON PIN18 NAME
0 ASSERTED HIGH ALE 1 ASSERTED LOW AS
00 BCON BYTECONTROL redefinesthe Byte Mask and Hold I/O pins.
BCON is READ/WRITE and clearedby Bus RESET.
BCON PIN16 PIN15 PIN17
0 BM1 BM0 HOLD 1 BUSAKO BYTE BUSRQ
22/56
Page 23
4.1.2.6 Controland Status Register 5 (CSR5)
CSR5 facilitatescontrol and monitoringof modem controls. RAP<3:1>= 5
MK50H27
1
1
5
4
000000000
0
121
1 3
1
0
0
0
06050
0
1
9
8
7
X E D G E
4 R
T S E N
0 3
D T R D
0 2
D S R D
010
D T R
0
D S R
BIT NAME DESCRIPTION
15:05 0 Reserved, must be written as zeroes. 4 RTSEN RTS/CTSENABLE is a READ/WRITE bit usedto configure pins 26
and 30. If this bit is set, pin 26 becomes RTS and pin 30 becomes CTS. RTS is driven low whenever the MK50H27 has data to trans­mit and is kept low during transmission. RTS will be driven high after the closing flag of a signal unit is transmited if either no other frames are in the FIFO or if the minimum signal unit spacing is higher than 2 (see Mode Register). The MK50H27 will not begin transmissionand TD will remain HIGH if CTS is high. If RTSEN = 0 then pins 26 and 30 become programmable I/O pins DTR and DSR. The direction and behavior of DSRand DTR are controlledby the followingbits.
3 DTRD DTR DIRECTIONis a READ/WRITEbit used to control the direction
of the DTR pin. If DTRD = 0, the DTR pin becomes an input pin and the DTR bit reflects the currentvalue of the pin; if DTRD= 1, the DTR pin isan output pin controlled by the DTR bit below.
2 DSRD DSR DIRECTIONis a READ/WRITEbit used to control the direction
of the DSR pin. If DSRD = 0, the DSR pin becomes an input pin and the DSR bit reflects the current value of the pin; if DSRD = 1, the DSR pin is an output pin controlled by the DSR bit below.
1 DTR DATA TERMINAL READY is usedto control or observethe DTRI/O
pin depending on the value of DTRD. If DTRD = 0, this bit be­comes READ ONLY and alwaysequals the currentvalue of the DTR pin. If DTRD = 1, this bit becomes READ/WRITE and any value writtento this bit appears on the DTR pin.
0 DSR DATASET READY is used to control or observe the DSR I/O
pin depending on the value of DSRD. If DSRD = 0, this bit be­comes READ ONLY and always equalsthe currentvalue ofthe DSR pin. If DSRD = 1 this bit becomes READ/WRITE and any value writtento this bit appears on the DSR pin.
23/56
Page 24
MK50H27
4.2 Initialization Block
MK50H27 initialization includes the reading of the initialization block in memory to obtain the operating parameters.The InitializationBlock is definedbelow. Upon receiving an Init primitive, por­tions of the Initializationblock are read by the MK50H27. The remainder of theInitialization block will be read as needed by the MK50H27.
Figure 4: InitializationBlock
HIGHER ADDR
MODEBASE ADDRESS
COUNTER / TIMER PERIODS
PROTOCOL PARAMETERS
RLEN - RDRA <23:16>
RDRA <15:00>
TLEN - TDRA <23:16>
TDRA <15:00>
STATUS BUFFER ADDRESS
STATISTICS
IADR+00 IADR+02
IADR+26
IADR+36 IADR+38 IADR+40 IADR+42 IADR+44
IADR+50
THRU
IADR+198
24/56
Page 25
4.2.1 Mode Register
The Mode Register allows alteration of the MK50H27’s operatingparameters.
IADR + 00
15141
MFS
<4:0>
1
3
1
2
0
0
9
E
E
X
X
T
T
C
A
F
F
1
1
0
0
7
8 D
E
A
X
C
T
E
C
0
0
5
6 E
D
X
R
T
C
A
K
0
0
3
4 D
C
T
K
C
S
K
0 2
LBACK <2:0>
0
0
1
0
BIT NAME DESCRIPTION
15:11 MFS<4:0> MinimumFrame Spacingdefines the minimum number of flag
sequences transmitted between adjacent frames transmitted by the MK50H27. This only affects frames transmitted by the MK50H27 and does not restrict the spacing of the frames received by the MK50H27. When using RTS/CTS control this field defines the number of flags transmitted at the beginning of the frame after CTS is driven low (minus one for the trailing flag). See the fol­lowing table for encodingof thisfield.
NUMBER OF FLAGS MFS<4:0> NUMBER OF FLAGS MFS<4:0>
32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62
10 12 14 16 18 20 22 24 26 28 30
1 2 4 6 8
1 0 2 4 9
18
5 11 22 12 25 19
7 15 31 30
MK50H27
28 24 17
3
6 13 27 23 14 29 26 21 10 20
8 16
10 EXTCF ExtendedControl Force. Mustbe reset to zero for both SS7 and HDLC
transparentmode
09 EXTAF ExtendedAddress Force. If setalong withEXTA, thereceiverwill
assume the address to be two otets long regardless of the first bit of the address. See EXTA below. Must beset to a 1 for SS7 operation. Must be reset to a zeroforHDLC transparent mode.
08 DACE DisableAddressand Control field Extraction.DACE shouldbe written
with ”0” for normal SS7 operationand with ”1” for HDLC Transparent mode. The MK50H27 however, has a feature to allow shifting of the alignment of the data in the MSU buffers. If DACE is set to ”1” for SS7 mode, the received LI willbe placedin the first byte of the receivebuff­er, followed by the SIOin the second byte and so on. If DACE = 1, on transmit the LI must be placed in the first byte of the transmit buffer rather than in the SUL fieldof the TransmitDescriptor Entry (TMD2).
07 EXTC ExtendedControl Field. Must be reset to zero forboth SS7 and HDLC
transparentmode.
06 EXTA Extended address Field. Must be setto a 1 for SS7operation. Must
be resetto a zerofor HDLCtransparent mode.
25/56
Page 26
MK50H27
05 DRCK Disable Receiver CK. When DRCK= 0, the receiver will extract
and check the CK field at the end of each signal unit. When DRCK = 1, thereceiver continuesto extractthe last 16 or 32 bits of each signal unit, depending on CKS, but no check is performed to determine whether the CK is correct. The CK is not stored into the Receive buffer.
04 DTCK Disable TransmitterCK. When DTCK = 0, the transmitter will
generate and append the CK to each signal unit. When DTCK = 1, the CK logic is disabled, and no CK is generated with transmittedsig­nal units. Setting DTCK=1 is useful in loopback testing for check­ing the abilityof the receiverto detect an incorrectCK.
03 CKS CK Select. WhenCKS = 1, the 16 bitCK is selected otherwise the
32 bitCK is used.
02:00 LBACK LoopbackControlputs theMK50H27 into one of severalloopback
configurations.
LBACK DESCRIPTION
0 Normal operation. No loopback. 4 Simple loopback.Receive data and clock are driven internally by transmit dataand clock.
5 Clockless loopback. Receive datais driven internally by transmit data.Transmit andreceive
6 Silent loopback. Same as simple loopback with td pin forced to allones. 7 Silent clockless loopback. Combination of Silent andClockless loopbacks. Receive data is
Transmit clock must be supplied externally
clocks are driven by SYSCLK dividedby 8.
driven internallyby transmit data, transmit and receive clocks are driven by SYSCLK divided by 8. The TD pin is forced to all ones.
4.2.2 Timers
There are ten independent counter-timers defined in SS7. The upper 8 bits of IADR+02 are used as a scaler for T1 throughT7, and TP. The scaler is driven by a clock which is1/32 of SYSCLK. N1 is the maximum number of signalunits allowed for retransmission(transmission window size)and N2 is the maximum number of bytesallowed for retransmission. Thevalue for N1 is set to 128.
The Hostwill writethe period of N2, T1-T7, and TP into the InitializationBlock.
TIMER DESCRIPTION
SCALER TIMER PRESCALER. Timers T1-T7 and TP are scaled by this
number. The prescaler is incremented once every 32 system clock pulses. When it reaches zero the timers are incremented and the prescaler is reset. This field is interpreted as the two’s comple­ment of the prescaler period. The MK50H27multiplies this value by 16 when it is read into the device. Note: a prescale value of one gives the smallest amount of scaling to the timers (512 clock pulses), zero gives the largest (131584 clock pulses).
N2 Octet window size. N2 gives the maximum number of MSU
octets allowedfor retransmission. N2 includes the opening and clos­ing flags, BSN/BIB, FSN/FIB, LI, and the CK octets. This value is expressed as a positiveinteger. Bits <14:8> of IADR + 02 represent the most significantbits of N2.
T1 ALIGNEDREADY TIMER PERIOD. T1 determines the maximum
time the MK50H27 will stay in the ALIGNED READY state before sig­nalling link failure. Representedas two’s complement.
T2 NOTALIGNED TIMER PERIOD. T2 determines the maximum time
the MK50H27 will wait in the NOT ALIGNED state before signalling link failure. Representedas two’scomplement.
26/56
Page 27
MK50H27
T3 ALIGNEDTIMEOUT TIMER PERIOD. T3 determinesthe maximum
time the MK50H27will wait in the ALIGNEDstate before signalling link failure. Representedas two’scomplement.
T4n NORMALPROVING PERIOD. T4n determinesthe lengthof the
normal proving period as defined in CCITT Q.703. Represented as two’s complement.
T4e EMERGENCYPROVINGPERIOD. T4e determinesthe length of the
emergency proving period as defined in CCITT Q.703. Represented as two’scomplement.
T5 BUSY TRANSMIT PERIOD. T5 determines theamount of time
the MK50H27 will wait between transmissions of status indication ”B” while in congestion state. Representedas two’s complement.
T6 EXCESSIVEBUSY TIMER PERIOD. T6 determinesthe amount of
time the MK50H27 will allow a remote site to remain in the congested state before signallinglinkfailure. Representedas two’s complement.
T7 EXCESSIVE ACKNOWLEDGE TIMER PERIOD. T7 determines the
maximum amount of time the MK50H27 will wait for an expected acknowledgement of an MSU before signalling link failure. Repre­sented as two’scomplement.
TP TRANSMITPOLLING PERIOD. This scaled timer determines the
length of time between transmit signal unit checks. Unless TDMD (see CSR0) is set or a signal unit is receivedon the link, no at­tempt to transmit a signal unit in the transmit descriptor ring is made until TP expires. At TP expiration all transmit signal units in the transmitdescriptorring are sent.Representedas two’s complement.
RESERVED/16-bitScaler Canbe programmedas all zeroesforcompatibliitywithexistingMK50H27
applications. However, if ESEN=1 (CSR2<14>), then this field is de­fined as a 16-bit scaler for all of the timers, and it will be used instead of the Scaler at IADR+02. This prescaleris incremented once every 32 system clock pulses. When it reaches zero the timers are incre­mented and the prescaler is reset. This field is interpreted as the two’s complement of the prescaler period.This 16-bit scaleris NOT multipliedby 16 when read into the MK50H27.
Timers For OptionalTTC JT-Q703Compliance
Tf FISUSendingIntervaltimer. Thistimer,located at IADR + 144 will
determine the amount of time between transmission of FISUs when in TTC JT-Q703compliant mode (CSR2<08> JSS7E=1). Represented as two’s complement.
Ts SIOS Sending Interval timer. This timer, located at IADR+ 146 will
determine the amount of time between transmission of SIOS signal units when in TTC JT-Q703 compliant mode (CSR2<08> JSS7E=1). Representedas two’s complement.
To SIOSending Interval timer. Thistimer, located at IADR + 148 will
determine the amount of time between transmission of SIOsignal units when in TTC JT-Q703 compliantmode (CSR2<08>JSS7E=1). Repre­sentedas two’scomplement.
Ta SIESending Interval timer. This timer,located at IADR+ 150 will
determine the amount of timebetween transmissionof SIEsignal units when in TTC JT-Q703 compliantmode (CSR2<08>JSS7E=1). Repre­sentedas two’scomplement.
Note: The Tf,Ts, To, & Ta timersare only activeand valid whenJSS7E=1 (CSR2<08>).
27/56
Page 28
MK50H27
IADR + 02
IADR + 04
IADR + 06
IADR + 08
IADR + 10
IADR + 12
IADR + 14
14
0
Counter N2
15
15
15
15
15
15
8
7
SCALER
COUNTER N2
TIMER T1
TIMER T2
TIMER T3
TIMER T4n
TIMER T4e
0
0
0
0
0
0
0
28/56
IADR + 16
IADR + 18
IADR + 20
IADR + 22
IADR + 24
15
TIMER T5
15
TIMER T6
15
TIMER T7
15
TIMER TP
15 0
RESERVED /
16-Bit SCALER (if ESEN=1)
0
0
0
0
Page 29
4.2.3 Protocol Parameters
MK50H27
15
IADR + 26
IADR + 28
15
TM
PO
87
15
IADR + 30
IADR + 32
15
Tin Tie
D
87
14
IADR + 34
PARM DESCRIPTION
PO PROTOCOLOPTIONS. Defines the SS7 protocoloptions to beused.
BIT NAME DEFINITION 00 DBUSY DBUSY = 1:Disablesbusy mechanisms on both transmit and receive.
Missed MSU interrupts(CSR0<06>,MISS) are not affectedby this bit.
01 XYEL XYEL=0: TransmittedSINs and SIEsconformto CCITT
Red/Blue Book definitions (SF = 1 and 2 respectively). XYEL= 1: Transmitted SINs and SIEs conform to CCITT Yellow Book defini­tions (SF = 9 & 10 respectively).
02 RYEL RYEL= 0: Only CCITT Red/BlueBookdefinitions for receivedSINs
and SIEsare accepted. RYEL= 1: Either CCITT Yellow or Red/Blue Book definitions for re­ceivedSINs andSIEs are accepted.
03 RMODE Definesthe retransmissionmethod to be used.
RMODE= 0: specifies Basic ErrorRecovery (BEC). RMODE= 1: specifies Preventive CyclicRedundancy(PCR).
04 BECDOUBLE Providesdoubletransmissionof allMSUs in BEC. All MSU’s
including those sent during negative acknowledgement are transmit­ted twice. If RMODE=0 thenthe following definitionsapply: BECDOUBLE= 0: specifiesnormal BEC. BECDOUBLE= 1: specifiesBEC with doubletransmission. NOTE:BECDOUBLEmust be 0 if RMODE= 1.
05 ERMEN Enablesthe AERMand SUERM error rate monitors.
ERMEN= 0: disablesthe AERMand SUERM. ERMEN= 1: enablesthe AERMand SUERM.
06 OCTEN Enablesoctet counting.
OCTEN= 0: disables octet counting. OCTEN= 1: enablesoctet counting.
07 2/3EN Enables 2/3errored FIB/BSN error monitoring.
2/3EN = 0: disables2/3 error monitoring. 2/3EN = 1: enables2/3errormonitoring.
08 ANSIT6/T7 Selects ANSI or ITUcompliancefor SS7 T6 & T7 timers
ANSIT6/T7=0: T6 & T7 timer operationcomplies with ITU Q.703 ANSIT6/T7=1: T6 & T7 timer operationcomplies with ANSI T1.111.3
15-09 RESERVEDMust be programmedwith all zeroes.
0
m
0
0
0
0
0
29/56
Page 30
MK50H27
T/
TTC D
M PROVING ABORT LIMIT. Number of consecutive abortedproving
D/
TTC T
Tin NORMALAERM THRESHOLD. Numberof signalunit errors that Tie EMERGENCYAERMTHRESHOLD. Number of signalunit errors
m Maximum frame length. Numberof bytesallowedin the information
NOTE: The operationof the SUERM(Signal Unit Error Rate Monitor)is differentbetween CCITT / ITUcompliant
systems and TTC JT-Q703 compliant systems. Although both SUERM schemes operate based upon a leaky bucketprinciple, there are some majordifferencesin their implementation.
For CCITT/ITU Q.703 the SUERMcount is incremented by 1 for each erroredSU received until a thresh­old T (typically 64) is reached, at which time a link failure is declared..For every D (typically 256) good SUs receivedthe SUERMCount, Cs, is decrementedby 1 (not to goless than 0).
For TTC JT-Q703the SUERM countis updated once every monitor time Te (typically 24 ms)regardless of the numberof SUs received during the time Te. If the lastSU received was errored, thenthe SUERM count is incremented by D (typically 16) when Te expires. If the last SU received was good, then the SUERMcount is decremented by 1 (not to go lessthan 0) when Te expires. If the SUERM count should ever reach the threshold T (typically 285), then a link failure is declared. For the MK50H27 the value used fortime Te is the samevalue as programmedfor time Tf(typically24 ms for both).
Due to this difference in SUERM operation, the fields in the MK50H27 Initialization Block that are used for D and T are exchangedif JSS7E=1selectingJapaneseSS7 (TTC JT-Q703 compliance).
SUERMTHRESHOLD. Numberof consecutivesignal units received
in error that will cause an error rate high indication.
When operating in TTC compliant mode (CSR2 JSS7E=1), this field should contain the D value(typically16) used for TTC JT-Q703 SUERM operation.
periods that cause the MK50H27 to return to the OUT-OF-SERVICE state.
SUERM ERROR RATE. The lowest acceptablenumber of signal
units per signal unit error.
When operating in TTC compliant mode (CSR2 JSS7E=1), this field should contain the T SUERM Threshold value (typically 285) used for TTC JT-Q703 SUERM operation.
field should be expressed as a two’scomplement value. cause the abortion of anormal proving period. that causethe abortionof an emergencyproving period.
portion of receivedMSUs beforeoctect countingbegins.
This
30/56
Page 31
4.2.4 Receive Descriptor Ring Pointer
MK50H27
IADR + 36
IADR + 38
15141
0 RLEN 0 0 0 0 RDRA<23:16>
1
3
2
1
1 1
0
0
9
RDRA<15:00> 0
0
0
7
8
0
0
5
6
0
0
3
4
0
0 2
0
1
0
BIT NAME DESCRIPTION
15 0 Reserved, must be written as a zero. 14:12 RLEN RECEIVERING LENGTHis the number of entries in the Receive
DescriptorRing expressed as a powerof two.
RLEN Number of Entries
01 12 24 38 416 532 664 7 128
11:08 0 Reserved, must be written as zeroes. 07:00/15:00 RDRA RECEIVEDESCRIPTOR RING ADDRESS is the base address
(lowest address) of the Receive Descriptor Ring. The Receive De­scriptor Addressmust beginon a word boundary.
4.2.5 Transmit DescriptorRing Pointer
IADR + 40
IADR + 42
15141
0 TLEN 0 0 0 0 TDRA<23:16>
1
3
2
1
1 1
0
0
9
TDRA<15:00> 0
0
0
7
8
0
0
5
6
0
0
3
4
0
0 2
0
1
0
31/56
Page 32
MK50H27
4.2.5 Transmit DescriptorRing Pointer (continued) BIT NAME DESCRIPTION
15 0 Reserved, must be written as a zero. 14:12 TLEN TRANSMITRING LENGTH is the number of entries in the Transmit
Ring expressedas a powerof two.
TLEN Number of Entries
01 12 24 38 416 532 664 7 128
11:08 0 Reserved, must be written as a zero. 07:00/15:00 TDRA TRANSMITDESCRIPTORRING ADDRESS is the base address
(lowest address) of the Transmit Descriptor Ring. The Transmit Descriptor Ring Address must begin on a word boundary.
4.2.6 Status Buffer Address
IADR + 44
IADR + 46
15141
1
1
3
1
2
TWS <15:08>
0
0
0
9
SBA<15:00>
0
0
7
8
0
0
5
6
SBA<23:16>
0
0
3
4
0
0
1
2
BIT NAME DESCRIPTION
15:08 TWS TRANSMITWINDOW SIZEis usedto determinethe maximumnumber
of MSUs that can be transmitted without acknowledgement. For com­pliance with Japanese TTC JT-Q703 this value should typically be 40. For compliance with CCITT/ITU Q.703 this value should be 127.
compatibilitywith the original MK50H27,this field may be programmed with all zeroes, causing the MK50H27to use a defaultvalue of 127 as did theMK50H27.
07:00/15:00 SBA STATUSBUFFER ADDRESSpoints to the status
buffer into which link status information is placed upon the issuance of the Status Requestprimitiveby the HOST. The statusbuffer must be­gin on a wordboundary.
0 0
0
For
32/56
Page 33
4.2.7 Reserved
MK50H27
IADR + 48
15141
1
3
1
2
0
0 9
RESERVED
0
1
0
0
7
8
0
0
5
6
0
0
3
4
0
0 2
0
1
0
BIT NAME DESCRIPTION
15:00 0 Reserved, must be written as zeroes.
4.2.8 Statistics
A significant portion of the initialization buffer is reserved for statistical information collected by the MK50H27. When a statistic is updated,the MK50H27 will read the appropriatestatistic, increment it, and then write it back out to memory. These statisticsare intended for the use of the Host CPU for statistical analysis. The MK50H27 will only increment these counters; it is up to the user to clear and preset these counters. The statisticscollected are:
Memory Address ErrorCounter
IADR + 50 SL Failure - numberof link failuresdue to abnormalFIB/BSN received. IADR + 52 SL Failure - numberof link failuresdue to excessivedelays of
acknowledgementcaused by timer T7 time out. IADR + 54 SL Failure - numberof link failuresdue to excessiveSUERM error rate. IADR + 56 SL Failure - numberof link failuresdue to excessivecongestion
causedby timerT6 timeout. IADR + 58 Number of alignmentfailures due to timersT2 or T3timing out. IADR + 60 Number of alignmentfailues duetoAERM exceeded. IADR + 62 Number of negative acknowledgementsreceived. IADR + 64 Number of Signal Units in error. IADR + 66 - 122 Reserved. Must be programmedas zeroes. IADR + 124 Numberof SIB’s transmitted. IADR + 126 Numberof SIB’s received. IADR + 128 Numberof forced retransmissionscausedby N1. IADR + 130 Numberof forced retransmissionscausedby N2. IADR + 132 Numberof MSU’s retransmitted. IADR + 134 Numberof MSU octetsretransmitted. Thisvalue includes the opening
and closingflags, BSN/BIB, FSN/FIB,LI, and the CK octets. IADR + 136 - 198 Reserved. Mustbe programmedas zeroes.
Note: IADR+144- 151 Used for TTCJT-Q703compliant timersTf, Ts,To, and Ta if JSS7E=1.
See page 27 for details.
33/56
Page 34
MK50H27
4.3 Receiveand Transmit Descriptor Rings
Each descriptorring in memoryis a 4 word entry. The followingis the format of the receive and transmit descriptors.
4.3.1 Receive Message DescriptorEntry
4.3.1.1 Receive Message Descriptor 0 (RMD0)
15141
O
O
W
W
N
N
B
A
1
3
S L F
1
2
E L
PRIN
F
0
0 9
00
1
1
0
0
7
8
0
0
5
6
0
0
3
4
0
0 2
0
1
0
RBADR<23:16>
BIT NAME DESCRIPTION
15 OWNA Whenthis bitis a zeroeither the HOST or the I/O ACCELERATION
PROCESSOR owns this descriptor. When this bit is a one the
MK50H27 owns this descriptor. The chip clears the OWNA bit af-
ter filling the buffer pointedto by the descriptorentry provided a valid
signal unit has been received. The Host sets the OWNA bit after
emptying the buffer. Once the MK50H27, Host, or I/O accelera-
tion processor has relinquished ownership of a buffer, it may not
change any field in the fourwords that comprise the descriptorentry. 14 OWNB This bit determineswhether the Host or the Layer3 I/OProcessorowns
the buffer when OWNA is a zero. The MK50H27 never uses this
bit. This bitis providedto facilitateuse of a Layer 3 I/O processor. 13 SLF Start of Long SignalUnit indicates that this is the firstbuffer used
by MK50H27 for this signal unit. It is used for data chaining buffers.
SLF is set by the MK50H27. NOTE: A ”Long Signal Unit” is any
MSU which needsdata chaining. 12 ELF End of Long Signal Unit indicates that this the last bufferused by
MK50H27 for this signal unit. It is used for data chaining buffers. If
both SLF and ELF were set, the signal unit would fit into one buffer
and nodata chainingwould be required. ELF is setby the MK50H27. 11:08 0 Reserved, must be written as zeroesfor CCITT/ITUcompliant operation. 11:10 PRIN Thesebits indicatethe content of the Priority Indication bits of the
received frame when JSS7E=1(TTC JT-Q703 compliantmode). 07:00 RBADR The High Order 8 addressbits of thebuffer pointed to by thisdescriptor.
This field is written by the Host and unchangedby MK50H27.
34/56
Page 35
4.3.1.2 Receive Message Descriptor 1 (RMD1)
MK50H27
15141
1
3
1
2
0
0
9
1
1
RBADR<15:00>
0
0
7
8
0
0
5
6
0
0
3
4
0
0 2
0
1
0
0
BIT NAME DESCRIPTION
15:01 RBADR The low order 16 address bits of thereceivebuffer pointed to bythis
descriptor. RBADR is written by the Host CPU and unchanged by
MK50H27. The receive buffers mustbe word aligned.
4.3.1.3 Receive Message Descriptor 2 (RMD2)
15141
1
3
1
2
0
0
9
1
1
0
0
7
8
0
0
5
6
0
0
3
4
0
0 2
0
1
0
BCNT<15:00> 01
BIT NAME DESCRIPTION
15:00 BCNT BufferByte Countis thelength of the bufferpointed to by this
descriptor expressed in two’s complement. This field is written to by
the Host and unchanged by MK50H27. The value of BCNT must be
an evennumber.
4.3.1.4 Receive Message Descriptor 3 (RMD3)
15141
1
3
1
2
0
0
9
1
1
0
0
7
8
0
0
5
6
0
0
3
4
0
0 2
0
1
0
MCNT<15:00>
BIT NAME DESCRIPTION
15:00 MCNT MessageByte Count is the length, in bytes, of the received signal
unit. MCNT is valid only when ELF is set to a one. MCNT is written
by MK50H27 and read by the Host. If ELF is set to a zero the entire
buffer has been utilized and the message byte count is given in
BCNT above. The value of this field is expressed in two’s comple-
ment.
35/56
Page 36
MK50H27
4.3.2 Transmit MessageDescriptor Entry
4.3.2.1 Transmit Message Descriptor0 (TMD0)
1 5
O W N A
1 4
O W N B
1 3
S L F
121
E LFPRIN
1
0
0
0
06050
0
1
9
8
00
7
TBADR<23:16>
0
0
010
3
4
2
0
BIT NAME DESCRIPTION
15 OWNA Whenthis bitis a zeroeither the HOST or the SLAVE PROCESSOR
owns thisdescriptor. When this bit is a one the MK50H27 owns this
descriptor. The host sets the OWNA bit after filling the buffer pointed
to by the descriptorentry. TheMK50H27 releases the descriptor after
transmitting the buffer and receiving the proper acknow-
ledgement from the receiver. After the MK50H27, Host, or I/O ac-
celeration processor has relinquishedownershipof a buffer,it may not
change any field in the fourwords that comprise the descriptor entry. 14 OWNB This bit determineswhether the Host or the Layer3 I/OProcessorowns
the buffer when OWNA is a zero. The MK50H27 never uses this
bit. This bitis providedto facilitateuse of a Layer 3 I/O processor. 13 SLF Start of Long SignalUnit indicatesthat this is thefirst bufferused by the
MK50H27 for this signal unit. It is used for data chainingbuffers. SLF
is set by the Host. When not chaining, SLF should be set to a one.
NOTE:A ”Long Signal Unit” is any MSU which needsdata chaining. 12 ELF End of LongSignalUnit indicates that thisis the last bufferused by the
MK50H27 for this signal unit. It is used for data chaining buffers. If
both SLF and ELF were set the signalunit would fit into one buffer
and no data chaining would be required. ELF is set by the Host.
When not chaining, ELF shouldbe setto a one. 11:08 0 Reserved, must be written as zeroesfor CCITT/ITUoperation. 11:10 PRIN Thesebits determinethe contentof the Priority Indicationbits of the
transmittedframewhen JSS7E=1(TTC JT-Q703compliant mode). 07:00 TBADR The High Order 8 addressbits of thebuffer pointedto by this descriptor.
This field is written by the Host and unchangedby MK50H27.
4.3.2.2 Transmit Message Descriptor1 (TMD1)
15141
1
3
1
2
0
0
9
1
1
0
0
7
8
0
0
5
6
0
0
3
4
0
0 2
0
1
0
TBADR<15:00> 0
BIT NAME DESCRIPTION
15:00 TBADR The Low Order 16 addressbits of the bufferpointed to by thisdescriptor
TBADR is written by the Host and unchanged by MK50H27. The
least significant bit is zero since the descriptormust be word aligned.
36/56
Page 37
4.3.2.3 Transmit Message Descriptor2 (TMD2)
MK50H27
15141
1
3
1
2
0
0
9
1
1
0
0
7
8
0
0
5
6
0
0
3
4
0
0 2
0
1
0
SUL<15:00>
BIT NAME DESCRIPTION
15:00 SUL Signal UnitLength. Onlyrequired when in thefirst descriptorof a
signal unit (SLF = 1) and whenDACE = 0. Containsthe length of the
SIF and the SIO fields of the signal unit, in octets, to betransmit-
ted. The value of this field is expressed as a positive integer.
4.3.2.4 Transmit Message Descriptor3 (TMD3)
15141
1
3
1
2
0
0
9
1
1
0
0
7
8
0
0
5
6
0
0
3
4
0
0 2
0
1
0
MCNT<15:00>
BIT NAME DESCRIPTION
15:00 MCNT Message byte count is the length, in octets,of the data contained
in the corresponding buffer. The value of this field is expressed in
two’s complement.
37/56
Page 38
MK50H27
Figure 4a: MK50H27 Status Buffer
SBA+ 00
SBA+ 02
SBA+ 04
SBA+ 06
SBA + 08
15141
B I B T
F I B T
0
1
1
1
3
2
0
1
0
0
8
9
0
7
6
0
0
4
5
B
BSNT
I B R
F
FSNT/FSNC FSNR
I B R
RFSN
TIDX
RTIDX
PHASE
0 3
BSNR
FSNX
RIDX
0
0 2
0
1
0
SBA + 10
SBA + 12
SBA + 14
SBA + 16-48
38/56
TX STATE
FIRMWARE
RELEASE NUMBER
NUMBER OF OCTETS RETRANSMITTED
RX STATE
RESERVED
RESERVED
Page 39
MK50H27
4.3.3 Status Buffer
FIELD DESCRIPTION
BIBT Thevalue of the last BIB transmitted. BSNT The value of the last BSN transmitted. 0 BSNT 127. BIBR Thevalue of the last BIB received. BSNR Thevalue of the last BSN received.
BSNR≤127.
0 FIBT The valueof thelast FIB transmitted.
FSNT/FSNC Under normal operation this is the value of thelast FSN transmitted.
If a UPRIM 13 is to be issued in CSR1 then the FSNC value to be
read by theMK50H27must be placed hereby the host.
0 FSNT/FSNC127. FIBR The valueof thelast FIBreceived. FSNR The valueof thelast FSNreceived. 0≤FSNR≤127. RFSN The value of the oldest unacknowledged FSNT in the retransmission
buffer. 0 RFSN 127. FSNX The value of thenext expected FSN tobe received. 0 FSNX 127. TIDX Index to the descriptor of the current transmissionbuffer. RIDX Index to the descriptor of the current receive buffer. RTIDX Indexto the first descriptor of theretransmissionbuffer. PHASE Indicates the current phase of operationfor the device.
0:PowerOff.
2:Out of Service.
4: Initialalignment not aligned.
5:Initialalignment aligned.
6:Initialalignment proving.
7:Alignmentnot ready.
8:Alignmentready.
9:In Service.
10:Processoroutage.
11:Transparentmode.
12:MemoryError. TX STATE Indicatesthe currentstate of the transmitter.
0: The transmitter is waiting to transmita Signal Unit.
1:A Signal Unit is currently being transmitted.
2:A Signal Unit transmission has completed. RX STATE Indicatesthe currentstate of the receiver.
0:The receiver is expecting the beginningof a SignalUnit.
1:A MSU is being transferred to thereceive buffer(s).
2:End of framedetected.
3:Receivedata beingignored.
4:Bufferchaining requested. FIRMWARERELEASE Indicatesthe releasenumber of the firmwarewithin the MK50H27.
NUMBER NUMBEROF OCTETS This value representsthe lower twobytes of the total number of octets
RETRANSMITTED retransmitted. The number of octets retransmittedstatistics counter
represents the upper two bytes of the total number of octets re-
transmitted. This two byte status buffer value together with the two
byte error counter value provide a 32 bit value for the total num-
ber of octets retransmitted. RESERVED Must be programmedas ZEROES.
39/56
Page 40
MK50H27
4.4 Detailed ProgrammingProcedures
4.4.1 Initialization
The followingprocedure shouldbe followedto intialize the MK50H27:
1. Setupbus control information in CSR4.
2. Setupthe InitializationBlock and DesciptorRings.
3. Loadthe address of the initialization block informationinto CSR’s 2 and 3.
4. Issue the INITprimitive through CSR1 instructingthe MK50H27 to readthe initializationblock pointed to by CSR’s2 and 3.
5. Waitfor theINIT confirmation primitive from the MK50H27.
6. For SS7 operation, issue the PON primitivethrough CSR1, SIOS’swill now be continuouslytransmit­ted. For HDLC Transparentmode, issue the TRANS primitivethrough CSR1, flags will now be conti­nouslytransmitted.
7. Enableinterrupts in CSR0 if desired.
4.4.2 Alignment
1. ForSS7 operationissue the START primitive through CSR1 to begin alignment.
2. Waitfor theIN SERVICEprovider primitive.
4.4.3 Sending Data
Use thefollowingprocedure to senda MSU:
1. Waitfor theOWNA bit of thecurrent transmitdescriptorto be cleared,if it is not already.
2. Fill the buffer associated with the current transmit descriptorwith the data to be sent, or set the de­scriptor buffer addressto any already filled buffer.
3. Repeat steps1 and 2 for the next buffer if chaining is necessary,setting SLF, ELFand MCNT appro­priately.
4. Setthe OWNAbit for eachdescriptor used.
4.4.4 ReceivingData
The followingprocedure shouldbe followedwhen receivinga MSU:
1. Makesure theOWNAbit of the current receivedescriptor is clear.
2. Readdata out of the buffer associated with the current receivedescriptor.
3. Setthe OWNAbit of the current receive descriptor.
4. If the ELF bit of the current receive descriptor is clear, then go on to the next descriptor and repeat the above stepsappendingdata fromeach bufferuntil a descriptor with theELF bit set is reached.
4.4.5 Link Disconnection
The following procedure should be followed to disconnectan establishedlink:
1. For SS7 operation, issue the STOP primitive through CSR1. The MK50H27 will enter the Out of Service state and continuouslytransmit SIOS’s.
4.4.6 Disabling the MK50H27
The followingprocedure shouldbe followedto disablethe MK50H27:
1. Issue the POFF primitive through CSR1. This will disable the MK50H27 from receiving or transmit­ting. The TD pin will be held high while the MK50H27 is in the Power Off state. The POFF bit in CSR0 will be set and interruptswill be disabled. If a link is currently established, then data may be lost.
4.4.7 Re-enablingthe MK50H27
The same procedure should be followed for re-enabling the MK50H27 as was used to initalize upon power up. If the InitializationBlock and the hardware configuration have notchanged, then steps 1,2,3, 4 and 5 of the intializationsequencemay be omitted.
40/56
Page 41
MK50H27
4.4.8 MK50H27 Internal Self Test
The MK50H27 containsan easyto use internal self test designed to test,with a high fault coverage, all of the majorblocks of the device except the DMA controller. It is suggestedthat a loopback test also be performedto morecompletely test the DMA controller.
The followingprocedure shouldbe followedto executethe internal self test:
1. Reset the device usingthe RESET pin.
2. Set bit 04 of CSR4.
3. Issue a SelfTestRequest throughCSR1.
4. Poll CSR1,waiting forthe PAVbit in CSR1to be setby the MK50H27.
5. After the PAV bit is set, read CSR1. The successor failure ofthe test is indicated in the PPRIMfield as follows:
PPRIM RESULT
00 Passed selftest. 17 Failed the reset testof theselftest. 18 Failed the self test in the microcontroller RAM. 19 Failed the self test in the ALU. 20 Failed the self test in the timers. 21 Failed the self test in the transmitterand/or receiver. 22 Failed the self test in the CSR’sand/or bus master.
Otherwise Failed device.
6. If the PAVbit is not set within 75 msec (SYSCLK= 10MHZ), then the MK50H27is unableto respond to the Self TestRequestand will not completesuccessfully.
If the self test passes, then it may be immediately reexecuted from step 3, otherwise re-execution should proceed from step 1.
41/56
Page 42
MK50H27
SECTION5
ELECTRICALSPECIFICATIONS
ABSOLUTE MAXIMUM RATINGS
Symbol Parameter Value Unit
T T
V
P
Stresses above those listed under ”Absolute Maximum Rating” may cause permanent damage to the above device. This is a stress rating only and functional operation of the device at these or any other condition above those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for ex­tended periods may affectdevice reliability.
DC CHARACTERISTICS
T
=0 °Cto70°C, VCC=+5V±5 percent unless otherwise specified.
A
Symbol Parameter Min. Typ. Max. Units
V V V
V
I
I
CC
CAPACITANCE
f = 1MHz
Temperature Under Bias -25 to +100 °C
UB
Storage Temperature -65 to +150
stg
Voltage on any pinwith respect to ground -0.5 to VCC+0.5 V
G
Power Dissipation 0.5 W
tot
IL
IH
@ IOL = 3.2 mA +0.5 V
OL
@ IOH= -0.4 mA +2.4 V
OH
@ VIN = 0.4 to V
IL
CC
-0.5 +0.8 V
+2.0 VCC+0.5 V
@ TSCT = 100 ns 50
C
°
+10 mA
µ
A
Symbol Parameter Min. Typ. Max. Units
C
C
OUT
C
Capacitance on Input pins 10 pF
IN
Capacitance on Output Pins 10 pF Capacitance on I/O pins 20 pF
IO
AC TIMINGSPECIFICATIONS
=0°Cto70°C, VCC=+5V±5 percent, unless otherwisespecified.
T
A
MK50H27 -16 -25 -33 -16/25/33
No Signal Symbol Parameter Test Condition Min. Min. Min. Max. Units
1 SYSCLK T 2 SYSCLK T 3 SYSCLK T 4 SYSCLK T 5 SYSCLK T 6 TCLK T 7 TCLK T 8 TCLK T
9 TCLK T 10 TCLK T 11 TD T
12 TD T
SYSCLK period 60 40 30 10000 ns
SCT
SYSCLK low time 24 16 12 ns
SCL
SYSCLK hightime 24 16 12 ns
SCH
Rise time of SYSCLK 0 0 0 8 ns
SCR
Fall timeof SYSCLK 0 0 0 8 ns
SCF
TCLK period 20 20 20 ns
TCT
TCLK low time 8 8 8 ns
TCL
TCLK high time 8 8 8 ns
TCH
Rise time of TCLK CL = 50 pF 0 0 0 8 ns
TCR
Fall timeof TCLK 0 0 0 8 ns
TCF
TD data propagation
TDP
CL = 50 pF 13 ns delay after the falling edge ofTCLK
TD data hold time after
TDH
555 ns
the fallingedge of TCLK
42/56
Page 43
MK50H27
AC TIMINGSPECIFICATIONSCONTINUED - MK50H27 -25
T
=0°Cto70°C, VCC=+5V±5 percent, unless otherwisespecified.
A
No Signal Symbol Parameter Notes Min. Typ. Max. Units
13 RCLK T 14 RCLK T 15 RCLK T 16 RCLK T 17 RCLK T 18 RD T 19 RD T 20 RD T 21 RD T
RCT RCH RCL RCR RCF RDR RDF RDH RDS
RCLK period 20 ns RCLK high time 8 ns RCLK low time 8 ns Rise time of RCLK 0 8 ns Fall timeof RCLK 0 8 ns RD datarise time 0 8 ns RD datafall time 0 8 ns RD holdtime after rising edge of RCLK 2 ns RD setuptime prior to rising edge of
RCLK 22 ALE/DAS T 23 ALE/DAS T
DOFF
DON
Bus Master driver disable Output Delay 0 20 ns
Bus Master driver enable after rising
Output Delay 0 20 ns
edge T1 SYSCLK 24 HLDA T
HHA
Delay to falling edge of HLDA from
falling edge of HOLD (Bus Master) 25 HLDA T 26 HLDA T
HLAH HLAS
HLDA input setup time 10 ns
Delay to rising edge HLDA from rising
edge HOLD 27 A T 28 A T 29 DAL T 30 DAL T 31 DAL T 32 DAL T 33 DAL T 34 DAL T 35 DAL T 36 DAL T 37 DAL T 38 DAL T 39 DAL T 40 ALE T 41 ALE T
XAS XAH
RDAS RDAH
WAH WDS
WDH SRDS SRDH
SWDH SWDS
ALES ALHB
Address setup time Output Delay 30 ns Address holdtime Output Delay 20 ns Address setup time Output Delay 35 ns
AS
Address holdtime Output Delay 0 20 ns
AH
Data setup time (BusMaster read) 15 ns Data hold time (Bus Master read) 10 ns Address holdtime (Bus Master write) Output Delay 15 ns Data setup time (BusMaster write) Output Delay 25 ns Data hold time (Bus Master write) Output Delay 25 ns Data setup time (BusSlave read) 25 ns Data hold time (Bus slave read) 25 ns Data hold time (Bus slave write) 10 ns Data setup time (Busslave write) 10 ns ALE setup time Output Delay 30 ns ALE hold time (asserted to de-
Output Delay 15 ns
asserted) (DMA Burst)
42 ALE T
ALHS
ALE hold time (asserted to 3-State)
Output Delay 20 ns
(Single DMA cycle)
43 DAS T
DASS
DAS setup time from fallingedge of T2
Output Delay 25 ns
SYSCLK (Bus Master)
44 DAS T
DASH
DAS hold time from rising edge of
Output Delay 5 15 ns
SYSCLK (Bus Master)
45 DALI/DAL O
BM)/BM1 46 DALI T 47 DALI T 48 DALI T
T
BMDD
BMDE
RIS RIH
Bus Master driver enable (from 3-
Output Delay 25 ns
State todriven) (Bus Master) DALI setup time (Bus Master read) Output Delay 15 ns DALI hold time (Bus Master read) Output Delay 25 ns Bus Master driver disable (from driven
Output Delay 20 ns
to 3-State) (Bus Master)
MK50H27 -25
8ns
0ns
10 ns
43/56
Page 44
MK50H27
AC TIMINGSPECIFICATIONSCONTINUED - MK50H27 -25
T
=0°Cto70°C, VCC=+5V±5 percent, unless otherwisespecified.
A
No Signal Symbol Parameter Notes Min. Typ. Max. Units
49 DALO T 50 DALO T 52 CS T 53 CS T 54 ADR T 55 ADR T 56 DAS T 57 DAS T 58 READY T 59 READY T
ROS
ROH
CSH CSS SAH SAS
SDAS SDSH RDYS SRYH
DALO setup time (BusMasterread) Output Delay 30 ns DALO hold time (Bus Master read) Output Delay 30 ns CS hold time 10 ns CS setup time 10 ns ADR hold time 10 ns ADR setuptime 10 ns DAS input setup time (Bus slave) 10 ns DAS input hold time (Bus slave) 10 ns READY setup time (Busslave) Output Delay 15 ns READY hold time after rising edge of
DAS (Bus slave read) 60 READY T 61 READY T 62 READ T 63 READ T 64 HOLD T 65 HOLD T
RSH
SRS REDS REDH
HLDS HLDH
READY setup time (Bus Master) 18 ns READY hold time (Bus Master) 10 ns READ setup time (Busslave) 10 ns READ hold time (Bus slave) 10 ns HOLD setup time (Bus Master) Output Delay 15 ns HOLD hold time (BusMaster) Output Delay 35 ns
MK50H27 -25
15 ns
44/56
Page 45
MK50H27
Figure 5a: TTL Output Load Diagram Figure 5b: Open Drain Output Load Diagram
TEST
POINT
FROM OUTPUT UNDER TEST
C
L
0.4 mA
CR
1
NOTE: This loadisused on all outputs except INTR, HOLD, READY.
Figure 6: MK50H27Serial Link TimingDiagram
RCLK
R1 = 1.2 K
CR1 - CR4 = 1N914 or EQUIV
CR
2
CR
3
CR
4
C = 50pF min @1 MHz
L
15
16 17
19
21
13
VccVcc
R1 =1.4K
FROM OUTPUT UNDER TEST
C
L
NOTE: This load is used on open drain outputs INTR, HOLD, READY.
14
20
RD
TCLK
TD
18
6
87
10
12
TIMING MEASUREMENTS ARE MADE AT THE FOLLOWING VOLTAGES, UNLESS OTHERWISE SPECIFIED:
”0”
O.8 V O.8 V
90 %
OUTPUT INPUT FLOAT
”1”
2.0 V
2.0 V 10 %
9
11
45/56
Page 46
MK50H27
Figure 7: MK50H27BUS Master Timing(Read) (for CYCLE = 0, CSR2<15>)
SYSCLK
HOLD
HLDA
A 16-23
ALE
DAS
READY
24
64
T0
27
23
23
T1 T2 T3 T4
25
29
40
ADDRESS
43
60 61
30
T5
44
31
T6
65
26
28
41
42
22
32
DAL0-15
DALO
DALI
READ
BM0,1
DATA INADDR
50
49
45
NOTES:
1. The shaded SYSCLK periods T0 and T5 will be removed when setting CSR2 bit 15, CYCLE =1 to select the shorter DMA cycle as shown in Figure 7a.
2. Output delay times are the maximum delay from the specifed edge to a valid output.
3. The Bus Master cycle time will increase from a minimum, in 1 SYSCLK increments
until the slave device returns READY.
4746
48
48
46/56
Page 47
MK50H27
Figure 7a: MK50H27Reduced Cycle BUS Master Timing(Read) (forCYCLE = 1, CSR2<15>)
T1 T2 T3 T4 T5
SYSCLK
64
65
HOLD
HLDA
A 16-23
ALE
DAS
READY
DAL0-15
DALO
24
45
27
23
23
49
29
25
50
30
43
ADDRESS
40
60
46
44
31
26
28
41
42
22
61
32
DATA INADDR
48
47
DALI
READ
48
BM0,1
NOTES:
1. This reduced DMA Cycle Time is selected by setting CSR2 bit 15, CYCLE =1.
2. Output delay times are the maximum delay from the specifed edge to a valid output.
3. The Bus Master cycle time will increase from a minimum, in 1 SYSCLK increments until the slave device returns READY.
47/56
Page 48
MK50H27
Figure 8: MK50H27BUS Master TimingDiagram (Write) (for CYCLE =0, CSR2<15>)
SYSCLK
HOLD
HLDA
A 16-23
ALE
DAS
READY
24
64
T0 T1 T2 T3 T4 T5
25
27
ADDRESS
23
23
29
40
43
60 61
34
44
T6
65
26
28
41
42
22
35
DAL0-15
DALO
DALI
READ
BM0,1
DATAADDR
33
48
45
48
NOTES:
1. The shaded SYSCLK periods T0 and T5 will be removed when setting CSR2 bit 15, CYCLE =1to select the shorter DMA cycle as shown in Figure 8a.
2. Output delay times are the maximum delay from the specifed edge to a valid output.
3. The Bus Master cycle time will increase from a minimum, in 1 SYSCLK increments until the slave device returns READY.
48/56
Page 49
MK50H27
Figure 8a MK50H27Reduced Cycle BUS MasterTiming (Write) (for CYCLE = 1, CSR2<15>)
T1 T2 T3 T4 T5
SYSCLK
HOLD
HLDA
A 16-23
ALE
DAS
READY
DAL0-15
24
27
23
23
64
29
25
ADDR
33
40
43
ADDRESS
44
60
34
65
26
28
41
42
22
61
35
DATA
48
DALO
45
DALI
READ
48
BM0,1
NOTES:
1. This Reduced DMA Cycle Time is selected by setting CSR2 bit 15, CYCLE = 1. Times T0 and T5 from the standard DMA Cycle are removed for this reduced timing.
2. Output delay times are the maximum delay from the specifed edge to a valid output.
3. The Bus Master cycle time will increase from a minimum, in 1 SYSCLK increments
until the slave device returns READY.
49/56
Page 50
MK50H27
Figure 8b: BUS Master BURST Timing (Reduced Cycle - Write)
SYSCLK
HOLD
HLDA
A 16-23
ALE
DAS
READY
DAL0-15
DALO
24
45
T1 T2 T3 T4 T5
64
25
27
23
23
29
40
43
34
33
ADDRESS
44
60
DATAADDR
61
T1 T2 T3 T4 T5
27
ADDRESS
41
29
ADDR
40
43
34
44
60
DATA
65
26
28
41
42
22
61
35
48
50/56
DALI
READ
48
BM0,1
Page 51
Figure 9: MK50H27BUS Slave Timing Diagram(Read)
SYSCLK
53 52
CS
MK50H27
ADR
DAS
READY
READ
(Read)
DAL 0-15
55
56 57
58
62
36 37
DATA OUT
54
59
63
NOTES:
1. Input setup and hold times are in minimum values required to or from the particular edge specified in order to be recognized in that cycle.
2. Output delay times are from the specified edgeto avalid output.
51/56
Page 52
MK50H27
Figure 10: MK50H27BUS Slave Timing Diagram(Write)
SYSCLK
CS
ADR
DAS
READY
READ
(Write)
53
56 57
58
62
52
5455
59
63
DAL0-15
52/56
39 38
DATA IN
NOTES:
1. Input setup and hold times are the minimum values required to or from the particular edge specified in order to be recognized in that cycle.
2. Output delay times are from the specified edge to a valid output.
Page 53
ORDERINGINFORMATION
MK50H27 Q XX
PART# PROTOCOL 50H27 = SS7 Layer 2 protocol
MK50H27
SPEED SORT 25 = 25MHz SYSCLK
PACKAGE N = Plastic DIP (48 Pins) Q = Plastic J-Leaded Chip Carrier (52 Pins)
53/56
Page 54
MK50H27
DIP48 PACKAGE MECHANICAL DATA
DIM.
MIN. TYP. MAX. MIN. TYP. MAX.
a1 0.63 0.025
b 0.45 0.018 b1 0.23 0.31 0.009 0.012 b2 1.27 0.050
D 62.74 2.470 E 15.2 16.68 0.598 0.657
e 2.54 0.100 e3 58.42 2.300
F 14.1 0.555
I 4.445 0.175
L 3.3 0.130
mm inch
54/56
Page 55
PLCC52 PACKAGE MECHANICALDATA
MK50H27
DIM.
A 4.20 5.08 0.165 0.20 A1 0.51 0.020 A3 2.29 3.30 0.090 0.13
B 0.33 0.53 0.013 0.021 B1 0.66 0.81 0.026 0.032
C 0.25 0.01
D 19.94 20.19 0.785 0.795 D1 19.05 19.20 0.750 0.756 D2 17.53 18.54 0.690 0.730 D3 15.24 0.60
E 19.94 20.19 0.785 0.795 E1 19.05 19.20 0.750 0.756 E2 17.53 18.54 0.690 0.730 E3 15.24 0.60
e 1.27 0.05 L 0.64 0.025
L1 1.53 0.060
MIN. TYP. MAX. MIN. TYP. MAX.
mm inch
55/56
Page 56
MK50H27
Information furnished is believed to be accurate and reliable. However, SGS-THOMSON Microelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights ofthird partieswhich may result from its use. No license is granted by implicationor otherwise under any patent or patentrights of SGS-THOMSON Microelectronics. Specificationmentioned in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied. SGS­THOMSON Microelectronics products are not authorizedfor use as critical components in life support devices or systems without express written approval of SGS-THOMSON Microelectronics.
Australia - Brazil - Canada- China - France - Germany - HongKong - Italy - Japan - Korea - Malaysia - Malta- Morocco - The Netherlands-
1997 SGS-THOMSON Microelectronics – Printedin Italy – All Rights Reserved
Singapore - Spain - Sweden - Switzerland- Taiwan - Thailand - UnitedKingdom - U.S.A.
SGS-THOMSON Microelectronics GROUPOF COMPANIES
56/56
Loading...