MAY 24 163 —, INTEGRATED CIRCUITS DATA Shllelet $SCC68070 16/32-bit microprocessor Product specification April 1993 File under Integrated Circuits, 1C21 ___ Philips Semiconductors | PHILIPS Philips Semiconductors 16/32-bit microprocessor Product specification SCC68070 CONTENTS 1 FEATURES 2. GENERAL DESCRIPTION 3. ORDERING INFORMATION 4. PINNING INFORMATION 4.1. Pinning 4.2 Pin description 5. CPU FUNCTIONAL DESCRIPTION 5.1 General 5.2 Programming model and data organization 5.3 Internal and external operation 5.4 Bus timing 5.5 Bus arbitration 5.6 Processing states 5.7 Exception processing 5.8 Reset operation 5.9 Bus error processing 5.10 Stack format 5.11 Interrupt processing 5.12 On-chip addresses 5.13 Clock circuitry 6. INSTRUCTION SET 6.1 Addressing Modes 6.2 Instruction timing 7. ON-CHIP MMU 7.1. Operation 7.2 Segmentation 7.3. Segment descriptors 7.4 MMU registers 8. DMACONTROLLER 8.1. General 8.2 Device/DMA controller communication 8.3 Bus arbitration and priority resolution 8.4 Operation 8.5 DMAregisters and counters 9. PERIPHERAL INTERRUPT CONTROL 9.1. Peripheral Interrupt Control Registers 10. THE I?C-BUS INTERFACE 10.1 Operating modes 10.2 The |?-bus I/O registers 11. UART SERIAL INTERFACE April 1993 11.1 11.2 12. 12.1 13. 13.1 13.2 13.3 13.4 13.5 13.6 13.7 13.8 14. Programming UART registers TIMER Timer registers ELECTRICAL CHARACTERISTICS Limiting values DC Characteristics AC Characteristics Clock timing I?C interface timing UART interface timing Timer specification Power considerations SUMMARY OF ON-CHIP ADDRESSES Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 1. FEATURES e CMOS technology © 32-bit internal structure e Enhanced bus error handling e 4 decoded interrupt inputs e 2 programmable interrupt inputs e Decoded interrupt acknowledge e Built-in clock generator - maximum 35 MHz crystal e On-chip MMU; supporting virtual memory e 2-channel DMA controller e |?C serial bus interface e UART serial bus interface e 16-bit timer/counter e Two 16-bit match/count/capture registers e Fully 68000 object code compatible e Bus interface similar to 68000 e 56 powerful instruction types e 5 basic data types e 16 Mbyte addressing range e 14 addressing modes e Memory mapped I/O e Vectored and auto-vectored interrupts e 7 interrupt levels e Maximum internal clock frequency: 17.5 MHz e 84-pin PLCC or a 120-pin QFP package. 2. GENERAL DESCRIPTION The SCC68070 is a 16/32-bit central processing unit suitable for use in a large variety of applications. It is fully object code compatible with the 68000. By integrating standard and advanced peripheral functions on the SCC68070, system costs are drastically reduced. The internal architecture is built around a bus interconnecting the CPU and the various on-chip peripheral functions. Each function has several dedicated connections to the external circuitry. The $CC68070 includes powerful programmable interrupt processing circuitry for interrupts generated by internal and external sources. An on-chip clock generator provides a half crystal frequency clock signal for CPU and peripheral interfaces. The on-chip MMU, if selected takes care of address translation and memory protection. Two DMA channels increase data throughput and the |?C-bus interface allows easy and low-cost addition of peripherals. The SCC68070 also includes a UART interface. A built-in timer/counter with two independently programmable match/count/capture registers, means that the SCC68070 can be programmed with two of the following options simultaneously: e Pulse generator e External event counter e Reference timer. This document gives an overview of the basic functions, internal structure and electrical characteristics. For further details on the features and operation of this device refer to "User Manual 1991, Part 1 - Hardware". EXTENDED TYPE PACKAGE EREGUENCY TEMPERATURE PINS | PIN POSITION | MATERIAL CODE (MHz) RANGE (°C) SCC68070CCA 84 PLCC plastic SOT189 15.0 0 to +70 SCC68070CDA 84 PLCC plastic SOT189 17.5 0 to +70 SCC68070ACA 84 PLCC plastic SOT189 15.0 —40 to +85 SCC68070ADA 84 PLCC plastic SOT189 17.5 —40 to +85 SCC68070CCB_ | 120 QFP plastic SOT220B 15.0 0 to +70 SCC68070CDB 120 QFP plastic SOT220B 17.5 0 to +70 SCC68070ACB_ | 120 QFP plastic SOT220B 15.0 —40 to +85 SCC68070ADB_ | 120 QFP plastic SOT220B 17.5 —40 to +85 April 1993 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 RESETN HALTN BERRN t ] ADDRESS BUS DL TRANSPARENT MODE [-—~—| | CPU A1 to A23 —| —— > MMU t ry V7 DATA BUS INTERFACE ’ NMIN 4 ran -——————_| |- DO to D15 INxN { 5 ¢ t-— | — INTERRUPT |* IACKXN < HANDLER . > OMA 2 aa INTXN + Ko DMA HANDSHAKE » REQ1/2N ACK 1/2N RDYN DONEN DTCN amend Ti TIMERS K INTERNAL BUS DMA 1 T2 ¢ > BUS CONTROL XTAL 1 ———> cLock UART 2c ARBITRATION — XTAL 2 «———_ INTERFACE INTERFACE CONTROL OUT ASN UDSN LDSN CKOUT «———_ R/AWN OTACKN i t ' AWN | to | i | BRN XCKI TXD RTSN BGN RXD CTSN SCL SDA BGACKN MEA894 Fig.1 Block diagram. April 1993 4 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 4. PINNING INFORMATION 4.1 Pinning 10} BGACKN [3] 8GN [8] Do Tz] 01 6] D2 [5] 03 [4] D4 3] DS [2] 06 1) Yoo 84) 07 3) 08 a2) D9 87] D10 8d] 11 79] 012 76] D13 77] 014 76] 015 75] SCL [77] BRN 74] SDA 73] TXD 72] RXD 71] RTSN (70) CTSN [69] XCKI 68) 11 67] T2 (66) IN2N [65] IACK2N [64] Vss 63] IN4N (6g) IACK4N [6 INTIN (6) INT2N 59} INSN 58} WACKSN [57] NMIN set IACK7N [55] A23 54) A22 Fig.2 Pin configuration for PLCC84. April 1993 5 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 1. All pins designated “n.c." or "RESERVED" must not be connected externally. Fig.3 Pin configuration for QFP120. a0 [=] a wow w Ww -_oO 2 z non - Y aAMA«. S2e8SesaesagattSosaeggeebsez2g8 Sz BIBIBIEIEIEIBIEIETEISIEIETETEIETEIETENSIEIIEIEIEIBIEIEIEIE! ne. 11] [90] n.c. nec. L2 | 39) ne. nc. L3 | 88) nc. nc. [4] 87] ne. (87) nc. [5 | 86) nic. ACKIN L6| 85] TXD REQ2N (84) RXD ACK2N [8 | 83) RTSN DONEN [62) CTSN OTCN [40] [81} XCKi RDYN (11 (30) Tt RESERVED [12] 79} T2 ASN [13]! 78} IN2N upsn [14] [77] \ACK2N Losn G5) 76} Vss Vss [6] 68070 75] Vss Vss 74] IN4N RWN [18] 73] IACK4N DTACKN [19] 72] INT4N AVN [20] 71) INT2N BERAN [21 70] RESERVED HALTN [22] 69] INSN 169] RESETN (23) 168) \ACK5SN cKouT [24] 67] NMIN XTAL1 [25 (66) t(ACK7N XTAL2 [26] [65] A23 nc. [64] n.c. nc. [28] 63] nc. (63) nc. [62] nc. n.c. [30] [61] nc. BISBEE iS} IES ES) ES LVS] SYS (S] [lS (Sh) SHS] [BY[S|[S] age GERLTVT LST ess SPLTLLS ILS Rays rf oi g g c a April 1993 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 4.2 Pin description Table 1 PLCC84 package. MNEMONIC | TYPE PIN NO. FUNCTION Al to A23 oO 32-42,44-55 | Address bus (active HIGH, 3-state). For direct addressing of 16 Mbytes of memory. DO to D15 VO | 8-2, 84-76 Data bus (active HIGH, 3-state, bidirectional). 16-bit wide. ASN oO 19 Address Strobe (active LOW, 3-state). Indicates a valid address on the bus. LDSN Oo 21 Lower Data Strobe (active LOW, 3-state). Indicates : For a WRITE cycle, the data is valid on the lower half of the data bus (DO to D7). For a READ cycle, the data is to be placed on the lower half of the bus (DO to D7). UDSN oO 20 Upper Data Strobe (active Low, 3-state). Indicates : For a WRITE cycle, the data is valid on the upper half of the data bus (D8 to D15). For a READ cycle, the data is to be placed on the upper half of the bus (D8 to D15). R/WN .@) 23 Read (active HIGH)/Write (active LOW). This controls the direction of data flow. DOTACKN 1 24 Data Transfer Acknowledge (active LOW). Asserted by the peripheral during CPU or DMA bus cycles when data is either received from or placed on the bus. !f not asserted punctually, it causes the CPU or DMA controller to insert wait states. BRN ! 11 Bus Request (active LOW). Asserted by wired-ORed external DMA devices that request bus ownership. BGN oO 9 Bus Grant (active LOW). A daisy chain output that is asserted by the SCC68070 when the bus is granted by the CPU and the DMA does not have a bus request pending. BGACKN ie) 10 Bus Grant Acknowledge (active LOW, open drain). Asserted by any DMA device (internal or external) that has control of the bus. As long as this line is held LOW externally, the SCC68070 will hold the bus signals in the high impedance state. When BGACKN is released, the SCC68070 will have access to the bus. Interrupts cannot be serviced while BGACKN is held LOW. RESETN VO |28 Reset (active LOW, open drain, bidirectional). If asserted externally together with the HALTN line, it will cause the processor to enter the Reset state. It is driven LOW by the processor when the Reset instruction resets external hardware. April 1993 7 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 MNEMONIC | TYPE PIN NO. FUNCTION HALTN VO |27 Halt (active LOW, open drain, bidirectional). If asserted externally together with RESETN, it causes the SCC68070 to enter the Reset state. If asserted alone, it will cause the CPU or DMA controller to stop after completion of the current bus cycle. If HALTN and BERRN are asserted together, the CPU will complete the current bus cycle, stop operation, and place all 3-state lines in their high impedance state until HALTN and BERRN have been released, and then it will re-run the same bus cycle. BERRN should be released before HALTN. As long as HALTN is held LOW all control signals are inactive and all 3-state lines are placed in their high impedance state. When the processor has stopped executing instructions (e.g. after a double bus fault) the processor drives this line LOW. BERRN VO {126 Bus Error (active LOW, open drain). If this line is asserted during a bus cycle, it indicates that there was a fault in the bus cycle access. If asserted together with HALTN, the same bus cycle will re-run after both HALTN and BERRN have been released. If BERRN is asserted alone, the SCC68070 will start bus-error exception processing. BERRN is driven LOW by the device when the MMU indicates a bus error. INT1N, INT2N I 61, 60 Latched Interrupt inputs (active LOW). A LOW level of 2 1 clock pulse will be stored as a pending interrupt request. Priority levels are programmable. IN2N, IN4N, I 66, 63, 59 Decoded Interrupt priority inputs (active LOW). IN2N has the lower INSN and IN5N has the higher priority. NMIN { 57 Non-maskable interrupt (level 7) (active LOW). While the other interrupts may be masked (disabled), this interrupt is always enabled. IACK2N, 0 65, 62, 58,56 | Decoded Interrupt acknowledge (active LOW). Asserted during an IACKAN, interrupt acknowledge sequence to indicate to a peripheral that its IACKS5N, interrupt request is being serviced. IACK7N AVN | 25 Autovectored interrupts (active LOW). If held LOW during the interrupt acknowledge sequence, the processor calculates the appropriate vector from a fixed vector table. If kept HIGH, the peripheral must provide an 8-bit vector number. Vop - 1, 43 Supply voltage + 5.0 V nominal. Vg - 22, 64 Ground. XTAL1, XTAL2 I 30, 31 External crystal inputs. XTAL1 can be used as a clock input if an external clock generator is used. The crystal or external clock frequency is divided by 2 to obtain the internal clock and CKOUT signals. CKOUT oO 29 Clock out. This is the reference from the internal system clock. REQIN, | 12,14 DMA Request (active LOW). These are inputs from I/O devices REQ2N requesting service from the DMA controller and causes it to request control of the bus. In burst mode, the inputs are level sensitive and the DMA controller releases the bus after REQ1N (or REQ2N) becomes active and the current DMA cycle is completed. In cycle-stealing mode, REQIN (or REQ2N) inputs are triggered by a negative pulse. This pulse must occur at least one clock cycle before DTCN is asserted to ensure continuous transfer. April 1993 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 MNEMONIC | TYPE PIN NO. FUNCTION ACKIN, O 13, 15 DMA Request Acknowledge (active LOW). ACKiN (or ACK2N) is ACK2N asserted by the DMA controller to indicate that it has acquired the bus and the requested device bus cycle is now beginning. It is active at the beginning of every device cycle together with ASN, and is deactivated at the end of every device bus cycle. RDYN | 18 Device Ready (active LOW). The requesting device asserts RDYN to indicate to the DMA controller that valid data has either been stored or put on the bus. If RDYN remains inactive, it indicates that the data has neither been stored nor put on the bus, causing the DMA controller to insert wait states. RDYN can be held LOW permanently if the device is fast enough, indicating that the device is always ready and so no wait States are required. RDYN is not monitored by Channel 2 in the dual address mode. DTCN Oo 17 Device Transfer Complete (active LOW, open drain). In DMA mode DTCN is asserted by the DMA controller to indicate to the device that the requested data transfer is complete. On a write-to-memory operation, it indicates that the data provided by the device has been stored successfully. On a read-from-memory operation, it indicates that the data from memory is present on the data bus and should be latched. DONEN VO 16 Done (active LOW, open drain). With DONEN as an output, the DMA controller asserts it simultaneously with the ACK1N (or ACK2N) output to indicate to the device that the transfer count is zero and therefore, the DMA controller's operation is complete. If, an input, DONEN is asserted by the device before the transfer count reaches zero, it causes the DMA controller to abort the operation and generate an interrupt request (if the interrupts are enabled). SCL VO {75 Serial Clock (open drain). SCL is the clock signal for the |?C-bus operation. It is either driven by the SCC68070 when the I?C interface is in the master mode, or is the clock input if the I2?C interface is in the slave mode. SDA VO |74 Serial Data (open drain). SDA is the data signal for the |2C-bus. T1, T2 VO 168,67 Timers 1 and 2 (3-state). These are the I/O signals for the capture timers of Channels 1 and 2 respectively. They can be programmed as either outputs for pulses or inputs for count cycles and events. RXD I 72 Receive Data. RXD is the data input for the UART serial interface. TXD Oo 73 Transmit Data. TXD is the data output for the UART serial interface. RTSN oO 71 Request To Send (active LOW). This output of the UART serial interface indicates that the receiver is ready to accept data on the RXD line. CTSN I 70 Clear To Send (active LOW). This input to the UART serial interface indicates that the remote receiving device is ready. RTSN and CTSN can be connected together if no control lines are needed. April 1993 9 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 MNEMONIC | TYPE PIN NO. FUNCTION XCKI 1 69 External clock. When selected, XCKI is the clock input for the UART serial interface. This signal can be used either: - to generate special baud rates or - when a crystal frequency other than 19.6608 MHz is used by the device, an external clock of 4.9152 MHz (or 9.8304 for 38200 bauds) can be connected to this input to generate the standard baud rates. Note 1. April 1993 10 The signal descriptions given for the PLCC84 package also apply to the QFP120 package. However, the pinning arrangement for the QFP120 is different, as can be seen in Fig.3. Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 5. CPU FUNCTIONAL DESCRIPTION 5.1 General The CPU of the SCC68070 is software compatible with the 68000, consequently programs written for the 68000 will run on the SCC68070 unchanged. However, for certain applications the following differences between the processors should be noted: ¢ Differences exist in the exception error processing since the SCC68070 can provide full bus-error recovery. e The timing is different because of the SCC68070's new architecture and technology. Although the bus timing is similar to the 68000, instruction execution timing is completely different. For execution timing see Tables 11 to 23. 5.2 Programming model and data organization The programming model is identical to that of the 68000 and is shown in Fig.4. It contains seventeen 32-bit registers, a 32-bit Program Counter and a 16-bit Status Register (see Fig.5). The first eight registers (DO to D7) are used as data registers for byte, word and long-word operations. The second group of registers (AO to A6) and the system stack pointer (A7) can be used as software stack pointers and base address registers. In addition, these registers can be used for word and long-word address operations. All seventeen registers can be used as index registers. The SCC68070 supports bit data, integer data of 8, 16 and 32 bits, 32-bit addresses and BCD data. Each data type is arranged in the memory as shown in Fig.6. 5.3 Internal and external operation The SCC68070 operates with a maximum internal clock frequency of 17.5 MHz and a minimum of 4 MHz. Each clock cycle is divided into 2 states. A non-access machine cycle has 3 clock cycles or 6 states (SO to S5). An on-chip or extemal bus access normally consists of 3 clock cycles plus 1 clock cycle (2 SB states). When DTACKN is not asserted, indicating that data has not been received or put on the bus, wait states (SW) are inserted in multiples of 2. See Fig.7. April 1993 5.4 Bus timing Bus cycles in the SCC68070 are similar to those of a 68000 running at a CKOUT frequency. However, if the DTACKN signal is not asserted by the time the device is ready to transmit or receive data, it will insert wait cycles. Upper and lower data strobes (UDSN and LDSN) are asserted independently with respect to the type of transfer (low byte - LDSN asserted, high byte - UDSN asserted, and word - both strobes asserted). 5.5 Bus arbitration Because a DMA controller is integrated on the SCC68070 as a possible bus master, the bus arbitration needs a priority protocol. This is done by a daisy-chain using the Bus Grant (BGN) of the CPU such that Channel 1 of the DMA controller has highest priority, followed by Channel 2 and then the external devices. The CPU grants bus acquisition and therefore has lowest priority. Once the DMA controller has submitted the internal bus grant to an outside master it will not interrupt the line until Bus Grant Acknowledge (BGACKN) has been negated externally. If the DMA controller has a DMA request pending, it will acquire the bus as soon as the external device has negated BGACKN. In this event, it will not submit BGN to an outside master, even if the prospective masters BRN signal had been asserted before the DMA controller's pending request. Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 Kel 16 15 8 7 0 | q pO D1 = | 4 L ] | 4 | | 03 Eight = = Data a | | _l D4 Registers ] | D5 | Dé r~ | j 77 1 i 31 16 15 0 ! AO | R = | 4 A2 Seven | A3 Address — | 7 ag Registers — - | AS _ | — ' AG USER STACK POINTER a7 Two Stack SUPERVISOR STACK POINTER Pointers 31 0 Program Counter 18 8 7 0 SYSTEM USER Status McD504 BYTE BYTE Register Fig.4 Programming Model. BIT 15 13 10 8 4 0 L™{-[ sj -]- [2] 11] 19] -[ -[-[x[ xf z{v]c] V+, Supervisor Interrupt Carry Trace State Mask Overtiow Mode Zero Negative Extend MCDS506 Fig.5 Status Register. April 1993 12 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 bit CLEC (a) Bit data (1 Byte = 8 bits). bit 15°14 13°12 11:10 9 8 7 6 5 4 3 2 1 ~«°0 MSB BYTE 0 LSB BYTE 1 BYTE 2 BYTE 3 (b) Integer data (1 Byte = 8 bits). bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 «0 MSB WORD 0 LSB WORD 1 WORD 2 (c) Word data (16 bits). bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 «0 MSB HIGH ORDER P— —— —- LONG WORDO — — — — — — —— = — — LOW ORDER LSB HIGH ORDER m——— LONGWORD1 — — — — — — — — — — LOW ORDER HIGH ORDER -—--~—-— LONGWORD2 — — — — — — — — LOW ORDER (d) Long-word data (32 bits). bit 15 14 13 12 11:10 9 8 7 6 5 43 2 1 «0 MSB HIGH ORDER H— ——-- ADDRESSO -———- -~——— — — — — + LOW ORDER LSB HIGH ORDER H—-——-- ADDRESS! -— — — ———— — —4 LOW ORDER HIGH ORDER --—-—-~ ADDRESS2 -— — ——- ——— — — 4 LOW ORDER (e) Addresses (1 address =32 bits). bit 15 14 13 12 1110 9 8 7 6 5 4 3 2 1 «0 MSB BCDO BCD1 LSB BCD 2 BCD 3 BCD 4 BCD 5 BCD6 BCD7 (f) BCD data (2 BCD digits = 1 Byte). MCD505 Fig.6 Memory data organization. April 1993 13 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 S5 SO S1 S2 S3 S4 S5 SO S1 S2 S3 SB SB S4 S5 SO S1 S2 S3 SB SB SWSW S4 S5 SO JSUUUUUUUDUU UU UU ON- CHIP OR NO ACCESS EXTERNAL CPU CYCLE BUS ACCESS NO WAIT STATES WITH WAIT STATES MCD507 Fig.7 Machine cycles. j»——4 WAIT STATES——+| S5 SO S1 S2 S3 SB SB S4 S5 SO $1 S2 S3 SB SB S4 S5 SO S1 S2 S3 SB SB SW SW SW SW SW SW SW SW S4 SS SO mines >< ~< »~< PWN by A DTACKN \ / \ / 08 -D15 _>—_———< »>—-—< >< Fig.8 Read, write and slow read cycle timing. April 1993 14 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 5.6 Processing states The CPU is always in one of three processing states: normal, exception or halted. The normal processing state is that associated with instruction execution; the memory references are to fetch instructions and operands, and to store results. A special case of the normal state is the stopped state which the processor enters when a STOP instruction is executed. In this state, no further memory accesses are made by the CPU. The exception processing state is associated with interrupts, trap instructions, tracing and other exceptional conditions. The exception may be generated internally by an instruction or an unusual condition arising during the execution of an instruction. Externally, exception processing can be forced by an interrupt, by bus error or by a reset. Exception processing is designed to provide an efficient context switch so that the processor can handle unusual conditions. The halted processing state is an indication of a catastrophic hardware failure. For example, if during exception processing of a bus error another bus error occurs, the CPU assumes that the system is unusable and halts. Only an external reset can restart a halted processor. Note that a CPU in the stopped state is not in the halted state or vice versa. The processor can work in the ‘user’ or supervisor’ state determined by the state of the S-bit in the Status Register. Accesses to the on-chip peripherals must be in the supervisor state. 5.7 Exception processing Exception processing occurs in four steps. First, a copy is made of the contents of the Status Register and then the S-bit is asserted, putting the processor into the privileged supervisor state. Second, the vector number of the exception is determined; this is used to generate the Table 2 Exception grouping and priority. address of the exception routine. The next step saves the current processor status. Copies of the current program counter, the Status Register and the Format plus vector number are saved on the supervisor stack using the supervisor stack pointer. Finally the contents of the exception vector location are fetched and loaded into the Program Counter and the exception handling routine starts normal instruction execution. 5.7.1 EXCEPTION VECTORS Exception vectors are memory locations from which the CPU fetches the address of a routine that will handle that exception. All exception vectors are 2 words in length (see Fig.9) except the reset vector, which is made up of 4 words. All exception vectors are contained in the supervisor data space. When the reset vector is fetched after a RESETN, the MMU is disabled and the reset vector is located at physical address 0. A vector number is an 8-bit number that, when multiplied by 4, gives the address of an exception vector. Vector numbers are generated internally or externally depending on the cause of the exception. During the interrupt acknowledge bus cycle, an external peripheral may send the CPU an 8-bit vector number (see Fig.10) on the data bus lines D0 to D7. The CPU translates the vector number into the full 24-bit address as shown in Fig.11. The memory layout for the exception vectors is given in Table 3. 5.7.2 MULTIPLE EXCEPTIONS As two or more exceptions can occur simultaneously, exceptions are grouped in order of priority; as is shown in Table 2. GROUP EXCEPTION PROCESSING ¢) RESET, ADDRESS ERROR Exception processing begins at the next machine cycle. BUS ERROR 1 TRACE, INTERRUPT, Exception processing begins before the next instruction. ILLEGAL, PRIVILEGE 2 TRAP, TRAPV, CHK, ZERO, Exception processing is started through normal instruction DIVIDE, FORMAT ERROR execution. April 1993 15 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 Word 0 NEW PROGRAM COUNTER (HIGH) Word 1 NEW PROGRAM COUNTER (LOW) MCO509 Fig.9 Exception vector format. D15 D8 D7 bo | ignored | v7 | ve | vs | va| va] v2| v1 | vol MEA876 1. V7 is the MSB; VO is the LSB of the Vector Number. Fig.10 External peripheral vector format. A23 Al0 AQ AB A7 AG AS AS AS A2 At AO All Zeros | v7| ve|vs| va| va] v2|vi | vo] o | 0 | MEA877 Fig.11 Address translated from 8-bit vector number. Tabie 3 Exception vector assignment. VECTOR NOS. DEC HEX ASSIGNMENT 0 0 000 Reset: initial SSP 1 4 004 Reset: initial PC 2 8 008 Bus error 3 12 00C Address error 4 16 010 ltiegal instruction 5 20 014 Zero divide 6 24 018 CHK instruction 7 28 01C TRAPYV instruction 8 32 020 Privilege violation 9 36 024 Trace 10 40 028 Line 1010 emulator 11 44 02C Line 1111 emulator April 1993 16 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 Table 3 Exception vector assignment. VECTOR NOS. DEC HEX ASSIGNMENT 120) 48 030 Unassigned, reserved 13 52 034 Unassigned, reserved 14 56 038 Format error 15 60 03C Uninitialized interrupt vector 16 to 23 64 040 Unassigned, reserved 95 O5F 24 96 060 Spurious interrupt 25 100 064 Level 1 external interrupt autovector 26 104 068 Level 2 external interrupt autovector 27 108 06C Level 3 external interrupt autovector 28 112 070 Level 4 external interrupt autovector 29 116 074 Level 5 external interrupt autovector 30 120 078 Level 6 external interrupt autovector 31 124 07C Level 7 external interrupt autovector 32 to 47 128 080 TRAP instruction vectors 191 OBF 48 to 56() 192 oco Unassigned, reserved 227 0E3 57 228 0E4 Level 1 on-chip interrupt autovector 58 232 0E8 Level 2 on-chip interrupt autovector 59 236 OEC Level 3 on-chip interrupt autovector 60 240 OFO Level 4 on-chip interrupt autovector 61 244 OF4 Level 5 on-chip interrupt autovector 62 248 OF8 Level 6 on-chip interrupt autovector 63 252 OFC Level 7 on-chip interrupt autovector 64 to 255 256 100 User interrupt vectors Note 1. Vectors 12, 13, 16 to 23 and 48 to 56 are reserved for future enhancements. No user peripheral devices should be assigned to these numbers. April 1993 17 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 5.8 Reset operation When the CPU executes a RESET instruction, the RESETN signal is driven LOW for 146 clock cycles to reset internal and external peripherals. The CPU itself is not affected but all on-chip peripherals are reset. When both the RESETN and HALTN signals are driven LOW by an external device, the CPU and on-chip peripherals are reset. The CPU responds by reading the reset vector table entry (vector number zero, address OOO000H) and loads it to the Supervisor Stack Pointer (SSP). Vector table entry number one (at address 000004H) is read next and loaded into the Program Counter (PC). The CPU then initializes the Status Register (SR) to an interrupt level of seven and instruction execution is started (see Fig.12). All 3-state output signals are placed in the high-impedance state for as long as the RESETN and HALTN signals are externally driven. When the RESETN and HALTN signals are released, the CPU will execute 4 read cycles after start-up time, to load the SSP High, SSP Low, PC High and PC Low. Then the first instruction is fetched and executed. The HALTN signal must be driven LOW at the same time as the RESETN signal. The SCC68070 will only start to read the stack and the initial Program Counter after both signals have been released. RESETN should not be released after HALTN. When V,, is initially applied to the SCC68070, an external RESET must be applied to the RESETN pins for at least 100 ms. 5.9 Bus error processing Like the 68000 the SCC68070 uses the Bus Error (BERRN) and the Halt signals to distinguish between two bus-error handling routines. If the BERRN and HALTN signals are asserted, the SCC68070 will re-run the last bus cycle as soon as both BERRN and HALTN lines are released. This is valid for both the CPU and DMA controlier. BERRN should become inactive before HALTN (see Fig.13). If just the BERRN signal is asserted, bus error exception processing is entered. If the DMA controller is the affected master, it will: e stop the DMA service after the current bus cycle is terminated e release the bus e set the BERRN bit in the status word, and e send an interrupt if the Interrupt Enable bit in CCR (3) was set. April 1993 The address counter reflects the address of the faulty bus cycle, while the transfer counter indicates the number of successful transfers. If the CPU is the bus master, it will enter the bus error exception processing after the current bus cycle is terminated and BERRN has been released. Since the architecture of the SCC68070 differs from the 68000, it handles bus errors in a different manner. Unlike the 68000, the SCC68070 enables full recovery from bus errors. The procedure follows the usual sequence of steps: the Status Register is copied internally e the supervisor state is entered the trace state is turned off, and the vector number is generated to refer to the bus error vector. To save more of the context, additional information is stored on the stack as follows: e The Program Counter and a copy of the Status Register are saved. e A format word containing a special bit configuration for the SCC68070 long stack format, and the vector number of the exception, in this case, the bus error vector, is stacked. e Besides other internal information, the processor saves the address which was being accessed by the aborted bus cycle. e Specific information about the access is either saved or is retrievable from stacked information. e A Specia! Status Word is saved to determine the state of the (internal) function codes, the source of the bus error (MMU or External), and whether the error occurred during a read or write cycle. ARERUN bit in this Special Status Word has to be set to suppress a retry of the faulty bus cycle on Return from Exception (RTE). e The instruction registers and temporary registers are saved. Product specification Philips Semiconductors SCC68070 16/32-bit microprocessor “Bui yesey 21614 sapow pea: ui sng e}eq 338) UoINNASUT ISI “BANOBU! S|BUBIS (02]U09 jy 419) peal MO} ar ip pea y6IH Od (pb sUMOUWUP] 8781S Sng _ peasmo7 dSs (€ pea ybiH uss (2Z ow dn - yeys jewayuy (1 ‘SALON X > OXKXXKXKOKXKXKXKKX J L | L ee sepa sng NLIVH NL3S3Y AS* w19 19 April 1993 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 ar-az) a aa ASN \ / LOSN/UDSN \ / R/AWN OTACKN BERRN \ / HALTN en / | READ | HALT Fig.13 RERUN bus cycle timing. RERUN MEA883 5.10 Stack format The stacking operation for the exception processing is similar to the 68010 (rather than the 68000) however, the information stored is not the same due to the different architecture. To handle this, the following changes from the 68000 have been made: e The stack format has changed. ¢ The minimum number of words put in or restored from the stack is 4 (short stack format) which is 68010 compatible; not 3 as for the 68000. e The RTE instruction decides (with the aid of the 4 format bits) whether more information has to be restored. The SCC68070 long format is used for bus error and address error exceptions, all other exceptions use the short format. e If another format code other than one of the two listed above is detected during the restore action, a Format Error occurs. If the user wants to finish the instruction in which the bus or address error occurred (modification of the stack), the SCC68070 format must be used on RTE. If no changes are required to the stack during exception processing, the stack format is transparent to the user. April 1993 20 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 5.10.1 LONG AND SHORT STACK FORMATS SR PCH/PCL sp —( SR FORMAT PCH Short Stack PCL Format FORMAT (4 bits) | VECTOR NUMBER ssw VECTOR NUMBER MM INTERNAL INFORMATION INTERNAL INFORMATION SSW Sunk < TPOH MM Format TPOL TDPH/TDPL ree TPFH/TPFL TPFL DBINH DBINH/DBINL DBINL " IR IRC L INTERNAL INFORMATION wcost2 IRC Fig.14 Stack format. Status Register. Program Counter High/Low Word. indicating either a short stack (only the first 4 words), or the long SCC68070 format for bus and address error exceptions. See Fig.15. The vector number of the exception in the vector table; e.g. 2 for a bus error and 3 for an address error. See Fig.15. Special Status Word; see Fig.16. Current Move Multiple Mask. In the event of a faulty write cycle, the data can be found here. The address used during the faulty bus cycle. Data that has been read prior to the faulty cycle can in some cases be found here. Holds the present instruction executed. Holds either the present instruction executed or the prefetched instruction. Fig.15 Vector number and format code. bt 15 14 13 12 1110 9 8 7 6 &§ 4 3 2 4 QO | FORMAT CODE| 0 | 0 | VECTOR NUMBER ol o| FORMAT CODE INFORMATION STACKED either 0000 Short Format (4 words) or 1111 68070 Format (17 words) MCD514 April 1993 21 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 5.10.2 THE SPeciaL Status Worpd (SSW) bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 #0 RR| — | IF | OF | RM{ HB] BY | RWI HW] LC} BM] — | — | FC} FC} FC 2}; 140 MEA887 Fig.16 Special Status Word. Table 4 Description of SSW. SYMBOL BIT FUNCTION RR SSW.15 Rerun. By default this bit is a logic 0. If set to a logic 1, the CPU will not re-run the faulty bus cycle on return from exception (RTE). - SSW.14 Undefined, reserved IF SSW.13 The faulty cycle was an instruction fetch. OF SSW.12 The faulty cycle was a data fetch. RM SSW.11 The error occurred during a read-modify-write cycle. HB SSW.10 High Byte BY SSW.9 The faulty cycle was a byte transfer. RW SSW.8 Read/write cycle HW SSW.7 High Word LC SSW.6 The faulty cycle was during a long-word access. BM SSW.5 The bus error was caused by the on-chip MMU. - SSW.4 Undefined,reserved - SSW.3 Undefined,reserved FC2 SSW.2 These three bits hold the internal function code during the faulty bus cycle. The FC1 SSW.1 function codes are the same as for the 68000 and affect the status of the CPU FCO SSW.O during the faulty bus cycle. See Table 5. Table 5 Internal function codes. FC2 FC1 FCO ADDRESS SPACE 0 0 0 Reserved 0 0 1 User data 0 1 0 User program 0 1 1 Reserved 1 0 0 Reserved 1 0 1 Supervisor data 1 1 0 Supervisor program 1 1 1 Interrupt acknowledge April 1993 22 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 5.11 interrupt processing The SCC68070 interrupt handling follows the same basic rules as the 68000. However, the following changes have been made to simplify system development: e The IPL signals have been replaced by decoded interrupt signals IN2N, IN4N, INSN and NMIN representing levels 2, 4, 5 and 7 respectively. e Each of the interrupts has a separate acknowledge signal IACK2N, IACK4N, IACKSN and IACK7N e Two latched interrupt inputs (INTIN and INT2N) have programmable priority levels. They have no interrupt acknowledge signal and are always served by autovectoring with vectors located in the “on-chip” entry in the vector table. e Interrupt priority levels IPL1, IPL3 and IPL6 are not available. externally, uniess programmed into INT1N or INT2N. e If autovectoring is desired for IN2N, IN4N, INSN or NMIN, the Autovector request signal (AVN) must be asserted during the interrupt acknowledge routine. e If more than one interrupt line is asserted at the same time, the one with the highest priority will be serviced first. e To ensure being recognized, an interrupt signal INN, IN4N, INSN and NMIN must stay asserted until acknowledged by its IACK1N or IACK2N signal. e Interrupts with a priority level equal to or less than the priority level actually running will not be accepted. e During the acknowledge cycle of an interrupt, the IPL bits of the Status Register are set to the priority level of the acknowledged interrupt. Table 6 Interrupt priorities. If the priority of the interrupt pending is greater than the current processor priority then: e The exception processing sequence is started. e Acopy of the Status Register is saved. e The privilege level is set to supervisor state. e Tracing is suppressed. e The priority level of the processor is set to that of the interrupt being acknowledged. The processor then gets the vector number from the interrupting device, classifies it as an interrupt acknowledge, and displays the interrupt level number being acknowledged on the address bus. During the interrupt acknowledge cycle ASN is asserted to indicate that the bus is occupied but LDSN is not asserted (the 68000 asserts both ASN and LDSN). This is done to simplify the address decoding circuitry of the memory. Acknowledge cycle decoding (by the interrupting device) is done using the IACK1N (or IACK2N) signal instead. If autovectoring is requested by the internal logic, the processor generates a vector number internally that corresponds to the interrupt level number. Then, if a bus error is indicated by the external logic, the interrupt is treated as spurious and the vector number that was generated will refer to the spurious interrupt vector. Priority level 7 is a special case and its interrupts cannot be inhibited by the interrupt priority mask thus providing a Non-Maskable Interrupt (NMIN) capability. An interrupt is generated each time the interrupt request level changes from a lower level to level 7. If external and on-chip peripherals are programmed to the same interrupt priority level, an on-chip daisy-chain defines the priority as follows: EXTERNAL INTERRUPTS PRIORITY LEVEL ININ, IN2N highest priority INTIN L INT2N TIMER UART RX UART TX PC DMA CH1 eH} ee} el] el ep DMA CH2 lowest priority April 1993 23 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 The two latched interrupt inputs INT1N and INT2N have a common Latched Interrupt Priority Level Register (LIR). LIR is described below. 5.11.1 LATCHED INTERRUPT Priority Levet ReGister (LIR) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 PIR IPL2 IPL1 IPLO PIR IPL2 IPL1 IPLO Fig.17 Latched Interrupt priority level Register (LIR). Table 7 Description of LIR bits. SYMBOL BIT FUNCTION PIR LIR.7 Pending Interrupt Reset. When set to a logic 1 any pending interrupt of the INT1N input will be reset and the input must be toggled again to create another interrupt. Note that this does not reset the interrupting status of a connected peripheral and furthermore, if the IPL bits are changed without setting the PIR bit then spurious interrupts may occur. Reading the PIR bit will return a logic 0. IPL2 LIR.6 Interrupt Priority Level. These three bits determine the interrupt priority level of IPL1 LIR.5S the interrupt connected externally to pin INT1N. See Table 8. IPLO LIR.4 PIR LIR.3 Pending Interrupt Reset. When set to a logic 1 any pending interrupt of the INT2N input will be reset and the input must be toggled again to create another interrupt. Note that this does not reset the interrupting status of a connected peripheral and further, if the IPL bits are changed without setting the PIR bit then spurious interrupts may occur. Reading the PIR bit will return a logic 0. IPL2 LIR.2 Interrupt Priority Level. These three bits determine the interrupt priority level of IPL1 LIR.1 the interrupt connected externally to pin INT2N. See Table 8. IPLO LIR.O Note Initially and after RESET, all LIR bits are cleared to zero. Table 8 Interrupt priority levels. IPL2 IPL1 iPLO INTERRUPT PRIORITY 0 0 0 Inhibits the interrupts 0 0 1 Level 1 0 1 0 Level 2 0 1 1 Level 3 1 0 0 Level 4 1 0 1 Level 5 1 1 0 Level 6 1 1 1 Level 7 April 1993 24 Philips Semiconductors Product specification 16/32-bit microprocessor 5.12 On-chip addresses Ail memory locations on the peripheral side of the on-chip interface can only be accessed in the Supervisor Mode; i.e. the S-bit in the Processor Status Word is set to a logic 1. If in User Mode (S = 0), an external bus access is performed. All registers on the peripheral side of the interface are memory mapped separately from the 68070's external 16 Mbyte memory map. The on-chip address space is decoded by the two MSBs of the 32-bit internal address and the S-bit of the processor status word, as shown in Table 9. The address map of all the on-chip peripherals is given in Table 10. Table 9 A31, A30 and S-bit decoding. Ss A31 A30 MEMORY Xx 0 0 External x 0 1 External 1 1 0 Internal 0 1 0 External xX 1 1 External Table 10 Address map of on-chip peripherals. ADDRESS RANGE (HEX) PERIPHERAL 00000000 to 7FFFFFFF Off-chip 00000000 to 80001000 On-chip, reserved 80001001 LIR priority tevel 80001002 to 80002000 On-chip, reserved 80002001 to 80002009 I?C interface 8000200A to 80002010 On-chip, reserved 80002011 to 8000201B UART interface 8000201C to 8000201F On-chip, reserved 80002020 to 80002029 Timer 8000202A to 80002024 On-chip reserved 80002045 PICR1 80002046 On-chip, reserved 80002047 PICR2 80002048 to 80003FFF On-chip, reserved 80004000 to 8000406D DMA controller 8000406E to 80007FFF On-chip, reserved 80008000 to 8000807F MMU 80008080 to BFFFFFFF On-chip, reserved C0000000 to FFFFFFFF Off-chip April 1993 25 SCC68070 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 5.13 Clock circuitry The clock signals required by the SCC68070 are generated from one master oscillator. Dividing this frequency by two gives the clock signals for the CPU, MMU and DMA. Dividing the master oscillator frequency by four provides the clock frequency for the UART and I?C interface. Dividing the master oscillator frequency by 192 gives the clock for the Timer. When the master oscillator frequency differs from 19.6608 MHz and standard baud rates are required from the UART, it is possible to clock the UART separately by supplying externally a 4.9152 or 9.8304 MHz signal on the XCKI pin (see Fig.18). The Timer will still have a period of 192 times that of the master oscillator period. The speed of the l?C-bus interface is programmable and may need to be programmed with a different division factor. XCKI (4.9152 or 9.8304 MHz) 35 MHz (max.) CKOUT XTAL1 XTAL2 [ MASTER . . . OSCILLATOR ‘2 | 2 | 248 v If XTAL = 19.6608 MHz | 9.8304 MHz | 4.9152 MHz | 4.9152 MHz t=9.77 1s = 25 MHz 12.5 MHz 6.25 MHz or t= 7.68 ps = 30 MHz 15 MHz 7.5 MHz 9.8304 MHz t= 6.40 ps = 35 MHz 17.5 MHz 8.75 MHz t=5.49 ps CPU MMU 12¢ UART TIMER MEABS4 DMA Fig.18 Clock circuitry. April 1993 26 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 6. INSTRUCTION SET The SCC68070 is completely code compatible with the 68000. Consequently, programs developed for the 68000 will run on the SCC68070. This applies to both the source and object codes. The instruction set was designed to minimize the number of mnemonics that the programmer has to remember. CONDITION CODES MNEMONIC DESCRIPTION OPERATION Ni Zivyic ABCD Add Decimal with Extend | (Destination),, + (Source),, > Destination u * U * ADD Add Binary (Destination) + (Source) — Destination ss *e * ADDA Add Address (Destination) + (Source) > Destination - - = = ADDI Add Immediate (Destination) + Immediate Data > Destination ee 8 ADDQ Add Quick (Destination) + Immediate Data — Destination 7 fe * ADDX Add Extended (Destination) + (Source) + X - Destination ._ * * 8 AND AND Logical (Destination) A (Source) — Destination * * 0 0 ANDI AND Immediate (Destination) A Immediate Data > Destination * * 0 0 ASL, ASR | Arithmetic Shift (Destination) Shifted by < count > + Destination 8 8 8 Bec Branch Conditionally If CC then PC +d > PC - - = = BCHG Test a Bit and Change ~(< bit number >) of Destination - Z - * = = ~(< bit number >) of Destination — < bit number > of Destination BCLR Test a Bit and Clear ~(< bit number >) of Destination > Z - * = = 0 — < bit number > of Destination - * = = BRA Branch Always PC +d— PC - = = = BSET Test a Bit and Set ~(< bit number >) of Destination > Z - * - = 1 — < bit number > of Destination - * = = BSR Branch to Subroutine PC > SP @ -; PC +D— PC - - - - BTST Test a Bit ~(< bit number >) of Destination > Z - * = = CHK Check Register against | If Dn <0 or Dn > (< ea >) then TRAP - U U U Bounds CLR Clear an Operand 0 — of Destination 0 1 0 #0 CMP Compare (Destination) — (Source) ‘se 8 CMPA Compare Address (Destination) -— (Source) . se * CMPI Compare Immediate (Destination) — Immediate Data ‘ es * * CMPM Compare Memory (Destination) — (Source) . es 8 * DB... Test Condition, If CC then Dn -1 — Dn; if Dn # -1 then PC +d > - - = = Decrement & Branch PC DIVS Signed Divide (Destination) / (Source) — Destination ._ * * 0 DIVU Unsigned Divide (Destination) / (Source) -» Destination ._ * * 0 April 1993 27 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 CONDITION CODES MNEMONIC DESCRIPTION OPERATION X|N/IZ/ VIC EOR Exclusive OR Logical (Destination) ® (Source) — Destination - * * QO O EOTI Exclusive OR Immediate | (Destination) ® Immediate Data — Destination - * * Q QO EXG Exchange Register Rx @ Ry - = = = = EXT Sign Extend (Destination) Sign — extend — Destination - * * Q O JMP Jump Destination -» PC - - = = = JSR Jump to Subroutine PC -» SP @ -; Destination — PC - - - - = LEA Load Effective Address _| Destination — An - = = = = LINK Link and Allocate An > SP @ -; SP > An; SP +d — SP - - - - = LSL, LSR Logical Shift (Destination) Shifted by < count > — Destination ._ * * QO * MOVE Move Data from Source | (Source) — Destination - * * 0 QO to Destination MOVE to Move to Condition Code | (Source) + CCR "#8 8 * CCR MOVE to Move to the Status (Source) > SR “8 8 8 * SR Register MOVE from | Move from the Status SR — Destination - - =~ - = SR Register MOVE USP | Move User Stack Pointer | USP > An; An > USP - - - - = MOVEA Move Address (Source) — Destination - 5 FOF MOVEM Move Multiple Registers | Registers — Destination - - - = = (Source) > Registers - - = = = MVEP Move Peripheral Data (Source) — Destination - - - = = MOVEQ Move Quick Immediate Data > Destination - * * 0 O MULS Signed Multiply (Destination) * (Source) — Destination - * * 0 QO MULU Unsigned Multiply (Destination) * (Source) — Destination - * * 0 0O NBCD Negate Decimal with 0 - (Destination),, — X — Destination * U * U * Extend NEG Negate 0 - (Destination) —- Destination . 8 8 8s NEGX Negate with Extend 0 - (Destination) - X + Destination 7 ee 8% NOP No Operation - -— ee ee April 1993 28 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 CONDITION CODES MNEMONIC DESCRIPTION OPERATION XINIZIiVIcC NOT Logical Complement ~(Destination) — Destination - * * 0 0 OR Inclusive OR Logical (Destination) v (Source) > Destination - * * 0 90 ORI Inclusive OR Immediate | (Destination) v Immediate Data — Destination - * * 0 0 PEA Push Effective Address | Destination > SP @ - - - - - = RESET Reset External Devices | - - - = = = ROL, ROR _ | Rotate (Without Extend) | (Destination) Rotated by < count> > Destination | - * * O * ROXL, Rotate with Extend (Destination) Rotated by < count > > Destination . *s * Q * ROXR RTE Return from Exception SP @ — SR; SP @ => PC 7 8 es RTR Retum and Restore SP @+-—CC; SP @=—>PC “se 8 Condition Codes RTS Return from Subroutine |SP @+— PC - = = = = SBCD Subtract Decimal with (Destination),, — (Source,, - X — Destination * U * U * Extend Scc Set According to if CC then 1 > Destination; else 0 — Destination |- - - - -— Condition STOP Load Status Register immediate Data - SR; STOP “8 8 8 and Stop SUB Subtract Binary (Destination) —- (Source) > Destination “8 ee 8 SUBA Subtract Address (Destination) — (Source) — Destination - = = = = SUBI Subtract Immediate (Destination) - immediate Data > Destination . es ee * SUBQ Subtract Quick (Destination) — Immediate Data > Destination "es 8 8 8 SUBX Subtract with Extend (Destination) - (Source) - X — Destination "ee es SWAP Swap Register Halves Register [ 31:16 ] — Register { 15:0] - * * Q O TAS Test and Set an Operand | (Destination) Tested -» CC; 1 > [7 ] of - * * Q QO Destination TRAP Trap PC + SSP @ -; SR - SSP @ -; (Vector) — PC - - = = = TRAPV Trap on Overflow If V then TRAP - - = = = TST Test and Operand (Destination) Tested > CC - * * 9 90 UNLK Unlink An > SP; SP @ + > An - - - = = Notes 1. []=bit number 2. * =affected 3. -=unaffected 4. 0=cleared 5. 1=set 6. U =defined 7. @ =location addressed by April 1993 29 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 6.1 Addressing modes MODE GENERATION Register Direct Addressing Data Register Direct EA=Dn Address Register Direct EA=An Absolute Data Addressing Absolute Short EA = (Next Words) Absolute Long EA = (Next Two Words) Program Counter Relative Addressing Relative with Offset EA = (PC) + dj, Relative with Index and Offset EA = (PC) + (Xn) + d, Register Indirect Addressing Register Indirect EA = (An) Postincrement Register Indirect EA= (An), An<— An+N Predecrement Register Indirect An — An-N, EA= (An) Register Indirect with Offset EA = (An) +d,, Indexed Register Indirect with Offset EA = (An) + (Xn) + d, immediate Data Addressing immediate DATA = Next Word(s) Quick immediate Inherent Data Implied Addressing Implied Register | EA= SR, USP, SSP, PC, SP Notes EA = Effective Address An = Address Register Dn = Data Register < = Replaces SR = Status Register PC = Program Counter () = Contents of d, = 8-bit offset (displacement) d,, = 16-bit offset (displacement) SP = Stack Pointer SSP = System Stack Pointer USP = User Stack Pointer oO PNP on a Ce ee a PFwoNn >TO April 1993 Xn = Address or Data Register used as Index Register N = 1 for bytes; 2 for words; 4 for long words Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 6.2 Instruction timing Table 11 Effective address calculation times. SOURCE ADDRESSING MODE BYTE, WORD LONG Rn Data Address Register Direct 0 (0/0) 0 (0/0) (An) Address Register Indirect 4 (1/0) 8 (2/0) (An)+ Address Register Indirect postincrement 4 (1/0) 8 (2/0) ~(An) Address Register Indirect predecrement 7 (1/0) 11 (2/0) d(An) Address Register Indirect Displacement 11 (2/0) 15 (3/0) d(An,Xi) Address Register Indirect with Index 14 (2/0) 18 (3/0) xxx.S Absolute Short 8 (2/0) 12 (3/0) xxx. Absolute Long 12 (3/0) 16 (4/0) d(PC) Program Counter with Displacement 11 (2/0) 15 (3/0) d(PC,Xi) Program Counter with Index 14 (2/0) 18 (3/0) HXXX Immediate 4 (1/0) 8 (2/0) Note The number of bus read and write cycles are shown in parentheses as (R/W). Table 12 MOVE Byte and Move Word instruction clock periods. SOURCE Rn (An) (An)+ -(An) d(An) d(An,Xi) Xxx.S xxx.b Rn 7 (1/0) | 11 (1/1) | 11 (/1)114 9 (1/4))18 9 (1/4) } 21 (AN) 15 (11) 19 (1/1) (An) 11 (2/0)/15 (2/1)}15 (2/1){18 (2/1)}22 (2/1)}25 (2/1)/19 (2/1)/23 (2/1) (An)+ 11 (2/0)}15 (2/1)}15 = (2/1) | 18 = (2/1) 22 (2/1) 25 (2/1) 19) (2/1) 723 (2/4) —(An) 14 (2/0)}18 (2/1)}18 (2/1)/22 (2/1)}25 (2/1)}28 (2/1)}22 (2/1)}26 = (2/1) d(An) 18 (3/0)}22 (3/1)/22 (38/1)}25 (3/1)/29 (3/1)}32 (31)}26 (3/1)}30 (3/1) d(An,Xi) 21 (8/0) |25 = (8/1) | 25 = (38/1) | 28 = (8/1) 132 = (8/1) 35 = (3/1) | 29. (3/1) 33 (3/1) xx.S 15 (0)/19 (3/1)}19 (3/1)]22 (3/1)/26 (3/1)}29 (3/1)}23 9 (8/1)]27 = (3/1) xx. 19 (4/0)|}23 (4/1)|23 (4/1)/26 (4/1)}30 = (4/1) 133 (4/1) | 27 = (4/1) | 31 (4/1) d(PC) 18 (3/0)}22 (3/1)/22 (3/1)/25 (8/1))/29 (3/1)}/32 (3/1)/26 (3/1)/30 (3/1) d(PC,Xi) 21 (3/0)|25 (3/1)/25 9 (38/1); 28 = (8/1) 32 = (8/1) 35 = (3/1) | 29. (3/1) } 33 (3/1) #XXX 11 (2/0)|15 (2/1)|15 (2/1)]18 (2/)|22 (2/1)/25 (2/1))19 (2/1)/23 = (2/1) April 1993 31 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 Table 13 MOVE Long instruction clock periods. SOURCE Rn (An) (An)+ -{An) d(An) d(An,Xi) xxx.S xxx.L Rn 7 (1/0)}15 (1/2))15 (1/2);18 (1/2)|22 (2/2)/25 (2/2)119 (2/2)/23 (3/2) (An) 15 = (3/0)| 23 = (3/2))23 (82); 26 §=(8/2)|30 (4/2)|/33 (4/2))27 (4/2)|31 (5/2) (An)+ 15 =(3/0)/23 9 (3/2))23 (8/2) 126 §=(3/2)|30 (4/2)|/33 (4/2)|27 (4/2)|31 (5/2) —(An) 18 (W0)}26 (3/2))26 (8/2)129 (3/2)|33 (4/2)]/36 (4/2)/30 (4/2)134 (5/2) d(An) 22 = (4/0)|30 = (4/2)}30 = (4/2) 133 = (4/2) |37 = (6/2) 140 = (5/2) |34 = (5/2)|} 38 = (6/2) d(An,Xi) 25 (4/0){33 = (4/2)|33 = (4/2) |36 = (4/2) 40 38=(5/2)}43 + 9=(5/2)|37 (5/2)/41 (6/2) xxx. 19 (4/0)}27 (4/2)|27 (4/2);30 (4/2)|34 (5/2)}37 (5/2)/31 (5/2)|35 (6/2) 10x. 23 = (5/0)|31 = (5/2) | 31 = (5/2) 134 = (5/2) 138 = (6/2) | 41 (6/2) | 35 = (6/2) | 39 = (7/2) d(PC) 22 = =(4/0)/30 = (4/2)|30 +3=(4/2);33 (4/2)137 = (5/2)|40 (5/2)/34 (5/2)/38 (2) d(PC,Xi) 25 (4/0)|33 (4/2)/33 (4/2)|36 (4/2)|40 (5/2)|/43 (6/2)|37 (5/2)|41 (6/2) HOXK 15 (80)}23 (82)/23 (3/2))}26 (3/2)/30 (4/2)/33 (4/2)}27 (4/2)131 (5/2) Table 14 Standard instruction clock periods. INSTR SIZE op ,An op ,Dn op ,M ADD Byte, Word 7 + (1/0) 7 + (1/0) 11 + (1/1) Long 7 + (1/0) 7 + (1/0) 15 + (1/2) AND Byte, Word - 7 + (1/0) 11 + (1/1) Long - 7 + (1/0) 15 + (1/2) CMP Byte, Word 7 + (1/0) 7 + (1/0) _ Long 7 + (1/0) 7 + (1/0) - DIVS - - 169 + **(1/0) - DIVU - _ 130 + *(1/0) - EOR Byte, Word - 7 + (1/0) 11+ (1/1) Long - 7 + (1/0) 15 + (1/2) MULS - - 76 + *(1/0) - MULU - - 76 + *(1/0) OR Byte, Word ~ 7 + (1/0) 11 + (1/1) Long - 7+ (1/0) 15 + (1/2) SUB Byte, Word 7 + (1/0) 7 + (1/0) 11 + (1/1) Long 7 + (1/0) 7+ (1/0) 15 + (1/2) Notes 1. += add effective address calculation time 2. * =the duration of the instruction is constant 3. ** = indicates maximum value. April 1993 32 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 Table 15 Immediate instruction clock periods. INSTR. SIZE op <#>,Dn op <#>,An op<#>, ADDI Byte, Word 14 (2/0) - 18 + (2/1) Long 18 (3/0) - 26 + (3/2) ADDQ Byte, Word 7 (1/0) 7 (1/0) 11 + (1/1) Long 7 (1/0) 7 (1/0) 15 + (1/2) ANDI Byte, Word 14 (2/0) - 18 + (2/1) Long 18 (3/0) - 24 + (3/2) CMPI Byte, Word 14 (2/0) - 14 + (2/0) Long 18 (3/0) ~ 18 + (3/0) EORI Byte, Word 14 (2/0) - 18 + (2/1) Long 18 (3/0) - 26 + (3/2) MOVEQ Long 7 (1/0) - - ORI Byte, Word 14 (2/0) - 18 + (2/1) Long 18 (3/0) - 26 + (3/2) SUBI Byte, Word 14 (2/0) - 18 + (2/1) Long 18 (3/0) - 26 + (3/2) SUBQ Byte, Word 7 (1/0) 7 (1/0) 11+ (1/1) Long 7 (1/0) 7 (1/0) 15 + (1/2) Note + = add effective calculation time. April 1993 33 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 Table 16 Single operand instruction clock periods. INSTRUCTION SIZE REGISTER MEMORY CLR Byte, Word 7 (1/0) 11 (1/1)+* Long 7 (1/0) 15 (1/2)+** NBCD Byte 10 (1/0) 14 (1/1)* NEG Byte, Word 7 (1/0) 11 (1/1)+ Long 7 (1/0) 15 (1/2)+ NEGX Byte, Word 7 (1/0) 11 (1/1)+ Long 7 (1/0) 15 (1/2)+ NOT Byte, Word 7 (1/0) 11 (1/1)+ Long 7 (1/0) 15 (1/2)+ Scc Byte, Word 13 (1/0) 17 (1/1)+ Long 13 (1/0) 14 (1/1)+ TAS Byte, Word 10 (1/0) 15 (2/1)+* TST Byte, Word 7 (1/0) 7 (1/0)+ Long 7 (1/0) 7 (1/0)+ Notes 1. += add effective calculation time 2. * = subtract one read cycle (—4(1/0)) from effective address calculation 3. ** = subtract two read cycles (-8(2/0)) from effective address calculation. Table 17 Shift/rotate instruction clock periods. INSTRUCTION SIZE REGISTER MEMORY ASR,ASL Byte, Word 13 + 3n (1/0) 14 (1/1)+ Long 13 + 3n (1/0) - LSA,LSL Byte, Word 13 + 3n (1/0) 14 (1/1)+ Long 13 + 3n (1/0) - ROR,ROL Byte, Word 13 + 3n (1/0) 14 (1/1)+ Long 13 + 3n (1/0) - ROXR,ROXL Byte, Word 13 + 3n (1/0) 14 (1/1)+ Long 13 + 3n (1/0) - Note + = add effective calculation time. April 1993 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 Table 18 Bit manipulation instruction clock periods. DYNAMIC STATIC INSTRUCTION SIZE REGISTER MEMORY REGISTER MEMORY BCHG Byte - 14 (1/1)+ - 21 (2/1)+ Long 10 (1/0) - 17 (2/0) - BCLR Byte - 14 (1/1)+ - 21 (2/1)+ Long 10 (1/0) - 17 (2/0) - BSET Byte - 14 (1/1)+ - 21 (2/1)+ Long 10 (1/0) - 17 (2/0) - BTST Byte - 7 (1/0)+ - 14 (2/0)+ Long 7 (1/0) - 14 (2/0) - Note + = add effective caiculation time. Tabie 19 Conditional instruction clock periods. INSTRUCTION DISPLACEMENT TRAP/BRANCH TAKEN TRAP/BRANCH NOT TAKEN Bcc .B 13 (1/0) 13 (1/0) .wW 14 (2/0) 14 (2/0) BRA .B 13 (1/0) - .W 14 (2/0) - BSR .B 21 (1/2) - .W 25 (2/2) - DBcc cc True - 14 (2/0) cc False 17 (2/0) 17 (3/2) CHK - 70 (3/4) 19 (1/0)+ TRAPV - 55 (3/4) 10 (1/0) Note + = add effective calculation time. April 1993 35 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 Table 20 JMP, JSR, LEA, PEA, MOVEM instruction clock periods. INSTR | Size} (An) (An}+ | -(An) | d(An) | d(An,Xi)| xxx.S | xxx.L | d(PC) | d(PC,Xi) JMP |- [7 - - 14 17 14 18 14 17 - |(1/0) - - (2/0) (2/0) (2/0) (3/0) (2/0) (2/0) JSR - |18 - - 25 28 25 29 25 28 - | (1/2) - - (2/2) (2/2) (2/2) (3/2) (2/2) (2/2) LEA |- (7 - - 14 17 14 18 14 17 - |(1/0) - - (2/0) (2/0) (2/0) (3/0) (2/0) (2/0) PEA |- |18 - - 25 28 25 29 25 28 - (1/2) - - (2/2) (2/2) (2/2) (3/2) (2/2) (2/2) MOVEM|.W |2647n |264+7n |- 30+7n |33+7n [304+7n [34+7n |304+7n |[33+7n (24+1v0) | (2+n/0) |- (3+rv/0) | (34rv0) | (3+n/0) | (44rv0) | (3+n/0) ‘| (3+rV0) M>R TL [26411n [264 11n [- 30+ 11n 1334 11n [304 11n [344+ 11n [30411n [334 11n (2+2n/0) | (2+2n/0) (3+2rv0) | (3+2n/0) | (3+2n/0) | (4+2n/0) | (3+2nV0) | (3+2n/0) MOVEM! .W {2347n j- 23+7N |2747n |304+7n |27+7n |314+7n |- - (2/n) - (2/n) (3/n) (3/n) (3/n) (4/n) - - ROM ]L [23411n |- 23411n |27+11n |304+11n |274+11n [314 11n |- - (2/2n)|- (2/2n) |(3/2n) | (3/2n) =| (a/2n) st (4/2n)—s | - - Note n = number of registers to move. Table 21 Multi-precision instruction clock periods. INSTRUCTION SIZE op Dn, Dn op M, M ADDX Byte, Word 7 (1/0) 28 (3/1) Long 7 (1/0) 40 (5/2) CMPM Byte, Word - 18 (3/0) Long - 26 (5/0) SUBX Byte, Word 7 (140) 28 (3/1) Long 7 (1/0) 40 (5/2) ABCD Byte 10 (1/0) 31 (3/1) SBCD Byte 10 (1/0) 31 (3/1) April 1993 36 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 Table 22 Miscellaneous clock periods. REGISTER to MEMORY to INSTRUCTION SIZE REGISTER MEMORY MEMORY REGISTER ANDI to CCR - 14 (2/0) - - - ANDI to SR ~ 14 (2/0) - - - EORI to CCR - 14 (2/0) - - - EORI to SR ~ 14 (2/0) |- - - EXG - 13 (1/0) - - - EXT WORD 7 (1/0) - - - LONG 7 (1/0) - - - LINK - 25 (2/2) |- - - MOVE from SR - 7 (1/0) 110 (1/1)+ - - MOVE to CCR - 10 (1/0) 10 (1/0)+ - - MOVE to SR - 10 (1/0) 10 = (1/0)+ - - MOVE from USP - 7 (1/0) - - - MOVE to USP - 7 (1/0) - - - MOVEP WORD - - - 25 = (2/2) 22 = (4/0) LONG - - - 39 (2/4) 36 = (6/0) NOP - 7 (1/0) - - - ORI to CCR - 14 (2/0) - - - ORI to SR - 14 (2/0) - - - RESET - 154 (1/0) - - - RTE - short format - 39 (5/0) - - - RTE - long format no rerun - 140 (18/0) |- - - with rerun - 146 (18/0) |- _ - return of TAS - 151 (19/0) |- - - RTR - 22 (4/0) |- - - RTS - 15 (3/0) [- - - STOP ~ 17 (2/0) - - - SWAP - 7 (1/0) - - - UNLK - 15 (3/0) - - - Note + = add effective address calculation time. April 1993 37 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 Table 23 Exception processing clock periods. EXCEPTION NUMBER OF CLOCK PERIODS Address error 158 (3/17) interrupt 65 (4/4)* Itegal instruction 55 (3/4) Privilege instruction 55 (3/4) Trace 55 (3/4) Trap 52 (3/4) Divide by Zero 64 (3/4)+ RESET** 43 (4/0) Notes 1. * denotes that the interrupt acknowledge bus cycle is assumed to take four external clock periods. 2. ** indicates the maximum time from when RESETN and HALTN are first sampled as negated to first instruction fetch. April 1993 38 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 7. ON-CHIP MMU The SCC68070 has an on-chip Memory Management Unit (MMU) that if enabled, supports virtual memory, multi-tasking, task protection and dynamic stack allocation. 7.1 Operation When the MMU is enabled it only influences addresses sent by the CPU and adds two SM states (or one clock cycle) at the beginning of each external bus cycle of the CPU. However, during the vector acquisition of an interrupt acknowledge cycle, the MMU does not process the address coming from the CPU; i.e. logical address equals physical address and the SM states are not added. The address translation is processed as follows: 1. The segment number S, of the logical address is used to address the segment descriptor stored in the MMU on-chip descriptor RAM. If this segment descriptor is not valid or not present, BERRN will be generated and corrective action must be taken to load the indicated segment descriptor and continue the interrupted instruction. 2. The displacement D, of the logical address is compared to the length attribute in the segment descriptor. If the displacement is outside the indicated length then BERRN is generated. 3. The internal function codes are used to check for access violations, using the attributes of the segment descriptor. In the event of a violation BERRN will be generated. 4. If no violations have been detected, a physical address will be generated. This address is constructed by adding the segment base address, the displacement D and the offset '0’ bits. This is illustrated in Fig.19. 7.1.1 ERROR HANDLING. If an error occurs within the enabled MMU, the MMU inhibits data strobes (UDSN, LDSN) and asserts a bus error signal (BERRN) to both the CPU and the external world. The address strobe (ASN) will be asserted to indicate bus occupation to other possible bus masters. Then, the CPU will start bus error processing with the stack operation. logical address internal function code SEGMENT NUMBER DISPLACEMENT OFFSET I p— — — — FT . SEGMENT BASE 8 descriptors NuMBER |FNI appREss z LENGTH | ATTRIBUTE -— | #-——-—_- ——+—+ BERAN physical address ag! MEA885 Fig.19 Principle of the MMU. April 1993 39 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 7.2 Segmentation The MMU divides the memory into segments of multiples of 1 kbyte (blocks). Memory protection is assigned on a segment to segment basis. Two modes of memory segmentation are possible: Table 24 MMU segmentation modes. MODE No. OF SEGMENTS MAX. SEGMENT LENGTH 1 8 2048 blocks = 2 Mbytes 2 128 128 blocks = 128 kbytes For address translation, the logical address can be split into three parts (see Fig.20). e Segment number e Displacement e Offset. bit 23 22 21 20 19 18 17 16 10 9 0 |s|s|s |so ----- s/D| D ----- -0|0------ 0 MEA878 Fig.20 Logical address format. Table 25 Description of Logical address format. SYMBOL BIT DESCRIPTION Ss 23-21 The segment number S/D 20-17 Either the segment number or a displacement, as defined by the MMU Control Register. D 16-10 Displacement oO 9-0 Offset April 1993 40 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 7.3 Segment descriptors Every segment is defined by a segment descriptor stored in the segment descriptor table in main memory. Each descriptor contains the following: ° a segment protection field (with protection attributes) e the segment length * a segment address field. However, for ease of access up to 8 descriptors can be stored in the on-chip descriptor RAM. The format of the descriptors in main memory and those in on-chip descriptor RAM are shown in Figs 21 and 22 respectively. 7.3.1 THE SEGMENT PROTECTION FIELD V/P_ Valid/Present. This bit may be used by the loading software to determine whether the segment is valid and present. S Supervisor. Supervisor permission is required to access this segment. E Execute. Instruction fetches may be performed with this segment. R Read. Read operations may be performed with this segment. W_ Write. Write operations may be performed with this segment. ST Stack. Stack segments grow from high to low addresses. 7.3.2 THE SEGMENT LENGTH These 11 bits define the length of a segment by the number of 1 kbyte blocks. (If the SN bit of the MMU Control Register (MCR) is set, placing the MMU in Mode 2, only 7 MSBs define the length of the segment.) 7.3.3 THE SEGMENT ADDRESS FIELD The Base Address is specified using the 14 MSBs of the start address of this segment. April 1993 41 7.3.4 THE SEGMENT NUMBER This field is only used for descriptors stored in the on-chip descriptor RAM. The segment number is loaded into the fully associative CAM. The MSB of the segment number is in bit 6, i.e. it is left justified for either mode of the segment number. The FN bit (FLUSH) if equal to zero invalidates the descriptor. Therefore, it must be reset to zero when writing a new valid segment number. The FN bit should be set to one after the remainder of the segment descriptor has been loaded into the MMU. Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 bt 15 14 13 12 11 109 8 7 6 § 4 3 2 1 «0 vels[e| aw X [x] {st} X x SEGMENT LENGTH (11 bits) x x | BASE ADDRESS (14 bits) MEA879 All bits indicated as ’X’ are undefined and reserved. These must be programmed to zeros, except bit 8 of the first word which must be set to ‘1’ to be compatible with the Memory Access Controllers of the 68000 family. Fig.21 Format of descriptors in main memory. bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 =O x|sfelalw x [x |x [st] x X SEGMENT LENGTH (11 bits) x fen] SEGMENT NUMBER X | BASE ADDRESS (14 bits) MEA880 ’X’ denotes undefined and reserved; will return zeros when read by the CPU. Fig.22 Format of descriptors in MMU. April 1993 42 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 7.4 MMU registers The internal addresses of the MMU’s registers and Descriptor RAM are given in Table 26. All internal MMU addresses are mapped in the SCC68070’s on-chip address space and are only accessible in Supervisor mode (see Tables 9 and 10). On-chip addresses are not processed by the MMU. The formats of the Control Register (MCR) and the Status Register (MSR) are shown in Fig.23. These registers can be accessed as either one word or two separate bytes. MCR may be written to, or read from, but MSR is a read only register. Writing to MSR will result in a normal bus cycle with no effect. Table 26 Address map of MMU - Base address 8000 8000H A6 AS A4 A3 A2 Al AO REGISTER/RAM 0 0 0 0 0 0 0 Status Register 0 0 0 0 0 0 1 Control Register 1 Cc Cc Cc 0 0 0/1 Attributes 1 Cc Cc Cc 0 1 0/1 Segment Length 1 Cc Cc Cc 1 0 0 undefined, reserved 1 Cc Cc Cc 1 0 1 Segment number 1 Cc Cc Cc 1 1 0/1 Base Address Note 1. CCC = 000 to 111 (see Segment Descriptors 0 to 7). MSR MCR bt 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 O [wi{st{ef als] e]R | wlen/sn| x MEA881 Fig.23 MMU Status and Control Registers (MSR and MCR). April 1993 43 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 7.4.1 Status ReGisteR (MSR) Table 27 Description of MSR bits. SYMBOL BIT FUNCTION N MSR.15 Not-present. Set by the MMU if the addressed segment has no descriptor in the MMU or when the FN bit in the descriptor is zero. ST MSR. 14 Stack segment. Indicates that the segment in which the error occurred was defined as a stack segment. If ST is set, the segment grows from the highest to lowest address. L MSR.13 Length violation. !s set if the displacement given by the logical address exceeds the segment length given by the segment descriptor. A MSR.12 Access error. Set by the MMU if an attribute violation occurred during the last bus access. Ss MSR.11 Supervisor. A permission bit that reflects the descriptor attributes when an access error has occurred. E MSR.10 Execute. A permission bit that reflects the descriptor attributes when an access error has occurred. R MSR.9 Read. A permission bit that reflects the descriptor attributes when an access error has occurred. WwW MSR.8 Write. A permission bit that reflects the descriptor attributes when an access error has occurred. 7.4.2 CONTROL REGISTER (MCR) Table 28 Description of MCR bits. SYMBOL BIT FUNCTION EN MCR.7 Enable. When this bit is set the MMU is enabled (address translation and protection). The default reset value is zero, inhibiting the MMU. SN MCR.6 Number of Segments. The state of the SN bit determines the maximum number of segments the MMU is to handle. When SN = 0, the maximum number of segments is 8 (Mode 1). When SN = 1, the maximum number of segments is 128 (Mode 2). The default reset value is zero. ~ MCR.5 Undefined, reserved - MCR.4 Undefined, reserved - MCR.3 Undefined, reserved - MCR.2 Undefined, reserved - MCR.1 Undefined, reserved - MCR.O Undefined, reserved April 1993 44 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 8. DMA CONTROLLER 8.1 General The SCC68070 has on-chip, a two-channel DMA controller that handles byte or word operands, and devices with port sizes of 8 or 16-bits. The channels can be programmed to transfer data in cycle steal (single cycle) or burst (a block of successive cycles) mode. Channel 1 always uses single addressing, while Channel 2 can operate with single or dual addresses (memory to memory). Typical system latency times are less than 1.7 us and the maximum transfer rate (using single addressing) is 2.98 million transfers per second (crystal frequency 35 MHz). The SCC68070’s DMA controller is a subset of the existing DMA controllers in the 68000 family (68430, 68440 and 68450) and is therefore programmed similar to these devices. 8.2 Device/DMA controller communication The following five signal lines enable peripheral devices and the DMA controller to communicate with each other. See pin description for further details. e Request (REQ1N and REQ2N). The device makes a request for service by asserting the REQIN (or REQ2N) line. Either burst or cycle steal mode can be used. e Acknowledge (ACK1N and ACK2N). The channel asserts the acknowledge line (which implicitly addresses the device making the request) during transfers to and from the device. e Ready (RDYN). This is an active-LOW input which is asserted by the requesting device in single-address mode. e Device Transfer Complete (DTCN). This is an active LOW output asserted by the DMA controller during device bus cycles to indicate that the cycle has been completed successfully. ¢ Done (DONEN). This is a bidirectional active-LOW signal. As an output it indicates to the device that the memory transfer count is exhausted. As an input, it indicates that the operation will terminate after current operand has been transferred. (See Termination phase). 8.3 Bus arbitration and priority resolution The SCC68070 contains three possible bus masters, the DMA Channels 1 and 2 and the CPU, where Channel 1 has the highest priority and the CPU the lowest. There April 1993 can also be external bus masters which have a priority lower than Channel 2 but higher than the CPU (which has the lowest priority in the system). When a valid bus transfer request is received from a device, the DMA controller will arbitrate for and acquire the bus. The DMA controller indicates to the CPU that it wants to become bus master by generating an internal bus request signal, and the CPU responds by sending an internal bus grant signal, daisy-chained through the DMA controller. It is not offered to the external devices because the DMA controller has a request pending. if BGN has already been offered to the external devices when a DMA request arrives, the DMA controller waits for BGACKN to become inactive. If the CPU is the current bus master, it will finish its current cycle and then give the bus to the DMA controller. When the DMA controller has received the internal bus grant signal, it waits for the external signals, Address Strobe (ASN) and Data Transfer Acknowledge (DACKN) to become inactive, it then assumes bus ownership. If the BRN signal is asserted by an external device when the CPU is not the bus master (i.e. BGACKN is asserted) no BGN signal will be sent until the CPU has regained the bus (i.e. BGACKN is inactive.) 8.4 Operation The DMA controller operation has three principle phases: e The initialization phase, during which the CPU configures the Channel Control Registers, loads the initial memory address and transfer count, and then starts the channel operation. ¢ The transfer phase, during which the channel accepts requests for transfers from the device, arbitrates for and acquires the bus, and provides the addressing and bus control for the transfers. e The termination phase, which occurs after the operation has been completed when the channel reports the status of the operation. The description of each phase for Channel 1 operation follows. This description is also relevant for Channel 2 operation. 8.4.1 INITIALIZATION PHASE After programming the Channel Control Registers (CCR1), the Memory and Device Address Counters and the Memory Transfer Counter, the CPU sets the Start Operation bit (CCR1.7). The channel initializes the Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 operation by clearing any pending requests, clearing the Start Operation bit and setting the Channel Active bit (CSR1.11) in the Channel Status Register (CSR1). The channel is then ready to receive valid requests for an operation via the external! REQIN (or REQ2N) pin. 8.4.2 TRANSFER PHASE Data movement between the device and memory takes place during the transfer phase in one of two ways. In single-address mode, transfers occur during a single bus cycle; in double-address mode, each transfer is performed with a read and write bus cycle. 8.4.3 TERMINATION PHASE The termination phase of the block transfer occurs under the conditions detailed below: 8.4.3.1 Count termination During operand transfer, the channel decrements the Memory Transfer Counter (MTC). Completion of a channel transfer occurs when this counter reaches zero and the last byte or word has been moved from source to destination. The channel then notifies the device of completion by asserting the DONEN output during the last operand transfer cycle. On completion of the transfer, the Channel Active bit (CSR1.11) in the Channel Status Register is cleared and the COC bit (CSR1.15) is set. 8.4.3.2 Device termination The channel monitors the state of the DONEN line while acknowledging a device transfer request. If the device asserts DONEN, the channel will terminate the operation after transferring the current operand. The channel then clears bit CSR1.11, and sets bits CSR1.15 and CSR1.13 (all these bits reside in the Channel Status Register). 8.4.3.2 Software Abort The Software Abort bit (CCR1.4) allows the CPU to abort the current channel operation. (See description of Channel! Control Register). 8.4.4 BUS ERROR TREATMENT If both the BERRN and HALTN signals are asserted during a DMA controller cycle, the DMA controller will enter the RERUN state. If only the BERRN signal is asserted during a DMA controller cycle, the channel stops the controller operation, releases the bus, sets the ERR (CSR1.12) and COC (CSR1.15) bits and clears the April 1993 Channel Active bit (CSR1.11); all of these reside in the Channel Status Register. The channel also sets the error code in the Channel Error Register to indicate a bus error. 8.4.5 RESET Via RESETN, external sources and CPU programs can reset and initialize the DMA controller. if the DMA controller is the bus master when reset is detected, it releases the bus and resets all the bits of the Channel Status Register (except CSR1.8) to zero. 8.4.6 INTERRUPTS If the Interrupt Enable bit (CCR1.3) is set, the channel will send an interrupt when it terminates an operation (CSR1.15 bit set). The priority level of the interrupt is given by the IPL bits in the Channel Control Register. During the interrupt acknowledge cycle, the channel requests an autovector and thus the !PL bits correspond directly to the vector used. 8.5 Registers and counters The internal organization of the DMA controllers accessible registers is shown in Table 29. The following rules apply to all registers: e Aread from a reserved location in the map results in a read from the ‘null register’. The null register returns all ones for data and results in a normal bus cycle. A write to one of these locations results in a normal bus cycle but no write occurs. e Unused bits of a defined register are read as indicated in the register description. e All registers are addressable as 8-bit quantities. Addresses are arranged so that certain sets of registers may also be accessed as either words or long words. Compatibility with other 68000 family DMA controllers is provided by mapping control and status bits into bit positions which are equivalent to the register map of the other devices. Bits which are used in other devices but not in the DMA controller are assigned default values. If upward compatibility with the other devices is required, the programmer should use these default values when writing the control words to the registers; although they have no effect in the DMA controller. When a register is read, the default value is returned regardless of the value used when the register was programmed. The default values for unused bit positions in the DMA Controller registers, are specified in the register descriptions. Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 Table 29 DMA controller address map - Base address 8000 4000H. ADDRESS BITS'2 AFFECTED slelslalslalilo SYMBOL REGISTER MODE BY RESET c|/c}]/O0};}0]}0]010/] 0 {CSR Channel Status Register RAW? Yes c|/c!}/O01}0};0};]0/;]0} 1 |CER Channel Error Register R Yes c;};c;/O;O;]0]0;1] 0 Reserved c}/e;o;o;o0}]0j; 1; 1 Reserved c}/c]/O}]0O]0;1]0j0]DCR Device Control Register R/W Yes c|/c;oOj;0o0!]0]%4]0] 1 )0CR Operation Control Register R/W Yes ec|c};o;0;0)]1 {110 /SCR Sequence Control Register R/wW4 Yes ec/c!0j;0;0/1 17) 1 = 1CCR Channel Control Register R/W Yes ci}c;O;0;/1]0;] 0] 0 Reserved ec1}ec7;70;0;1)]0;/0)] 1 Reserved c|/c}O;]0j71]0)] 17) 0 |MTCH Memory Transfer Counter High R/W* No c/c/{/0;0;]1]0f, 17) 1 |MTCL Memory Transfer Counter Low R/V No ec/|/cj;O]0O;1]1 407] 0 |MACH Memory Address Counter High R/W No cic¢c¢j0oOj]0O]14 140) 1 |MACMH | Memory Address Counter Middle High R/AW No e/c]oO]o0O]; 14 1444 } 0 |MACML | Memory Address Counter Middle Low R/W No e}/c]O|;O; 1417 44 4 |MACL Memory Address Counter Low R/W No e}/c;/O|;1};0;]0)]X]{xX Reserved e|/c]o;}1t]of}14]0+7 0 |DACH Device Address Counter High R/W45 No e/ec]oOjf1s07 1 | 0 | 1 | DACHMH | Device Address Counter Middle High R/W5 No c}/c}]O;}1 {0 ]14 44 | 0 |DACML | Device Address Counter Middle Low R/W5 No e|/c]O;1]0] 14% 4 4 1 |DACL Device Address Counter Low R/WS No ec/c}]O;1},1]X1X]xX Reserved ej/c}1/O0};}O0]Xi XxX {xX Reserved ejc;/1]/O}141}]O;X}X Reserved e;c;/1;/oO; ttt] oqo Reserved ec/c]1]/0oO}14 1 ]0j 1 )CPR Channel Priority Register RW‘ No e;c;]/1;/O; 1714147 0 Reserved ejc;}/1;/oO};4t?_1)]14 1 Reserved efc;/1i1{/1+x>_X] x] xX Reserved Notes 1. ‘cc’ = 00 for Channel 1, 'cc’ = 01 for Channel 2, ‘cc’ = 10 or 11 reserved. ’*X’ denotes don't care states. Awrite to this register may perform a status reset operation. This is a dummy register present only to provide compatibility with other 68000 family DMA controllers. A write to this register has no effect on the DMA controller. 5. Channel 2 only. - ON April 1993 47 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 8.5.1 Device Controt Recister (DCR1) - CHANNEL 1 bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 ERM - DT1 DTO - - - - Fig.24 Device Control Register (DCR1) - Channel 1. Table 30 Description of DCR1 bits. SYMBOL BIT FUNCTION ERM DCR1.15 External Request Mode. This bit selects whether the channel operates in either Burst or Cycle Steal Mode. A logic 0 selects the Burst Mode and allows a device to request the transfer of multiple operands over consecutive bus cycles. A logic 1 selects the Cycle Steal Mode and allows a device to transfer operands on a per cycle basis. ~ DCR1.14 Not used; default value logic 0. DT1 DCR1.13 Device Type. These two bits determine how a device is addressed. See Table 31. DTO DCR1.12 - DCR1.11 This bit is not used. Must be a logic 0 if OCR1.5 and OCR1.4 = 00, otherwise a logic 1. When read, the vaiue of this bit is OCR1.5 or OCR1.4. - DCR1.10 Not used; default value logic 0. - DCR1.9 Not used; default value logic 0. - DCR1.8 Not used; default value logic 0. Table 31 Selection of method of address. DTi DTO FUNCTION 0 0 Reserved 0 1 Reserved 1 0 Reserved 1 1 The device connected is implicitly addressed by the 5 device control signals with handshake using ACKIN (or ACK2N) and RDYN. April 1993 48 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 8.5.2 Device ConTROL ReGisTer (DCR2) - CHANNEL 2 bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 ERM - DT1 DTO DS - - - Fig.25 Device Control Register (DCR2) - Channel 2. Table 32 Description of DCR2 bits. SYMBOL BIT FUNCTION ERM DCR2.15 External Request Mode. This bit selects whether the channel operates in either Burst or Cycle Steal Mode. A logic 0 selects the Burst Mode and allows a device to request the transfer of multiple operands over consecutive bus cycles. A logic 1 selects the Cycle Steal Mode and allows a device to transfer operands on a per cycle basis. - DCR2.14 Not used; default value logic 0. DT1 DCR2.13 Device Type. These two bits determine how a device is addressed. See Table 33. DTO DCR2.12 DS DCR2.11 Device Size. This bit functions only with explicitly addressed devices (DCR2.13 and DCR2.12 = 00). When a logic 0; the device port size is 8-bit. The device reads/writes using only the low-order half of the bus (DO to D7) or the high-order half (D8 to 015) depending on bit AO of the Device Address Counter. Depending on which part of the bus is used either LDSN for the low-order part or UDSN for the high-order part is asserted. During byte size transfers (OCR2.5 and OCR2.4 = 00) the half of the data bus used for read/write to the memory depends on the state of AO of the Memory Address Counter. During word size transfers (OCR2.5 and OCR2.4 = 01), read/write operations take place in two successive bytes; the DAC will either be unchanged or incremented by two per byte, depending on SCR2.9 and SCR2.8 (see Fig.26). When a logic 1; the device port size is 16-bits and the device is accessed as a normal memory location. - DCR2.10 Not used; default value logic 0. ~ DCR2.9 Not used; default value logic 0. - DCR2.8 Not used; default value logic 0. Table 33 Selection of method of address. DT1 DTO FUNCTION 0 0 The device is explicitly addressed by the Device Address Counter via the SCC68070 bus interface. Transfers are made in two bus cycles; the data being stored in the CPU between cycles. 0 1 Reserved 1 0 Reserved The device connected is implicitly addressed by the 5 device control signals with handshake using ACK1N (or ACK2N) and RDYN. April 1993 49 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 8.5.3 OPERATION CONTROL REGISTERS (OCR1 AnD OCR2) The format of the Operation Control Registers CCR1 and CCR2 is identical, the description below, applies to both. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 OS1 OSO - - - - Fig.26 Operation Control! Register OCR1 (and OCR2). Table 34 Description of OCR1 (and OCR2) bits. SYMBOL BIT FUNCTION D OCR1.7 Direction. When a logic 0; transfer is from memory to device. When a logic 1; transfer is from device to memory. - OCR1.6 Not used; default value logic 0. Ost OCR1.5 Operand Size. These bits determine whether UDSN, LDSN or both are generated OSO OCR1.4 during the transfer cycle and also to what value the address counters MAC and DAC (AC) are incremented by each transfer cycle. See Table 35. - OCR1.3 Not used; default value logic 0. - OCR1.2 Not used; default value logic 0. - OCR1.1 Not used; default value logic 1. - OCR1.0 Not used; default value logic 0. Table 35 Selection of operand size. Os! oso OPERAND SIZE 0 0 Byte 0 1 Word (16-bit) 1 0 Reserved 1 1 Reserved April 1993 50 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 8.5.4 SEQUENCE CONTROL REGISTER (SCR1) - CHANNEL 1 bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 - - - MAC1 MACO DAC1 DACO Fig.27 Sequence Control Register (SCR1). Table 36 Description of SCR1 bits. SYMBOL BIT FUNCTION ~ SCR1.15 Not used, default value logic 0. - SCR1.14 Not used, default value logic 0. - SCR1.13 Not used, default value logic 0. - SCR1.12 Not used, default value logic 0. MAC1 SCR1.11 Memory Address Counter control. These bits are not programmable, the Memory MACO SCR1.10 Address Counter always counts upwards. DAC1 SCR1.9 Device Address Counter control. These two bits are not used; both have a default DACO SCR1.8 value of logic 0. April 1993 51 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 8.5.5 SEQUENCE CONTROL REGISTER (SCR2) - CHANNEL 2 bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 - - - - MAC1 MACO DAC1 DACO Fig.28 Sequence Control Register (SCR2). Table 37 Description of SCR2 bits. SYMBOL BIT FUNCTION - SCR2.15 Not used, default value fogic 0. - SCR2.14 Not used, default value logic 0. - SCR2.13 Not used, default value logic 0. - SCR2.12 Not used, default value logic 0. MAC1 SCR2.11 Memory Address Counter control. These two bits determine whether the Memory MACO SCR2.10 Address Counter is to be incremented during transfers. See Table 38. DAC1 SCR2.9 Device Address Counter control. These two bits determine whether the Device DACO SCR2.8 Address Counter is to be incremented during transfers. See Table 39 Table 38 Memory Access Counter control. MAC1 MACO MEMORY ADDRESS COUNTER 0 0 The Memory Address Counter is not changed during transfers. 0 1 The Memory Address Counter is incremented by 1 or 2 during the transfer, depending on the operand size selected by bits OCR2.5 and OCR2.4 (byte or word transfer). 1 0 Reserved 1 1 Reserved Table 39 Device Address Counter control. DAC1 DACO DEVICE ADDRESS COUNTER 0 0 The Device Address Counter is not changed between transfers. 0 1 The Device Address Counter is incremented by 1 or 2 during the transfer, depending on the operand size selected by bits OCR2.5 and OCR2.4 (byte or word transfer). 1 0 Reserved 1 1 Reserved April 1993 52 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 8.5.6 CHANNEL ConTROL Reaisters (CCR1 AND CCR2) The format of the Channel Control Registers CCR1 and CCR2 is identical, the description below, applies to both. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 SO SA INE IPL2 IPL1 IPLO Fig.29 Channel Control Register CCR1 (and CCR2). Table 40 Description of CCR1 (and CCR2) bits. SYMBOL BIT FUNCTION 1@) CCR1.7 Start Operation. When a logic 0; no start pending. When a logic 1; the start bit is Set to initiate operation of the channel. - CCR1.6 Not used; default value logic 0. - CCR1.5 Not used; default value logic 0. SA CCR1.4 Software Abort. When a logic 0; do not abort. When a logic 1; abort operation. Setting this bit terminates the current operation and puts it into the idle state, then: - The COC bit (CSR1.15) and ERR bit (CSR1.12) are set - The Channel Active bit (CSR1.11) is reset - An Abort Error condition is signalled in the Channel Error Register. Setting this bit causes a pending start to be reset. When reading CCR1 this bit is always zero. INE CCR1.3 Interrupt Enable. When a logic 0; interrupts are disabled. When a logic 1; interrupts are enabled. IPL2 CCR1.2 Interrupt Priority Level. These three bits define the priority level of the interrupt IPL1 CCR1.1 given by the channel. See Table 41. IPLO CCR.0O Table 41 Selection of interrupt priority level. IPL2 IPL1 IPLO PRIORITY LEVEL 0 0 0 interrupt inhibited. 0 0 1 Level 1 0 1 0 Level 2 0 1 1 Level 3 1 0 0 Level 4 1 0 1 Level 5 1 1 0 Level 6 1 1 1 Level 7 April 1993 53 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 8.5.7 CHANNEL StaTus ReGistTeRs (CSR1 AND CSR2) CSR71 is read to obtain the status of the Channel 1; CSR2 is read to obtain the status of the Channel 2. The format of the Channel Status Registers CSR1 and CSR2 is identical, the description below, applies to both. bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 coc NDT ERR CA - - - Fig.30 Channel Status Register CSR1 (and CSR2). Table 42 Description of CSR1 (and CSR2) bits. SYMBOL BIT FUNCTION coc CSR1.15 Channel Operation Complete. This bit is set after the termination (whether successful or not) of any channel operation and indicates that the DMA transfer has been completed. It must be cleared before starting another channel operation. - CSR1.14 Not used; default value logic 0. NDT CSR1.13 Normal Device Termination. This bit is set when the device terminates channel operation by asserting DONEN while the device was being acknowledged. This bit must be cleared before another channel operation can start. ERR CSR1.12 Error. This bit is used to report that channel operation has been terminated because of an error. By reading the Channel Error Register (CER1) the cause of the error can be determined. This bit must be cleared before another channel operation can start. Clearing this bit also clears the Channel Error Register. CA CSR1.11 Channel Active.This bit is set automatically after channel operation has been started and remains set until channel operation terminates, whereupon it is automatically reset by the channel. This bit is not effected by write operations. Bits CSR1.15, CSR1.13 and CSR1.12 can be cleared by writing a logic 1 to the appropriate bit positions of the register. Writing a logic 0 to these bit positions has no effect. - CSR1.10 Not used, default value logic 0. - CSR1.9 Not used, default value logic 0. - CSR1.8 Not used, default value logic 0. April 1993 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 8.5.8 CHANNEL ERROR Recisters (CER1 AND CER2) The format of the Channel! Error Registers CER1 and CER2 is identical, the description below, applies to both. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit O - ~ - EC4 EC3 EC2 EC1 ECO Fig.31 Channel Error Register CER1 (and CER2). Table 43 Description of CER1 (and CER2) bits. SYMBOL BIT FUNCTION - CER1.7 Not used; default value logic 0. - CER1.6 Not used; default value logic 0. - CER1.5 Not used; default value logic 0. EC4 CER1.4 Error Code. -This field indicates the source of the error when the ERR bit, EC3 CER1.3 CSR1.12 (or CSR2.12) is set. Clearing the Error bit in the appropriate Channel EC2 CER1.2 Status Register also clears the associated Channel Error Register. See Table 44. EC1 CER1.1 ECO CER1.0 Table 44 Description of Error Codes. EC4 EC3 EC2 EC1 ECO ERROR 0 0 0 0 0 No Error. 0 0 0 1 0 Timing Error. An attempt has been made to start the channel before all the bits of the Channel Status Register have been cleared. 0 1 0 0 1 Bus Error memory side. A bus error (BERRN asserted without HALTN) has occurred during the cycle with MAC presenting the address. 0 1 0 1 0 Bus Error device side. A bus error (BERRN asserted without HALTN) occurred during the cycle with DAC presenting the address (Channel 2 only). 1 0 0 0 1 Software Abort. The channel operation was aborted by a Software Abort command (CCR1.4). April 1993 55 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 8.5.9 CHANNEL Priority Reaisters (CPR1 anp CPR2) CPR1 and CPR2 serve no function in their respective channels but are included only for programming compatibility with other 68000 family DMA controllers. CPR1 holds the value OOH; CPR2 holds the value 01H. The format of the Channel Priority Registers CPR1 and CPR2 is identical, the figure below, applies to both. 8.5.10 MEMorRY ADDRESS COUNTER (MACH, MACMH, MACML, MACL) The 32-bit memory address counter defines a memory location as the source or destination of the operand to be transferred, depending on the direction of the transfer. Only the least significant 24-bits of the counter (MACMH, MACML, and MACL) are implemented in the DMA controller. 8.5.11 Device AppREss Counter (DACH, DACMH, DACML, DACL) - CHANNEL 2 ONLY The 32-bit device address counter defines a device location as the source or destination of the operand to be transferred, depending on the direction of the transfer. Only the least significant 24-bits of the counter (DACMH, DACML, and DACL) are implemented in the DMA controller. 8.5.12 MEMORY TRANSFER COUNTER (MTCH, MTCL) The 16-bit memory transfer counter defines the number of operands to be transferred by the channel. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 PA PO Fig.32 Channel Priority CPR1 (and CPR2). April 1993 56 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 9. PERIPHERAL INTERRUPT CONTROL 9.1 Peripheral Interrupt Control Registers The I?C-bus and UART serial interfaces and the Timer, use a common set of Peripheral Interrupt Control Registers (PICR1 and PiCR2). These registers are memory mapped on the on-chip bus and communicate with the CPU of SCC68070. 9.1.1 PERIPHERAL INTERRUPT CONTROL REGISTER (PICR1) This register controls the I?C serial bus interface and the Timer. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 PIR IPL2 IPL1 IPLO PIR IPL2 IPL1 IPLO Fig.33 Peripheral interrupt Control Register (PICR1). Table 45 Description of PICR1 bits. SYMBOL BIT FUNCTION PIR PICR.7 Pending Interrupt Reset. When set to a logic 1 any pending interrupt of the I2C-bus interface will be reset. Note that this does not reset the interrupting status of a peripheral and further, if the IPL bits are changed without setting the PIR bit then spurious interrupts may occur. Reading the PIR bit will return a ’0’. IPL2 PICR.6 Interrupt priority level. These three bits determine the interrupt priority level of the IPL1 PICR.5 interrupt requested by the |?C-bus interface. See Table 46. IPLO PICR.4 PIR PICR.3 Pending Interrupt Reset. When set to a logic 1 any pending interrupt of the Timer will be reset. Note that this does not reset the interrupting status of a peripheral and further, if the IPL bits are changed without setting the PIR bit then spurious interrupts may occur. Reading the PIR bit will return a ‘0’. IPL2 PICR.2 Interrupt priority level. These three bits determine the interrupt priority level of the IPL1 PICR.1 interrupt requested by the Timer. See Table 46 IPLO PICR.O Note Initially and after RESET, all PICR1 bits are cleared to zero. April 1993 57 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 Table 46 Selection of interrupt priority level. IPL2 IPL1 IPLO PRIORITY LEVEL 0 0 0 Interrupts inhibited 0 0 1 Level 1 0 1 0 Level 2 0 1 1 Level 3 1 0 0 Level 4 1 0 1 Level 5 1 1 0 Level 6 1 1 1 Level 7 April 1993 58 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 9.1.2 PERIPHERAL INTERRUPT CONTROL REGISTER (PICR2) This register controls the UART. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 PIR IPL2 IPL1 IPLO PIR IPL2 IPL1 IPLO Fig.34 Peripheral interrupt Control Register (PICR2). Table 47 Description of PICR2 bits. SYMBOL BIT FUNCTION PIR PICR.7 Pending Interrupt Reset. When set to a logic 1 any pending interrupt of the UART receiver will be reset. Note that this does not reset the interrupting status of a peripheral and further, if the IPL bits are changed without setting the PIR bit then spurious interrupts may occur. Reading the PIR bit will return a logic 0. IPL2 PICR.6 Interrupt priority level. These three bits determine the interrupt priority level of the IPL1 PICR.5 interrupt requested by the UART receiver. See Table 48. IPLO PICR.4 PIR PICR.3 Pending Interrupt Reset. When set to a logic 1 any pending interrupt of the UART transmitter will be reset. Note that this does not reset the interrupting status of a peripheral and further, if the IPL bits are changed without setting the PIR bit then spurious interrupts may occur. Reading the PIR bit will return a logic 0. IPL2 PICR.2 interrupt priority level. These three bits determine the interrupt priority level of the IPL1 PICR.1 interrupt requested by the UART transmitter. See Table 48. IPLO PICR.O Note Initially and after RESET, all PICR2 bits are cleared to zero. Table 48 Selection of interrupt priority level. IPL2 IPLi IPLO PRIORITY LEVEL 0 0 0 Interrupts inhibited 0 0 1 Level 1 0 1 0 Level 2 0 1 1 Level 3 1 0 0 Level 4 1 0 1 Level 5 1 1 0 Level 6 1 1 1 Level 7 April 1993 59 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 10. THE I?C SERIAL BUS INTERFACE The SCC68070 has a serial I/O interface so that it can communicate with other devices via the I?C-bus. The l2?C-bus can be used in master or slave mode, and can be connected to a maximum of 128 different peripheral IC’s, each with a unique device address. Maximum transmission speed is 100 kbits/s. Communication with the bus is via two dedicated pins, SCL the Serial Clock pin and SDA the Seria! Data pin. The interface can generate interrupts with priorities programmed to one of seven levels. A complete data transfer is shown in Fig.36. 10.1 Operating modes The CPU can operate in the following modes with the serial |?C-bus. 1. Master transmitter 2. Master receiver 3. Slave transmitter 4. Slave receiver ~- | SLAVE ADDRESS | Gc > S1ADR SDA + | SHIFT REGISTER hs S1DAT n ABRITRATION LOGIC z a 3 SCL ¢ {Bus CLOCK GENERATOR] i TT L7telsfe]sfe}s [ops S1CON Lzfetst«tste{sfop SiSTA MBC749 Fig.35 Block diagram of I?C serial I/O. April 1993 60 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 10.2 The I?C-bus /O registers The communication between the CPU and the i?C-bus interface is via a set of registers and an interrupt request facility. All I?C-bus registers are accessible by read or write operations. The data and information controlling the operation of the interface is stored in the following registers (these are fully transparent and memory mapped to the CPU). Table 49 I?C-bus register address map - Base address 8000 2000H. A3 A2 Al AO REGISTER 0 0 0 0 Reserved 0 0 0 1 Data Register (IDR) 0 0 1 0 Reserved 0 0 1 1 Address Register (IAR) 0 1 0 0 Reserved 0 1 0 1 Status Register (ISR) 0 1 1 0 Reserved 0 1 1 1 Control Register (ICR) 1 0 0 0 Reserved 1 0 0 1 Clock Control Register (ICCR) gi 1Pe a | J iat J { lL IL J tll? START ADDRESS AW ACK DATA DATA ACK STOP CONDITION CONDITION MCD526 Fig.36 Acomplete data transfer on the I?C bus. April 1993 61 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 10.2.1 Data Reacister (IDR) The Data Register performs the conversion between the serial and parallel data formats. Data to be transmitted is loaded into IDR by the CPU and then shifted out serially (MSB first), and data received on the serial bus is shifted into IDR (MSB first) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 DAT7 DAT6 DATS DAT4 DAT3 DAT2 DAT1 DATO Fig.37 Data Register (IDR). 10.2.2 Appress ReaisTEeR (IAR) The Address Register holds the slave address and the ALS bit. It is only written to by the CPU and remains unchanged until rewritten. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit O SLAG SLA5 SLA4 SLA3 SLA2 SLA1 SLAO ALS Fig.38 Address Register (IAR). Table 50 Description of IAR bits. SYMBOL BIT FUNCTION SLAG to SLAO | IAR.7 to IAR.1 | Slave Address. These 7-bits represent the slave address allocated to the device. ALS IAR.O Always Selected. When set to a logic 1 disables the address recognition and the interpretation of the R/W bit of the first byte. Thus, the }C-bus interface will transfer in the Free Data Format and will respond to each data transfer. April 1993 62 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 10.2.3 Status Reaister (ISR) The Status Register contains all the information concerning the status of the I?C-bus interface. All bits can be written to or read, by the CPU. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 MST TRX BB PIN AL AAS ADO LRB Fig.39 Status Register (ISR). Table 51 Description of ISR bits. SYMBOL BIT FUNCTION MST ISR.7 Master. If MST = 1, the I?C-bus interface is in the master mode and generates clock pulses on SCL for transmission/reception timing of serial data. If MST = 0, the I?C-bus is in the slave mode and clock pulses are received from the master on SCL. TRX ISR.6 Transmitter. if TRX = 1, the I2?C-bus interface is in the transmitter mode and data in the IDR is shifted out onto the data line SDA, synchronized with the clock pulses on SCL. If TRX = 0, the I?C-bus interface is in the receiver mode and data on the data line SDA is shifted into the IDR synchronized with the clock pulses on SCL. BB ISR.5 Busy. This bit indicates the state of the serial bus. If BB = 0, the bus is free. if BB = 1, the bus is busy. PIN ISR.4 Pending Interrupt Not. The PIN bit is set to a logic 0 every time an I?C-bus interrupt is requested. Any access to IDR will set the PIN bit to a logic 1. AL ISR.3 Arbitration Lost. The AL bit generally indicates the detection of an error. It is set to a logic 1 when: - Adata error occurs in the transmitter mode - The CPU tries to write to the ISR from the slave mode when it is not selected and the bus-busy flag is already set to a logic 1 The AL bit is reset to a logic 0 by any access to IDR. ISR.2 Addressed As Slave. AAS is set to a logic 1 when the address comparator recognizes either its own slave address, the general call address (8 zeros) or the first byte in the free data format that has been received. AAS is reset to zero by any access to IDR. ADO ISR.1 Address Zero. ADO is set to a logic 1 if the address comparator detects the general call address (8 zeros). It is reset to a logic O when either a START or STOP condition is detected. LRB ISR.O Last Received Bit. When the interface is in the transmitter mode the LRB bit contains the receiver acknowledge bit. LRB = 0 when the reception of the transmission has been acknowledged. April 1993 63 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 10.2.4 Controt Reaister (ICR) Some additional functions of the interface are provided by the Control Register. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 - SEL - - ESO ACK - - Fig.40 Control Register. Table 52 Description of ICR bits. SYMBOL BIT FUNCTION - ICR.7 Not used SEL ICR.6 Selected. The SEL bit is a flag set (together with the AAS bit in the Status detected. Register) by the interface logic when in the slave mode, and remains set during the whole transfer. It is reset when a STOP, START or repeated Start condition is - ICR.5 Not used - ICR.4 Not used a’1' bit is sent. ESO ICR.3 Enable l?C-bus. When the ESO bit is set the I2?C-bus is enabled and when reset the |?C-bus is disabled. Only the CPU can alter the ESO bit. ACK ICR.2 Acknowledge. This bit determines the polarity of the acknowledge that a receiver sends after correct reception of a byte. If ACK is a logic 1, reception will be acknowledged by a ’0’ bit. If ACK is a logic 0, reception will not be acknowledged, - ICR.1 Not used - ICR.O Not used April 1993 64 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 10.2.5 Clock Controx ReaisTer (ICCR) By programming the Clock Control Register, the frequency of SCL and SDA can be adapted to the needs of the l?C-bus or the SCC68070's system clock. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ~ - - CK4 CK3 CK2 CK1 CKO Fig.41 l2C Clock Control Register (ICCR). Table 53 Description of ICCR bits. SYMBOL BIT FUNCTION - ICCR.7 Undefined, reserved, reading this bit will return a logic 1. - ICCR.6 Undefined, reserved, reading this bit will return a logic 1. - ICCR.5 Undefined, reserved, reading this bit will return a logic 1. CK4 ICCR.4 These five bits are programmed to adapt the frequency of SCL and SDA to the CK3 ICCR.3 needs of the system. After initialization or RESET these bits are cleared to zero CK2 ICCR.2 and must be programmed to a non-zero value before the l?C-bus is enabled. See CK1 ICCR.1 Table 54. CKO ICCR.O April 1993 65 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 Table 54 [?C-bus interface divisors. SCL FREQUENCY (kHz) CK4 | CK3 | CK2 | CK1 | CKO DIVISOR fora = 19.6608 MHz fra, = 30 MHz 0 0 0 0 0 illegal - - ) 9) ) 0) 1 78 126.025 192.3080 0) 0 0 1 9) 90 109.2221) 166.667" 1) 0 0) 1 1 102 96.372 147,059 ) 0) 1 ) 9) 126 78.015 119.048") 0 ) 1 0 1 150 65.533 100.000 a) 0 1 1 0 174 56.494 86.207 ) 0 1 1 1 198 49.464 75.758 ) 1 0 ) ) 246 39.959 60.976 0 1 0) ) 1 294 33.435 51.020 ) 1 0) 1 0 342 28.742 43.860 ) 1 ) 1 1 390 25.205 38.462 0) 1 1 0 0 486 20.266 30.864 0) 1 1 0 1 582 16.890 25.773 ) 1 1 1 0) 678 14.498 22.124 ) 1 1 1 1 774 12.700 19.380 1 ) ) 0) 1) 996 10.175 15.060 1 ) 0 1) 1 1158 8.488 12.953 1 0) 0) 1 0) 1350 7.281 11.111 1 0) 0) 1 1 1542 6.374 9.728 1 ) 1 ) 0 1926 5.103 7.788 1 0 1 ) 1 2310 4.255 6.494 1 0 1 1 8) 2694 3.648 5.568 1 0) 1 1 1 3078 3.193 4.873 1 1 0 ) 0 3846 2.555 3.900 1 1 0 0) 1 4614 2.130 3.251 1 1 1) 1 ) 5382 1.826 2.787 4 1 ) 1 1 6150 1.598 2.439 1 1 1 ) 0) 7686 1.278 1.952 1 1 1 0 1 9222 1.065 1.627 1 1 1 1 ) 10758 0.913 1.394 1 1 1 1 1 12294 0.799 1.220 Note 1. The maximum bus clock frequency in an I?C-bus system is specified as 100 kHz. April 1993 66 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 11. UART SERIAL INTERFACE AUART (Universal Asynchronous Receiver/Transmitter) interface is included on-chip and functions like a subset of the UART’s 2642, 2661 and 2691. The UART interfaces directly with the CPU and can be used in either polied or interrupt driven modes. It accepts programmed instructions from the CPU whilst supporting asynchronous serial data communication in either full or half-duplex mode. The interface then converts data received from the CPU into a serial form for transmission, and simultaneously it can receive serial data and convert it into parallel data as input to the CPU. Two bit rate generators can be programmed to generate transmit/receive bit rates by either using the SCC68070's system clock, or accepting an external clock via the XCKI input. 11.1 Programming Before initiating data communication, the UART operation mode must be programmed by writing to the Mode, Clock Select and Command Registers. The UART interface can be re-configured at any time during program execution however, when writing to the Mode and Clock Select Registers the transmitter and receiver shouid be disabled. The Mode Register defines the general operational characteristics of the interface, while the Command Register controls the operation within the basic framework. Using the Clock Select Register, the bit rates for transmitter and receiver can be set and the result of the operation displayed in the Status Register. Certain bits of these registers are cleared when either a RESET input is applied, when a RESET instruction is performed by the CPU or when special reset commands are programmed into the UART interface. ON-CHIP BUS OPERATION CONTROL MODE REGISTER = TRANSMITTER COMMAND REGISTER LJ TRANSMIT DATA STATUS REGISTER _ HOLDING REGISTER |{—* xO TRANSMIT "a »1| SHIFT REGISTER BAUD RATE || if GENERATORS . AND XCK| —-»| CLOCK CONTROL > RECEIVER CLOCK SELECT RECEIVE DATA REGISTER HOLDING REGISTER |{* _ Px2 ; RECEIVE — >| SHIFT REGISTER CTSN —+d CONTROL —_ RTSN <—d MCDS31 Fig.42 UART block diagram. April 1993 67 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 11.2 UART registers Table 55 UART register address map - Base address 8000 2011H. A3 A2 Al AO REGISTER 0 0 0 1 UART Mode Register (UMR) 0 0 1 1 UART Status Register (USR) 0 1 0 1 UART Clock Select (UCS) 0 1 1 1 UART Command Register (UCR) 1 0 0 1 UART Transmit Holding Register (UTH) 1 0 1 1 UART Receive Holding Register (URH) 1 1 0 1 Undefined, reserved 1 1 1 1 Undefined, reserved Note All locations with AO = 0 are undefined, reserved. April 1993 68 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 11.2.1 Mooe Reaister (UMR) All bits of this register are cleared by a RESETN signal or a RESET instruction issued by the CPU, with the exception of bit 5 which is not used but returns a logic 1 when read. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 OM1 OMO - TXC PC P SB CL Fig.43 UART Mode Register (UMR). Table 56 Description of UMR bits. SYMBOL BIT FUNCTION OM1 UMR.7 Operation Mode. These two bits determine the operation mode of the UART OMO UMR.6 interface. See Table 57. - UMR.5 Not used; default value logic 1. TXC UMR.4 Transmitter Control. Determines if the CTSN input controls the operation of the transmitter. If set to a logic 0, CTSN has no influence on the transmitter. If set toa logic 1, the transmitter monitors the state of CTSN every time it is ready to senda character and delays transmission until CTSN has been asserted. PC UMR.3 Parity Control. Controls the parity generation and when enabled a parity bit is added to the transmitted character and the receiver performs a parity check on the incoming data. When PC is a logic 0, parity is disabled. P UMR.2 Parity. Selects either odd or even parity when parity has been enabled by the UMR.3 bit. If a logic 0, odd parity is selected. If a logic 1, even parity is selected. $B UMR.1 Stop Bit. Selects the number of STOP bits. A logic 0 selects one stop bit. A logic 1 selects two stop bits. CL UMR.O Character Length. Selects the character length (7 or 8 bits). This does not include ‘the parity bit (if programmed) or the START/STOP bits. If CL = 0; the character length is seven bits. If CL = 1; the character length is eight bits. Table 57 Selection of operation mode. OmM1 OMO OPERATION MODE 0 0 Selects the normal mode, with the transmitter and receiver operating independently. 0 1 Places the channel in the auto echo mode which automatically retransmits the received data. 1 0 Selects local loopback mode. Selects the remote loopback mode. April 1993 69 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 11.2.2 Clock SELECT Reaister (UCSR) The UCSR allows the selection of the clock source and baud rate for the receiver and transmitter. The baud rates given in Table 59 are generated when either a 19.6608 MHz clock is used as the system clock (source = intemal) or a 4.9152 MHz clock is applied to XCKI (source = external). Other frequencies will give a different set of baud rates. Note that when using the SCC68070’s internal clock, it is pre-divided by 4. All bits of this register are cleared by a RESETN signal or by a RESET instruction issued by the CPU, with the exception of Bit 3 which is not used but returns a logic 1 when read. bit 7 bit 6 bit § bit 4 bit 3 bit 2 bit 1 bit 0 cs RCS2 RCS1 RSCO - TCS2 TCS! TCSO Fig.44 UART Clock Select Register (UCSR). Table 58 Description of UCSR bits. SYMBOL BIT FUNCTION cs UCSR.7 Clock Source. This bit selects the clock source for the receiver and transmitter baud rates. If UCSR.7 is a logic 1, then an external clock source (XCKI) is selected. The maximum frequency that can be applied to XCKI is 10 MHz. If UCSR,7 is a logic 0, the internal clock source is selected. After RESET, the clock source is the on-chip clock and with a 19.6608 MHz crystal, the listed baud rates are possible. RCS2 UCSR.6 Receiver Clock Select. These three bits determine the baud rate of the receiver. RCS1 UCSR.5 See Table 59. RCSO UCSR.4 - UCSR.3 Not used; default value logic 1. TCS2 UCSR.2 Transmitter Clock Select. These three bits determine the baud rate of the TCS1 UCSR.1 transmitter.See Table 59. TCSO UCSR.O Table 59 Selection of receiver and transmitter baud rates. RCS2 RCS1 RCSO BAUD RATE DIVISOR TCS2 TCs! TCSO 0 0 0 75 65536 0 0 150 32768 0 1 0 300 16384 0 1 1 1200 4096 1 0 0 2400 2048 1 0 1 4800 1024 1 1 0 9600 512 1 1 1 19200 256 April 1993 70 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 11.2.3 Commano Recister (UCR) The UCR is used to write commands to the UART. All bits of this register are cleared by a RESETN signal or by a RESET instruction issued by the CPU, with the exception of Bit 7 which is not used but returns a ’1’ when read. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 MC2 MC1 MCO TXC1 TXCO RXC1 RxXCO Fig.45 UART Command Register (UCR). Table 60 Description of UCR bits. SYMBOL BIT FUNCTION - UCR.7 Not used, default value logic 1. MC2 UCR.6 Miscellaneous Commands. The encoded value of this field may be used to specify MC1 UCR.5 a single command as is shown in Table 61. MCO UCR.4 TXC1 UCR.3 Transmitter Control. These two bits control the operation of the UART transmitter. TXCO UCR.2 See Table 62. RXC1 UCR.1 Receiver Control. These two bits control the operation of the UART receiver. See RXCO UCR.O Table 62. Table 61 Miscellaneous commands. MC2 MC1 MCO COMMANDS 0 0 0 No command 0 0 1 No command 0 1 0 Reset receiver. Resets the receiver as if a hardware reset has been applied. 0 1 1 Reset transmitter. Resets the transmitter as if a hardware reset has been applied. 1 0 0 Reset error status. Clears the received break, parity error, framing error and overrun error bits in the Status Register USR 7:4. 1 0 1 No command 1 1 0 Start break. Forces the TXD output LOW (spacing). 1 1 1 Stop break. The TXD line will go HIGH (marking) within two bit times. TXD will remain HIGH for one bit time before the next character, if any, is transmitted. Table 62 Transmitter and receiver control. TXC1 TXCO TX/RX CONTROL RXC1 RXCO 0 0 Enable transmitter/receiver 0 1 Disable transmitter/receiver 1 0 Iliegal 1 1 illegal April 1993 71 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 11.2.4 Status Reaister (USR). The Status Register can be read by the CPU to determine the condition of an enabled receiver or transmitter. All bits of this register are cleared by a RESETN or by a RESET instruction issued by the CPU, except bit 1 which is not used and returns a logic 1 when read. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 RB FE PE OE TXE TXRDY ~ RXRDY Fig.46 UART Status Register (USR). Table 63 Description of USR bits. SYMBOL BIT FUNCTION RB USR.7 Received Break. FE USR.6 Framing Error. A logic 1 indicates that a framing error has occurred. PE USR.5 Parity Error. A logic 1 indicates that a parity error has occurred. A logic 0 indicates no parity error. OE USR.4 Overrun Error. A logic 1 indicates an overrun error has taken place. TXEMT USR.3 Transmitter Empty. A logic 1 indicates that the Transmit Data Register is empty. TXRDY USR.2 Transmitter Ready. A logic 1 indicates that the transmitter is ready. - USR.1 Not used, default value logic 1. RXRDY USR.O Receiver Ready. A logic 1 indicates that the receiver is ready. April 1993 72 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 12. TIMER The Timer comprises a 16-bit reference timer with an auto-reload register and two identical (independently function-programmable) 16-bit registers. The clock period of the reference timer and hence the maximum resolution is 96/CLKOUT(MHz) ts. Two programmable \/O lines provide the necessary connection to external circuitry. Three modes can be selected: e Match or pulse output mode which changes the output state when there is a match between the reference and register values e Count mode which counts external events that occur at the T1 (T2) input « Capture mode which stores the reference timer value in a capture register when an external event occurs at the T1 (T2) input. Any transition on the inputs to T1 or T2 can be programmed as an external event. 12.1 Timer Registers The CPU can read from or write to all the timer registers and they can also be accessed “on the fly". The address map of the timer registers is shown in Table 64. Table 64 Timer registers address map - Base address 8000 2020H. A3 A2 Al AO REGISTER 0 0 0 0 Timer Status Register (TSR) 0 0 0 1 Timer Control Register (TCR) 0 0 1 0 Reload Register HIGH (RRH) 0 0 1 1 Reload Register LOW (RRL) 0 1 6 0 Timer 0 HIGH (TOH) 0 1 0 1 Timer 0 LOW (TOL) 0 1 1 0 Timer 1 HIGH (T1H) 0 1 1 1 Timer 1 LOW (T1L) 1 0 0 0 Timer 2 HIGH (T2H) 1 0 0 1 Timer 2 LOW (T2L) April 1993 73 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 12.1.1 TimER ConTROL Reaister (TCR) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 E1 EO M1 Mo E1 EO M1 Mo Fig.47 Timer Control Register (TCR). Table 65 Description of TCR bits. SYMBOL BIT FUNCTION E1 TCR.7 Event. Control for external events monitored to trigger a function in Timer register EO TCR.6 T1. See Table 66. M1 TCR.5 Mode. Control for the function of Timer register T1. See Table 67. MO TCR.4 E1 TCR.3 Event. Control for external events monitored to trigger a function in Timer register EO TCR.2 T2. See Table 66. M1 TCR.1 Mode. Control for the function of Timer registers T2. See Table 67. Mo TCR.O Table 66 Selection of input trigger T1 and T2. E1 EO EVENT 0 0 Input inhibited. 0 1 LOW-to-HIGH transitions will be monitored. 1 0 HIGH-to-LOW transitions will be monitored. 1 1 Any transition will be monitored. Table 67 Mode selection for T1 and T2. M1 MO MODE 0 0 Timer inhibited. 0 1 Match Mode. A match between the reference timer TO with the respective Timer register will reset output T1 or T2. Each overflow of TO will set output T1 or T2. The I/O port of the Timer is automatically switched to output mode. 1 0 Capture Mode. When an externa! event occurs (as described above), the contents of the reference timer TO will be stored in the Timer register T1 or T2. Event Counter Mode. When an external event occurs the timer register T1 or T2 will be incremented. April 1993 74 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 12.1.2 Timer Status REGISTER (TSR) The Timer Status Register indicates which timer and what specific event occurred that caused an interrupt (if enabled) and can be read by the CPU. After being read, each bit of this register should be reset by software as an acknowledge of the read because the status bits are automatically set but are not reset by the Timer. To reset each bit a logic 1 must be written to the appropriate bit position of the register. bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 OV MA CAP OV MA CAP OV - Fig.48 Timer Status Register (TSR). Table 68 Description of TSR bits. SYMBOL BIT FUNCTION OV TSR.15 Overflow. A logic 1 indicates that an overflow has occurred in Timer TO. MA TSR.14 Match.-A match between the value stored in Timer register T1 and the value of the continuous Timer TO has occurred (in match mode). CAP TSR.13 Capture. When an external event occurs the current value of the continuous Timer TO is stored in Timer T1 (in capture mode). OV TSR.12 Overflow. The Timer T1 counts from FFFFH to OOOOH. This bit will be reset by Timer T1 in event-counter mode only. MA TSR.11 Match. A match between the value stored in Timer register T2 and the value of the continuous Timer TO has occurred (in match mode). CAP TSR.10 Capture. When an external event occurs the current value of the continuous Timer TO is stored in Timer T2 (in capture mode). OV TSR.9 Overflow. The Timer T2 counts from FFFFH to OOOOH. This bit will be reset by Timer T2 in event-counter mode only. ~ TSR.8 Undefined, reserved. 12.1.3 REFERENCE TIMER The Reference Timer TO will increment by 1 (starting from the value initially loaded into TOH and TOL). Using a crystal frequency of 19.6608 MHz the device will increment every 9.766 ps (or 96 CKOUT cycles). When TO reaches FFFFH, the OV flag in the Status Register is set, and the Reload Register (RR) is loaded into TO. TO will then start incrementing again until the next overflow occurs. A 30 MHz XTAL frequency will increment the timer every 6.4 ps, independently of the XCKI frequency. A 35 MHz XTAL frequency will increment the timer every 5.49 us. April 1993 75 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 13. ELECTRICAL CHARACTERISTICS 13.1 Limiting values In accordance with the Absolute Maximum Rating System (IEC 134). SYMBOL PARAMETER MIN. MAX. UNIT V, Input voltage on any pin with respect to ground (Vgs) - -0.3 Vv ar Input, output current - +10 mA Po Total power dissipation - 2 WwW T stg Storage temperature -55 +150 °C Tmo Operating ambient temperature SCC68070CXX 0 +70 °C SCC68070AXX -40 +85 °C Notes to Limiting Values and Electrical characteristics 1. Stresses above those listed in the Absolute Maximum System may cause permanent damage to the device. These are stress ratings only and do not mean that the device will operate at these or other conditions above those given in the operation section. 2. For operating at elevated temperatures, the device must be derated based on a 150 °C maximum junction temperature. 3. This product contains circuitry specifically designed to protect its internal devices from excessive static charge. Nevertheless it is recommended that conventional precautions be taken to avoid applying any voltage above the rated maxima. 4. Parameters are valid over specified temperature range. 5. All voltages are measured with ground as reference (GRD). For testing, all input signals swing between 0.4 and 2.4 V with a transmission time of 5 ns maximum. All time measurements are made with input and output voltages of 0.8 and 2.0 V as appropriate. 6. On-clock input XTAL1 when an external clock is used. 7. All timing measurements have CKOUT as a reference for both internal oscillator and external clock input modes. The device has been designed to be used with a 35 MHz crystal but the minimum crystal frequency specified is 8 MHz. All timing measurements except number 1 are specified at 19.6608, 25, 30 and 35 MHz. 8. Actual value depends on clock period. 9. After Vop has been applied for 100 ms. 10. If the asynchronous setup time (#41A) requirements are met, the DTACKN LOW-to-data setup time (#31) requirements can be ignored. The data must only satisfy the data-in to clock-LOW setup time (#27) for the following cycle. 11. If the asynchronous setup time (#41A) requirements are met, for both DTACKN and BERRN, then #42 may be 0 ns. 12. All timing diagrams should only be referred to in regard to edge-to-edge measurements of the timing specifications. They are not intended as a functional description of the input and output signals. Refer to the functional description and related diagrams for device operation. April 1993 76 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 13.2 DC Characteristics Vop = 5.0 V 10%; Veg = 0 V: Tamp = 0 to +70 °C or —40 to +85 °C, dependent on type number. (See Figs 49 to 51 and notes 4 and 5). SYMBOL PARAMETER CONDITIONS MIN. MAX. | UNIT Vin Input voltage HIGH, all inputs 2.0 Vop Vv except XTAL1, XTAL2, SDA, SCL Vien XTAL1 Vop = 5.5 V 0.8V5p Vop Vv Vine SDA, SCL see note 1 3.0 Vop Vv Vir Input voltage LOW, all inputs Veg — 0.3 | 0.8 Vv except SDA, SCL he Input leakage current Vop = 5.25 V; - 20 pA RXD, CTSN, XCKI, DTACKN, INTIN, INT2N, Vin = 5.25 V; REQIN, REQ2N, RDYN, IN2N, IN4N, INSN, NMIN, | see note 2 AVN, XTAL1 Itsy 3-state (off-state) input current Vin = 2.4/0.4 V - 20 pA A1-A23, DO-D15, ASN, LDSN, R/WN, UDSN, T1, T2 lop Open-drain (off-state) input current Von = 5.25 V - 20 pA BGACKN, RESETN, HALTN, BERRN, DTCN, DONEN, SCL, SDA Vou Output voltage HIGH lon = 400 pA 2.4 - Vv A1-A23, DO-D15, ASN, BGN, LDSN, R/WN, UDSN, T1, T2, TXD, RTSN, ACKN1N, ACKNe2N, IACKN2, IACKN4, IACKNS5, IACKN7 Vout CKOUT low = 400 pA 0.8V,, |- Vv Vor Output voltage LOW lo = 3.2 MA - 0.5 Vv HALTN, BERRN, IACKN2, IACKN4, IACKNS, IACKN7, A1-A23, BGN, BGACKN, ACKNIN, ACKN2@N, RESETN, T1, T2, RTSN, ASN, DO-D15, LDSN, R/WN, UDSN, DTCN, DONEN Vou CKOUT lo, = 3.2 MA - 0.45 Vv Vote SDA, SCL lo. = 3.0 MA - 0.45 Vv lop Current consumption CKOUT = 15 MHz | - 66.5 mA CKOUT = 17.5 MHz | - 75 mA om Input capacitance Vin = OV; - 20 pF Tam = 25 °C; frequency = 1 MHz Notes 1. The minimum value is not tested, applied by external pullups. 2. Vy = enforced voltage. April 1993 77 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 Vv Test Point | R (kQ)|C (pF) DD RESETN 12 | 130 HALTN 12 | 130 RL SDA 1.4 | 400 test point SCL 14 400 BGACKN 14 | 130 7a DONEN 12 | 130 L V, BERRN 12 | 130 Ss DTCN 4.2 | 130 MEA&&& Fig.49 Open drain, bidirectional test loads. Vop CL = 130 pF (including all parasitics) except CKOUT for which C__ = 50 pF | lou VTH = 1.6 V system load threshold voltage at which dynamic loads (lo, and IQH ) switch; see DC characteristics test point ton OD “tn MCOS46 Fig.50 Remaining test loads. 7+ (1) (2) Ipp measurement M—" 4 RESETN HALTN MEASE2 210 ms. Fig.51 Ip) measurement. April 1993 78 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 MEA8&6 80 IDD PA (mA) a 60 A LL LA A 40 20 n) 8 10 #12 «#14 «6160618 ~~ 20 foxouT (MHz) Fig.52 lppmax aS a function of frequency. April 1993 79 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 13.3 AC Characteristics Von = 5 V 10%, Vgg = 0 V, Tamp = 0 to +70 °C or —40 to +85 °C (dependent on type number), C, on CKOUT = 50 pF (see Figs 53 to 56). 19.6 MHz 25 MHz 30 MHz 35 MHz SYMBOL PARAMETER No UNIT MIN | MAX] MIN | MAX] MIN | MAX] MIN | MAX teye Crystal or input clock period 1 50 {125 | 40 125 133 |125 | 28.5 | 125 ns tyuov XTAL HIGH to CKOUT HIGH or 1A 1/8 96 |5 45 |5 40 |5 30 ns LOW tooe CKOUT LOW level 2 33. |{- 25 |- 20 {- 15 |- ns teon CKOUT HIGH level 3 33) Oo - 2 |- 20 |[- 15 |- ns teor CKOUT fall-time 4 - 10 | - 10 j- 10 |- 10 ns teor CKOUT rise-time 5 - 12 |- 10 |- 10 |- 10 ns torav CKOUT LOW to address valid 6 - 55 |- 50 |- 50 |- 45 ns touazx CKOUT HIGH to address/data, 7 - 55 |- 55 |- §5 |- 55 ns high-impedance (max.) tonazn CKOUT HIGH to address invalid 8 0 - 0 - 0 - 0 - ns (min.) toust CKOUT HIGH to ASN, DSN LOW 9 0 45 |0 45 |0 45 10 30 ns tavsi Address to ASN/DSN (read), ASN 118 = |20 = |- 10 |- 10 |- 10 |- ns (write) LOW torsy CKOUT LOW to ASN, DSN HIGH 12 10 55 |0 45 {0 45 |0 45 ns topaz ASN, DSN HIGH to address invalid | 138° |20 |- 10 |- 10 |- 10 |- ns ts. ASN/DSN (read), ASN (write) LOW |14® |200 |- 160 |- 130 |- 105 |- ns level tost DSN LOW level (write) 14A®|100 |- 80 |- 65 |- 50 |- ns ts ASN, DSN HIGH level 15 |100 |- 80 |- 70 |- 60 |- ns tousz CKOUT HIGH to ASN, DSN high 16 |- 65 |- 55 |- 50 |- 50 ns impedance tonny ASN, DSN HIGH to R/AWN HIGH 178 }20 |- 10 |- 10 |- 10 |- ns (read) tonrH CKOUT HIGH to R/WN HIGH 18 |0 55 |0 45 |0 45 |0 45 ns touaL CKOUT HIGH to R/WN LOW (write) | 20 | - 55 |- 45 |- 45 |- 45 ns tava Address valid to R/WN LOW (write) | 218 |0 - 0 - 0 - 0 - ns tacost R/WN LOW to DSN LOW (write) 228 (55 |- 30 |- 25 | - 20 |- ns tetpo CKOUT LOW to data out valid 23 «| - 50 |- 45 |}- 45 |- 45 ns (write) Note ‘cp’ denotes clock pulses. April 1993 80 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 19.6 MHz 25 MHz 30 MHz 35 MHz SYMBOL PARAMETER No UNIT MIN | MAX| MIN | MAX| MIN | MAX| MIN | MAX tsupor ASN, DSN HIGH to data outinvalid | 25° |20 |- 15 |- 15 |- 15 |- ns (write) toost Data out valid to DSN LOW (write) 268 {20 |- 15 |- 15 |- 15 j- ns toiet Data in to clock LOW (set-up time, 27" 110 |- 10 |- 5 - 5 - ns read) tsHpaH ASN, DSN HIGH to DTACKN, 28° |0 190 |0 150 |0 120 |0 90 ns RDYN, AVN HIGH tsupn ASN, DSN HIGH to data invalid 29 |0 - 0 - 0 - 0 _ ns (hoid time, read) toneeH ASN, DSN HIGH to BERRN HIGH 30 10 - 0 - 0 - 0 - ns toatp DTACKN LOW to data in (set-up 31810) — 65 j- 50 |- 45 |- 40 ns time, read) tenn RESETN and HALTN input transition | 329 |0 200 |0 200 |0 200 |0 200 ns time tone CKOUT HIGH to BGN LOW 33) | - 55 |- 50 |- 50 |- 50 ns tonoH CKOUT HIGH to BGN HIGH 34. | - 55 |- 50 |- 50 |- 50 ns tere BRN LOW to BGN LOW 35 j1.5 (35 115 |35 |15 (35 [1.5 {3.5 cp +80 +70 +70 +70 ns terHGH BRN HIGH to BGN HIGH 36 (1.5 (25 115 (25 |15 425 14.5 |2.5 cp +80 +70 +70 +70 ns teata BGACKN LOW to BGN HIGH 37 115 |25 |1.5 (25 |15 [25 115 [2.5 cp +80 +70 +70 +70 ns tewz BGN LOW to bus high impedance 38 Oo - 55 |- 50 |- 50 |- 50 ns (ASN HIGH) ten BGN HIGH level 39/15 |- 1.5 |- 15 {- 15 |- cp teat BGACKN width LOW 40 {15 [- 1.5 |- 15 |[- 15 [- cp tas: Asynchronous input set-up time 41 125 |- 25 | - 25 | - 25 |- ns tasot Asynchronous set-up time for 41- |25 {- 10 j- 10 |- 10 |- ns DTACKN, AVN, BERRN, HALTN, A’ RDYN teeLDaL BERRN (input) LOW to DTACKN 42" |20 {- 15 |- 156 |- 15 |- ns LOW tenpor CKOUT HIGH to Data out invalid 43 10 - 0 - 0 - 0 - ns (write) tacoe R/WN LOW to data bus driven 44 )20 |- 10 |- 10 |- 10 |- ns April 1993 81 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 19.6 MHz 25 MHz 30 MHz 35 MHz SYMBOL PARAMETER No UNIT MIN | MAX| MIN | MAX| MIN | MAX] MIN | MAX turew HALTN/RESETN pulse width 45 |10 |- 10 |- 10 |- 10 j- cp tract REQxN set-up before CKOUT LOW | 46 [25 |- 10 {- 10 |- 10 |- ns tatcu ACKXxN LOW from CKOUT HIGH 47 |0 50 |0 50 |0 50 |0 50 ns tronce REQxN hold after CKOUT LOW 48 110 |- 10 |- 10 |- 10 |- ns totic DTCN LOW from CKOUT HIGH 49 j- 50 |- 50 j- 50 |- 50 ns tsHoTL ASN, LDSN, UDSN HIGH from 50 |0 - 0 - 10 |- 10 |- ns DTCN LOW tancH ACKXN HIGH from CKOUT HIGH 51 |- 55 |- 50 |- 50 |- 50 ns torxcH DTCN non-active to CKOUT HIGH {52 |- 45 |- 40 |- 40 |- 40 ns tontcH DONEN (output) LOW from CKOUT {53 | - 45 |- 40 |- 40 |- 40 ns HIGH tonxcH DONEN (output) non-active from 54 |- 55 |- 55 |- 55 |- 55 ns CKOUT HIGH tontet DONEN (input) set-up LOW before |56 [25 |- 10 |- 10 |- 10 |- ns CKOUT LOW tontncH DONEN (input) hold LOW after 57 1410 |- 10 |- 10 {- 10 |- ns CKOUT HIGH tratcaL REQxN LOW to BGACKN (output) (58 {3.5 |- 3.5 |- 3.5 |- 3.5 |- cp LOW torpet CKOUT LOW to BERRN (output) 59 |- 50 |- 40 |- 40 |- 40 ns LOW toupex CKOUT LOW to BERRN (output) 60 |- 45 |- 45 |- 45 |- 45 ns non-active tonGaL CKOUT HIGH to BGACKN (output) | 61 | - 60 |- 60 |- 60 |- 60 ns LOW April 1993 82 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 @ A1-A23 -— ASN oO) ai A LDSN / UDSN { OTE { ©) R/WN /f asynchronous input x (note 1) HALTN/ RESETN A BERRN / BRN (note 2) i (418) eo DTACKN / 7 @) — RDYN / AVN DATA (N90 me mee ee ee ee ee ee + MEASS!1 1. Setup time for the asynchronous inputs and AVN guarantees their recognition at the next falling edge of the clock. 2. BRN need fall at this time only to ensure being recognized at the end of this bus cycle. When BERRN is driven during a faulty MMU cycle, an additional error cycle (SE) is inserted in between SB and S4. Fig.53 Read cycle timing. April 1993 83 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 XTAL1 CKOUT Al -A23 ASN LDSN/UDSN / t SB SB $4 $5 so i R/WN DATA OUT asynchronous inputs HALTN / RESETN BERRN/ BRN A @) GA = Ga) DTACKN / RDYN (@2) be Fig.54 Write cycle timing. MEA8S2 April 1993 84 Product specification SCC68070 16/32-bit microprocessor Philips Semiconductors céevanw ‘Buin ywa ss°6l4 dale Ls NXOVivd (indul) NSNOG (indjno) N3NOG N1OG NXHOV NSQ) ‘NSGN ‘NSY E2v - NXOVO8 aw aw [\VV\S\I\/\SNVI XM eS 12S 02S 6IS BIS Z2IS SIS SES PIS EIS ZIS LIS OLS 6S 8S N*xOauY LNOND 85 April 1993 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 “Ry WN VA \—. -+—()—+ BRN Le ——— (40) —» BGACKN | @)=* @ C —— con \ Je a MC0550 1. Setup for the asynchronous inputs BERRN, BRN, BGACKN, DTACKN, IN2N, IN4N, INSN, NMIN, INT1N, INT2N, AVN, REQ1IN, REQ2N, DONEN, RDYN and DATA guarantees their recognition. Fig.56 Bus arbitration timing. April 1993 86 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 13.4 Clock Timing Table 69 Clock timing. SYMBOL PARAMETER MIN. MAX. UNIT fora Crystal or input frequency 8 35 MHz tove Cycle time 28.5 125 ns tet Clock pulse width LOW 10 - ns ton Clock pulse width HIGH 10 - ns te, Rise time - 10 ns tes Fall times - 10 ns tere XTAL1 HIGH to XTAL2 LOW - 10 ns teas XTAL1 LOW to XTAL2 HIGH - 10 ns teye ten | | ‘cH 08Vpp 1 \ 07V \ Fig.57 Input clock timing when external clock used. April 1993 87 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 DRIVING FROM AN EXTERNAL SOURCE +5V (1)} | 470Q XTAL1 0.8 Vop 68070 O——] XTAL2 2. XTAL2 must be driven. CRYSTAL OSCILLATOR XTAL1 ! — 19.6608 to 70 35 MHz 680 Fundamental crystal frequency | XTAL2 3rd overtone crystal frequency (22 to 35 MHz) C1 =20 pF C1 = 10 pF C2 = 20 pF C2 = 22 pF R =42k0 Crystal series resistance shoud be less than 40 2 1. Resistor is not necessary with HC or HCT devices. Fig.58 Clock circuitry. MEA8&9 April 1993 88 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 13.5 PC Interface timing Table 70 I°C interface timing. SYMBOL PARAMETER MIN. MAX. UNIT fot SCL clock frequency 0 224 kHz tour Time the bus must be free before new transmission can start 4.7 - ys tho.sTa Hold time START condition. After this period the first clock 4.0 - ys pulse is generated tow LOW period of clock 4.7 - ps tuicH HIGH period of clock 4.0 - HS teu.sta Set-up time for START condition (only relevant for a repeated 4.7 - ys start condition) tup-par Hold time DATA for I?C devices 0 - is tsu.oat Set-up time DATA 250 - ns t, Rise time of both SDA and SCL lines ~ 1 ys t Fall time of both SDA and SCL lines - 300 ns tso.sto Set-up time for stop condition 4.7 - ys Notes 1. All values are referenced to V,, and V, levels. 2. Timings given above are for SCL = 100 kHz (maximum I?C system frequency). r-- 4 ! t 1 im 1 1 1 ‘ 1 q7 t ' 4S t 1 1 i | { j t SDA ' f f) 1 t 1 i ' 1 t ( ' ‘ 1 a | 1 y ty rte ~ ( ‘~e} Ugur le! te] Te El 1 1 ' 1 . i | / t I v 1 ' rot da ' ro , | i — ‘Pp! ‘Ss! \ tLow “HD; DAT HIGH tsu; DAT Pp! tend i. --'HD; STA Load Fig.59 |?C Interface Timing. April 1993 89 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 13.6 UART interface timing Table 71 Interface timing. 10 MHz 12.5 MHz 15/17.5 MHz SYMBOL PARAMETER UNIT MIN. MAX. MIN. MAX. MIN. MAX. fxcx XCKI frequency of operation 2 5 2 10 2 10 MHz xo XCKI cycle time 200 500 100 500 100 500 ns try XCK! pulse width HIGH 60 250 30 250 30 250 ns ty XCKI pulse width LOW 60 250 30 250 30 250 ns ty, XCKI rise time - 10 - 10 - 10 ns ty XCKI fail time - 10 - 10 - 10 ns tx! XL | | 'XH - 2.0V \ 0.8V ty, ej type MCD554 Fig.60 XCKI input timing. April 1993 90 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 13.7 Timer specification T1 and T2 input signals must be held HIGH or LOW longer than t,, or t, to be latched at the input to the Timer. Events must be separated by more than the resolution R of the Timer. Table 72 Input timing to T1 or T2. 10 MHz 12.5 MHz 15 MHz 17.5 MHz SYMBOL PARAMETER UNIT MIN. | MAX. | MIN. | MAX.) MIN. | MAX. | MIN. | MAX. ty T1 or T2 pulse width HIGH 700 - 560 - 466 - 400 - ns t T1 or T2 pulse width LOW 700 - 560 - 466 - 400 - ns t Ti or T2 rise time - - - - - 50 - 50 ns t, T1 or T2 fall time - - - - - 50 - 50 ns R Resolution: the time between | 9.6 - 7.68 - 6.4 - 5.48 - ps two events to be taken into account ty - th -| \ t, Lo — —~| ty Lo [ L event event MCO555 Fig.61 Input timing to T1 or T2. April 1993 91 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 13.8 Power considerations The average chip-junction temperature, Tj, in °C can be obtained from: Tj =Tamo +(PoXRinja) (1) where: Tamb = ambient temperature (°C) Rin -a = Package thermal resistance, junction-to-ambient, (°C/W) Po=Pwrt+Pio (2) Pint = lop X Vop = Chip internal power (W) Pio = power dissipation on input and output pins (determined by the user). For most applications Pyg < Pix, and can be neglected. The approximate relationship between P, and Tj (if Py is neglected) becomes: _K__ (Tj + 273) Solving equations (1) and (2) for K gives: K = Pp X (Tam + 273) + (Rin pa X Pp’) (8) Where K is a constant pertaining to a particular part and can be determined from equation (3) by measuring P, (at equilibrium) for a known T,,,,. Using this value of K, the values of Pp and Tj can be obtained by solving equations (1) and (2) iteratively for any value of T,,..- Pp= April 1993 92 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 14. SUMMARY OF ON-CHIP ADDRESSES HEX ADDRESS SYMBOL REGISTER 8000 0000 to 8000 1000 - Reserved 8000 1001 LIR Latched Interrupt Priority Register 8000 1002 to 8000 2000 - Reserved 8000 2001 IDR 1?C Data Register 8000 2002 - Reserved 8000 2003 IAR l2?C Address Register 8000 2004 - Reserved 8000 2005 ISR l?C Status Register 8000 2006 _ Reserved 8000 2007 ICR IC Control Register 8000 2008 - Reserved 8000 2009 ICC 1?C Clock Control Register 8000 200A to 8000 2010 - Reserved 8000 2011 UMR UART Mode Register 8000 2012 - Reserved 8000 2013 USR UART Status Register 8000 2014 - Reserved 8000 2015 UCS UART Clock Select Register 8000 2016 - Reserved 8000 2017 UCR UART Command Register 8000 2018 - Reserved 8000 2019 UTH UART Transmit Holding Register 8000 201A - Reserved 8000 201B URH UART Receive Holding Register 8000 201C to 8000 201F - Reserved 8000 2020 TSR Timer Status Register 8000 2021 TCR Timer Control Register 8000 2022 RRH Reload Register High 8000 2023 RRL Reload Register Low 8000 2024 TOH Timer 0 High 8000 2025 TOL Timer 0 Low 8000 2026 T1H Timer 1 High 8000 2027 TIL Timer 1 Low 8000 2028 T2H Timer 2 High 8000 2029 T2L Timer 2 Low 8000 202A to 8000 2044 - Reserved April 1993 93 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 HEX ADDRESS SYMBOL REGISTER 8000 2045 PICR1 Peripheral Interrupt Control Register 1 8000 2046 - Reserved 8000 2047 PICR2 Peripheral Interrupt Control Register 2 8000 2048 to 8000 3FFF - Reserved 8000 4000 CSR1 Channel Status Register Channel 1 8000 4001 CER1 Channel Error Register Channel 1 8000 4002 to 8000 4003 - Reserved 8000 4004 DCR1 Device Control Register Channel 1 8000 4005 OCR1 Operation Contro! Register Channel 1 8000 4006 SCRi Sequence Control Register Channel 1 8000 4007 CCR1 Channel Control Register Channel! 1 8000 4008 to 8000 4009 - Reserved 8000 400A MTCH1 Memory Transfer Counter High Channel 1 8000 400B MTCL1 Memory Transfer Counter Low Channel 1 8000 400C MACH1 Memory Address Counter High Channel 1 8000 400D MACMH1_ | Memory Address Counter Middie High Channel 1 8000 400E MACML1_ | Memory Address Counter Middle Low Channel 1 8000 400F MACL1 Memory Address Counter Low Channel 1 8000 4010 to 8000 402C - Reserved 8000 402D CPR1 Channel Priority Register Channel 1 8000 402E to 8000 403F ~ Reserved 8000 4040 CSR2 Channel Status Register Channel 2 8000 4041 CER2 Channel Error Register Channel 2 8000 4042 to 8000 4043 - Reserved 8000 4044 DCR2 Device Control Register Channel 2 8000 4045 OCR2 Operation Control Register Channel 2 8000 4046 SCR2 Sequence Control Register Channel 2 8000 4047 CCR2 Channel Control Register Channel 2 8000 4048 to 8000 4049 - Reserved 8000 404A MTCH2 | Memory Transfer Counter High Channel 2 8000 404B MTCL2 Memory Transfer Counter Low Channel 2 8000 404C MACH2_ | Memory Address Counter High Channel 2 8000 404D MACMH2 | Memory Address Counter Middle High Channel 2 8000 404E MACML2_ | Memory Address Counter Middle Low Channel 2 8000 404F MACL2 Memory Address Counter Low Channel 2 8000 4050 to 8000 4053 - Reserved April 1993 94 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 HEX ADDRESS SYMBOL REGISTER 8000 4054 DACH Device Address Counter High Channel 2 8000 4055 DACHMH | Device Address Counter Middle High Channel 2 8000 4056 DACML | Device Address Counter Middle Low Channel 2 8000 4057 DACL Device Address Counter Low Channel 2 8000 4058 to 8000 406C - Reserved 8000 406D CPR2 Channel! Priority Register Channel 2 8000 406E to 8000 7FFF - Reserved 8000 8000 MSR MMU Status Register 8000 8001 MCR MMU Control Register 8000 8002 to 8000 803F - Reserved 8000 8040 SAH Segment Attributes High, Descriptor 0 8000 8041 SAL Segment Attributes Low, Descriptor 0 8000 8042 SLH Segment Length High, Descriptor 0 8000 8043 SLL Segment Length Low, Descriptor 0 8000 8044 - Reserved 8000 8045 SNR Segment Number, Descriptor 0 8000 8046 SBH Segment Base Address High, Descriptor 0 8000 8047 SBL Segment Base Address Low, Descriptor 0 8000 8048 SAH Segment Attributes High, Descriptor 1 8000 8049 SAL Segment Attributes Low, Descriptor 1 8000 804A SLH Segment Length High, Descriptor 1 8000 8048 SLL Segment Length Low, Descriptor 1 8000 804C - Reserved 8000 804D SNR Segment Number, Descriptor 1 8000 804E SBH Segment Base Address High, Descriptor 1 8000 804F SBL Segment Base Address Low, Descriptor 1 8000 8050 SAH Segment Attributes High, Descriptor 2 8000 8051 SAL Segment Attributes Low, Descriptor 2 8000 8052 SLH Segment Length High, Descriptor 2 8000 8053 SLL Segment Length Low, Descriptor 2 8000 8054 - Reserved 8000 8055 SNR Segment Number, Descriptor 2 8000 8056 SBH Segment Base Address High, Descriptor 2 8000 8057 SBL Segment Base Address Low, Descriptor 2 April 1993 95 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 HEX ADDRESS SYMBOL REGISTER 8000 8058 SAH Segment Attributes High, Descriptor 3 8000 8059 SAL Segment Attributes Low, Descriptor 3 8000 805A SLH Segment Length High, Descriptor 3 8000 805B SLL Segment Length Low, Descriptor 3 8000 805C ~ Reserved 8000 805D SNR Segment Number, Descriptor 3 8000 805E SBH Segment Base Address High, Descriptor 3 8000 805F SBL Segment Base Address Low, Descriptor 3 8000 8060 SAH Segment Attributes High, Descriptor 4 8000 8061 SAL Segment Attributes Low, Descriptor 4 8000 8062 SLH Segment Length High, Descriptor 4 8000 8063 SLL Segment Length Low, Descriptor 4 8000 8064 - Reserved 8000 8065 SNR Segment Number, Descriptor 4 8000 8066 SBH Segment Base Address High, Descriptor 4 8000 8067 SBL Segment Base Address Low, Descriptor 4 8000 8068 SAH Segment Attributes High, Descriptor 5 8000 8069 SAL Segment Attributes Low, Descriptor 5 8000 806A SLH Segment Length High, Descriptor 5 8000 806B SLL Segment Length Low, Descriptor 5 8000 806C - Reserved 8000 806D SNR Segment Number, Descriptor 5 8000 806E SBH Segment Base Address High, Descriptor 5 8000 806F SBL Segment Base Address Low, Descriptor 5 8000 8070 SAH Segment Attributes High, Descriptor 6 8000 8071 SAL Segment Attributes Low, Descriptor 6 8000 8072 SLH Segment Length High, Descriptor 6 8000 8073 SLL Segment Length Low, Descriptor 6 8000 8074 - Reserved 8000 8075 SNR Segment Number, Descriptor 6 8000 8076 SBH Segment Base Address High, Descriptor 6 8000 8077 SBL Segment Base Address Low, Descriptor 6 April 1993 96 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 HEX ADDRESS SYMBOL REGISTER 8000 8078 SAH Segment Attributes High, Descriptor 7 8000 8079 SAL Segment Attributes Low, Descriptor 7 8000 807A SLH Segment Length High, Descriptor 7 8000 807B SLL Segment Length Low, Descriptor 7 8000 807C - Reserved 8000 807D SNR Segment Number, Descriptor 7 8000 807E SBH Segment Base Address High, Descriptor 7 8000 807F SBL Segment Base Address Low, Descriptor 7 8000 8080 to BFFF FFFF - Reserved April 1993 97 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 PACKAGE OUTLINES 30.35 30.10 i 29.41 _ g 29.21 a t 2 ; wi ke a (80 x) 0.81 74 max "| ~ 54 R 14 75 | n 3 1 q a] | i ' a] 8) | A s4q} [> i ? \ 28.70 29.41 . 1 > es ne 2 27.69 7 1 2021 30.10 4 ' H A | D 1 8) ] | ' 2.15 IN | F max “ 11 h 33 = i] 1.07 oi max 9) max { 0.51 max detail A MBCE&50 Dimensions in mm Fig.62 84-lead plastic leaded chip carrier,(PLCC84); (SOT189). April 1993 98 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 — 32.15 a NOAAAAAAAAAAAAAL AARRARARARA BARS i 7 | = Bes 2%) | = | =a) | a po ES [] 270 sais men | = | cS (|e | =) ! BS 030 = |\ ! er sy HOUBEUORHHHUHUOOHUHEUERRHUUHHES 4 Jy 04s lL oraic@ia) +! 1 28cm \ 278 Dimensions in mm Fig.63 120-pin plastic quad flat-pack,(QFP120); (SOT220B). April 1993 99 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 SOLDERING Quad flat-packs BY WAVE During placement and before soldering, the component must be fixed with a droplet of adhesive. After cutting the adhesive, the component can be soldered. The adhesive can be applied by screen printing, pin transfer or syringe dispensing. Maximum permissible solder temperature is 260 °C, and maximum duration of package immersion in solder bath is 10 s, if allowed to cool to less than 150 °C within 6 s. Typical dwell time is 4 s at 250 °C. A modified wave soldering technique is recommended using two solder waves (dual-wave), in which a turbulent wave with high upward pressure is followed by a smooth laminar wave. Using a mildly activated flux eliminates the need for removal of corrosive residues in most applications. By SOLDER PASTE REFLOW Reflow soldering requires the solder paste (a suspension of fine solder particles, flux and binding agent) to be applied to the substrate by screen printing, stencilling or pressure-syringe dispensing before device placement. Several techniques exist for reflowing; for example, thermal conduction by heated belt, infrared, and vapour-phase reflow. Dwell times vary between 50 and 300 s according to method. Typical reflow temperatures range from 215 to 250 °C. Preheating is necessary to dry the paste and evaporate the binding agent. Preheating duration: 45 min at 45 °C. REPAIRING SOLDERED JOINTS (BY HAND-HELD SOLDERING IRON OR PULSE-HEATED SOLDER TOOL) Fix the component by first soldering two, diagonally opposite, end pins. Apply the heating tool to the flat part of the pin only. Contact time must be limited to 10 s at up to 300 °C. When using proper tools, all other pins can be soldered in one operation within 2 to 5 s at between 270 and 320 °C. (Pulse-heated soldering is not recommended for SO packages). For pulse-heated solder tool (resistance) soldering of VSO packages, soider is applied to the substrate by dipping or by an extra thick tin/lead plating before package placement. April 1993 100 Philips Semiconductors Product specification 16/32-bit microprocessor SCC68070 DEFINITIONS Data sheet status Objective specification This data sheet contains target or goal specifications for product development. Preliminary specification This data sheet contains preliminary data; supplementary data may be published later. Product specification This data sheet contains final product specifications. Limiting values Limiting values given are in accordance with the Absolute Maximum Rating System (IEC 134). Stress above one or more of the limiting values may cause permanent damage to the device. These are stress ratings only and operation of the device at these or at any other conditions above those given in the Characteristics sections of the specification is not implied. Exposure to limiting values for extended periods may affect device reliability. Application information Where application information is given, it is advisory and does not form part of the specification. LIFE SUPPORT APPLICATIONS These products are not designed for use in life support appliances, devices, or systems where malfunction of these products can reasonably be expected to result in personal injury. Philips customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify Philips for any damages resulting from such improper use or sale. PURCHASE OF PHILIPS FC COMPONENTS Purchase of Philips I@C components conveys a license under the Philips’ |@C patent to use the components in the I2?C system provided the system conforms to the !?C specification defined by Philips. This specification can be ordered using the code 9398 393 40011. April 1993 101 Philips Semiconductors -— a worldwide company Argentina IEROD, Av. Juramento 1991 - 14.B, (1428) BUENOS AIRES, Tel. (541)541 4261/541 4106, Fax. (541)786 7635 Australia 34 Waterloo Road, NORTH RYDE, NSW 2113, Tel. (02)805 4455, Fax. (02)805 4466 Austria Triester Str. 64, A-1101 WIEN, P.O. Box 213, Tel. (01)60 101-1236, Fax. (01)60 101-1211 Belgium 80 Rue Des Deux Gares, B-1070 BRUXELLES, Tel. (02)525 6111, Fax. (02)525 7246 Brazil Rua do Rocia 220 - 5* floor, CEP:04552-000-SAO PAULO-SP, Brazil. P.O. Box 7383-CEP:01051. Tel. (011)829-1166, Fax. (011)829-1849 Canada INTEGRATED CIRCUITS: Tel. (800)234-7381, Fax. (708)296-8556 DISCRETE SEMICONDUCTORS: 601 Milner Ave, SCARBOROUGH, ONTARIO, M1B 1M8, Tel. (0416)292 5161 ext. 2336, Fax. (0416)292 4477 Chile Av. Santa Maria 0760, SANTIAGO, Tel. (02)773 816, Fax. (02)777 6730 Colombia Carrera 21 No. 56-17, BOGOTA, D.E., P.O. Box 77621, Tel. (011249 7624, Fax. (01217 4549 Denmark Prags Boulevard 80, PB 1919, DK-2300 COPENHAGEN S, Tel. (032)88 2636, Fax. (031)57 1949 Finland Sinikalliontie 3, SF-02630 ESPOO, Tel. (9}0-50261, Fax. (9)0-520971 France 117 Quai du Président Roosevelt, 92134 ISSY-LES-MOULINEAUX Cedex, Tel. (01}4093 8000, Fax. (01)4093 8127 Germany S8urchardstrasse 19, D-2 HAMBURG 1, Tel. (040)3296-0, Fax. (040)3296 213 Greece No. 15, 25th March Street, GR 17778 TAVROS, Tel. (01)4894 339/4894 911, Fax. (01)4814 240 Hong Kong 15/F Philips Ind. Bldg., 24-28 Kung Yip St., KWAI CHUNG, Tel. (0)4245 121, Fax. (0}4806 960 india PEICO ELECTRONICS & ELECTRICALS Ltd., Components Dept., Shivsagar Estate, Block ‘A’, Dr. Annie Besant Rd., Worli, BOMBAY-400 018, Tel. (022)4938 541, Fax. (022)4938 722 Indonesia Philips House, Jalan H.R. Rasuna Said Kav. 3-4, P.O. Box 4252, JAKARTA 12950, Tel. (021)5201 122, Fax. (021)5205 189 Ireland Newstead, Clonskeagh, DUBLIN 14, Tel. (01)640 000, Fax. (01)640 200 Italy Viale F. Testi, 327, 20162-MILANO, Tel. (02)6752.1, Fax. (02)6752.3350 Japan Philips Bldg 13-37, Kohnan 2-chome, Minato-ku, TOKIO 108, Tel. (03)3740 5101, Fax. (03)3740 0570 Korea (Republic of} Philips House, 260-199 Itaewon-dong, Yongsan-ku, SEOUL, Tel. (02)794-5011, Fax. (02)798-8022 Malaysia No. 76 Jalan Universiti, 46200 PETALING JAYA, SELANGOR, Tel. (03)7755 1088, Fax. (03)757 4880 Mexico Philips Components, 6D Founder Biva., EL PASO, TX 79906, Tel. 9-5(800)234-7381, Fax. (708)296-8556 Netherlands Postbus 90050, 5600 PB EINDHOVEN, Tel. (040)78 37 49, Fax. (040)78 83 99 New Zealand 2 Wagener Place, C.P.O. Box 1041, AUCKLAND, Tel. (09)849-4160, Fax. (09)849-7811 Norway Box 1, Manglerud 0612, OSLO, Tel. (02)74 8000, Fax. (02)74 8341 Pakistan Philips Markaz, M.A. Jinnah Rd., KARACHI-3, Tel. (021)577 039, Fax. (021)569 1832 Peru Carretera Central 6.500, LIMA 3, Apartado 5612, Tel. (014)350 059, Fax. (014)468 999/468 949 Philippines PHILIPS SEMICONDUCTORS PHILIPPINES Inc, 106 Valero St. Salcedo Village, P.O. Box 911, MAKATI, Metro MANILA, Tel. (02)810 0161, Fax. (02)817 3474 Portugal Av. Eng. Duarte Pacheco 6, 1009 LISBOA Codex, Tel. (01)683 121, Fax. (01)658 013 Singapore Lorong 1, Toa Payoh, SINGAPORE 1231, Tel. (65)350 2000, Fax. (65)25 1 6500 South Africa 195-215 Main Road, Martindale, P.O. Box 7430, JOHANNESBURG 2000, Tel. (011)470-5433, Fax. (01 1)470-5494 Spain Balmes 22, 08007 BARCELONA, Tel. (93)301 6312, Fax. (93)301 4243 Sweden Kottbygatan 7, Akalla. Post: S-164 85 STOCKHOLM, Tel. (0}8-6321 2000, Fax. (0)8-632 2745 . Switzerland Allmendstrasse 140-142, CH-8027 ZURICH, Tal. (01)488 2211, Fax. (01)482 8595 Taiwan 69, Min Sheng East Road, Sec 3, P.O. Box 22978, TAIPEI] 10446, Tel. (2)509 7666, Fax. (2)500 5899 Thailand PHILIPS ELECTRONICS (THAILAND) Ltd., 60/14 MOO 11, Bangna - Trad Road Km. 3 Prakanong, BANGKOK 10260, Tel. (2)399-3280 to 9, (2)398-2083, Fax. (2)398-2080 Turkey Talatpasa Cad. No. 5, 80640 LEVENT/STANBUL, Tal. (01)279 2770, Fax. (01)269 3094 United Kingdom Philips Semiconductors Limited, P.O. Box 65, Philips House, Torrington Place, LONDON, WC1E 7HD, Tel. (071)436 41 44, Fax. (071)323 03 42 United States INTEGRATED CIRCUITS: 811 East Arques Avenue, SUNNYVALE, CA 94088-3409, Tal. (800)234-7381, Fax. (708)296-8556 DISCRETE SEMICONDUCTORS: 2001 West Blue Heron BNd., P.O. Box 10330, RIVIERA BEACH, FLORIDA 33404, Tel. (800)447-3762 and (407)881-3200, Fax. (407)881-3300 Uruguay Coronel Mora 433, MONTEVIDEO, Tel. (02)70-4044, Fax. (02)92 0601 Venezuela Calle 6, Ed. Las Tres Jotas, CARACAS, 10744, App. Post. 78117, Tel. (02)241 7509, Fax. (02)241 4518 For all other countries apply to: Philips Semiconductors, International Marketing and Sales, Building BAF-1, P.O. Box 218, 5600 MD, EINDHOVEN, The Netherlands, Telex 35000 phtenl, Fax. +31-40-724825 $CD18 © Philips Electronics N.V. 1993 All rights are reserved. Reproduction in whole or in part is prohibited without the prior written consent of the copyright owner. The information presented in this document does not form part of any quotation or contract, is believed to be accurate and reliable and may be changed without notice. No liability will be accepted by the publisher for any consequence of its use. Publication thereof does not convey nor imply any license under patent- or other industrial or intellectual property rights. Printed in The Netherlands 9397 711 60011 Philips Semiconductors PHILIPS - PHILIPS OR7065 102, This datasheet has been downloaded from: Datasheets for electronic components.