Tadpole SPARCbook 3 series User manual

Series
Technical Reference Manual
980327-02
3
S3GX_TRMBook Page i Friday, September 19, 1997 11:39 am

ii
SPARCbook 3 Technical Reference Manual
Trademarks
All rights reserved. This product or document is protected by copyright and distributed under licenses restricting its
use, copying, distribution and decompilation. No part of this product or document may be reproduced in any form
by any means without prior written authorization of Sun and its licensors, if any. This product or the products
depicted herein may be protected by one or more U.S. or international patents or pending patents. Portions of this
product may be derived from the UNIX® and Berkeley 4.3 BSD systems, licensed from UNIX Systems
Laboratories, Inc. and the University of California, respectively. Third party font software in this product is
protected by copyright and licensed from Sun’s Font Suppliers.
RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the government is subject to restrictions as
set forth in subparagraph (c) (1) (ii) of the Rights in Technical Data and Computer Software clause at DFARS
252.227-7013 and FAR 52.227-19.
Sun, Sun Microsystems, the Sun Logo, OpenWindows, SunView, SunOS, DeskSet, NFS and NEWS are trademarks
or registered trademarks of Sun Microsystems, Inc. UNIX and OPEN LOOK are registered trademarks of UNIX
Systems Laboratories, Inc. All other product names mentioned herein are the trademarks of their respective owners.
All SPARC trademarks, including the SCD Compliant Logo, are trademarks or registered trademarks of SPARC
International, Inc. The SPARCbook trademark is licensed exclusively to Tadpole Technology, Inc. Products bearing
SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc.
The OPEN LOOK® and Sun™ Graphical User Interfaces were developed by Sun Microsystems, Inc. for its users
and licensees. Sun acknowledges the pioneering efforts of Xerox in researching and developing the concept of
visual or graphical user interfaces for the computer industry. Sun holds a non-exclusive license from Xerox to the
Xerox Graphical User Interface, which license also covers Sun’s licensees who implement OPEN LOOK GUI’s and
otherwise comply with Sun’s written license agreements.
The X Window System is a product of the Massachusetts Institute of Technology.
UNIX and OPEN LOOK are registered trademarks of UNIX System Laboratories
PostScript is a trademark of Adobe Systems, Inc
Solaris is a product of Sun Microsystems, Inc
Notebook Computing Environment and NCE are trademarks of Tadpole Technology, Inc.
I
ssue 2.2 (Draft) of February 10, 1997 © 1996, 1997 by Tadpole Technology
P
art number 980327-02 Printed in the UK
S3GX_TRMBook Page ii Friday, September 19, 1997 11:39 am

iii
Contents
About This Guide ix
Document Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x
Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Logic states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Data entities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Typographical conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Key presses, buttons, and field names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Solaris commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
Notes, cautions and warnings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
Chapter 1 Architecture Overview
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
1.2 Main Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
1.2.1 Base board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
1.2.2 CPU module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
1.2.3 Microcontroller module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-3
1.2.4 Main display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
1.2.5 Other components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
1.3 System Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
1.4 Processor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5
1.5 Main System Buses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6
1.5.1 Memory bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-6
1.5.2 SBus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6
1.5.3 Ebus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-7
1.6 DRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-8
1.7 Slow I/O Subsystem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9
1.7.1 Serial Channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9
1.7.2 Counter-Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9
1.7.3 Interrupt Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-10
1.7.4 EBus Interface and Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-10
1.8 Fast I/O Subsystem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-10
1.8.1 SCSI Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-10
1.8.2 Ethernet Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-11
1.8.3 Parallel Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-11
1.8.4 FIFOs and DMA Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-11
1.9 Graphics and Video Subsystem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-12
1.9.1 Graphics Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-12
1.9.2 VRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-12
1.9.3 RAMDAC, Panel Driver and Video Clock Generator . . . . . . . . . . . . . . . 1-12
1.10 MK48T08 RTCRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-13
1.11 ISDN and 16-Bit Audio Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-13
1.12 PCMCIA Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-14
S3GX_TRMBook Page iii Friday, September 19, 1997 11:39 am

iv
1.13 Modem Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-14
1.14 Microcontroller Subsystem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-15
Chapter 2 The SPARC CPU
2.1 SPARC Architecture Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
2.2 Integer Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3
2.2.1 Pipeline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3
2.2.2 Instruction set overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3
2.2.3 Traps and interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
2.2.4 Memory protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
2.2.5 IU internal registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
2.2.6 IU control registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-6
2.3 Floating Point Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7
2.3.1 Floating Point Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-8
2.4 Cache Controller and Memory Management Unit . . . . . . . . . . . . . . . . . . . . . . 2-8
2.4.1 Translation lookaside buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-9
2.4.2 Address translation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-11
2.5 Memory Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-14
2.6 Instruction Cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-14
2.7 Data Cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-14
2.8 SBus Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-14
2.8.1 Programmed I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-15
2.8.2 DVMA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-15
Chapter 3 Memory Map and Interrupts
3.1 Address Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2
3.1.1 MACIO and SLAVIO Space (SBus Slot 4) . . . . . . . . . . . . . . . . . . . . . . . . 3-2
3.1.2 DRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5
3.2 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5
3.2.1 Interrupt Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7
3.3 NCR89C105 SLAVIO Configuration Control . . . . . . . . . . . . . . . . . . . . . . . . . 3-9
3.3.1 SLAVIO Configuration Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9
3.3.2 Diagnostic Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-10
3.3.3 Miscellaneous System Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11
Chapter 4 Serial Interface
4.1 Serial Channel Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2
4.1.1 Serial Interface Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2
4.2 SCC Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3
4.2.1 Register functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3
4.3 Baud Rate Clocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-10
4.4 Handshakes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-10
S3GX_TRMBook Page iv Friday, September 19, 1997 11:39 am

v
Chapter 5 SCSI Controller
5.1 Connecting SCSI Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
5.2 NCR53C9X SCSI Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
5.2.1 53C9X register set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
5.3 DMA Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7
5.3.1 DMA Transfers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7
5.3.2 DMA Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7
5.3.3 SCSI Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7
Chapter 6 Ethernet Interface
6.1 NCR92C990 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
6.1.1 Bus Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
6.1.2 LAN Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
6.1.3 Descriptor Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
6.2 LAN Controller Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3
6.2.1 Register Indexing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3
6.2.2 Control and Status Register 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3
6.2.3 Control and Status Register 1 and 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-4
6.2.4 Control and Status Register 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-5
6.3 DMA Support for Network Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-5
Chapter 7 PCMCIA Interface
7.1 TS102 Architecture Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2
7.1.1 SBus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2
7.1.2 PCMCIA interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-3
7.1.3 Microcontroller interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-3
7.2 TS102 Memory Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-4
7.2.1 Acceses to PCMCIA Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-4
7.2.2 Byte Swapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-5
7.2.3 SLAVIO expansion interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-6
7.3 TS102 Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-7
7.3.1 Card A and B interrupt registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-8
7.3.2 Card status register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-9
7.3.3 Card Control Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-11
7.3.4 Microcontroller Interrupt Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-12
7.3.5 Microcontroller data register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-12
7.3.6 Microcontroller status register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-12
7.4 Microcontroller Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-12
Chapter 8 ISDN and 16-bit Audio
8.1 ISDN Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-2
8.2 DBRI Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-2
8.2.1 TE and NT Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-3
8.2.2 CHI Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-3
S3GX_TRMBook Page v Friday, September 19, 1997 11:39 am

vi
8.2.3 SBus Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-3
8.2.4 DBRI Programming Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-4
8.2.5 DBRI Internal Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-7
8.2.6 DBRI Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-11
8.2.7 Data structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-13
8.3 Audio CODEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-14
8.3.1 Clocking and Data Synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-14
8.3.2 Control Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-17
8.3.3 Data Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-20
Chapter 9 MODEM
9.1 Internal Modem Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-2
9.2 Interface Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-2
9.3 Modem Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-4
9.3.1 Interrupt Enable Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-4
9.3.2 Interrupt Identification Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-4
9.3.3 Line Status Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-5
9.4 AT Command Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-5
9.5 S Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-11
9.6 Class 2 Fax Command Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-27
Chapter 10 Parallel Interface
10.1 Parallel Port Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-2
10.1.1 Parallel Port DMA Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-2
10.2 Parallel Port Control Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-3
Chapter 11 Display Interface
11.1 Display Interface Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-2
11.1.1 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-2
11.1.2 Display Interface Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-3
11.1.3 LCD Power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-4
11.2 Power 9100 User Interface Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-5
11.2.1 Parameter engine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-6
11.2.2 Drawing engine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-6
11.2.3 Frame buffer controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-6
11.2.4 SVGA unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-7
11.2.5 Power 9100 host interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-7
11.2.6 System Control Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-9
11.2.7 Video Control Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-12
11.2.8 VRAM control registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-15
11.2.9 Parameter engine registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-15
11.2.10Drawing engine registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-18
11.2.11RAMDAC register accesses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-20
11.3 Direct frame buffer access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-20
S3GX_TRMBook Page vi Friday, September 19, 1997 11:39 am

vii
11.4 RAMDAC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-21
11.4.1 RAMDAC host interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-22
11.4.2 Control register accesses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-22
11.4.3 Color palette accesses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-28
11.4.4 Pixel Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-29
Chapter 12 Microcontroller Subsystem
12.1 Microcontroller subsystem overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-2
12.1.1 Normal operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-3
12.1.2 Internal keyboard scanning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-4
12.1.3 External keyboard and mouse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-4
12.1.4 Pointing stick . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-4
12.1.5 Real time clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-4
12.1.6 EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12-4
12.1.7 LCD status display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-5
12.2 Command Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-6
12.2.1 Command synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-6
12.2.2 System Information Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-6
12.2.3 Read/Write/Modify Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-11
12.2.4 Commands Returning no Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-14
12.2.5 Block Transfer Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-15
12.2.6 Generic Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-16
12.2.7 Generic Commands with Optional Status . . . . . . . . . . . . . . . . . . . . . . . . 12-17
12.2.8 Administration Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-18
Appendix A Further Information
Appendix B Connector Information
B.1 I/O Panel Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .B-2
B.1.1 DCIn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .B-2
B.1.2 Parallel (S3XP, S3GX and S3TX) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .B-2
B.1.3 Parallel (S3 and S3LC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .B-3
B.1.4 Ethernet (S3XP, S3GX and S3TX) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .B-3
B.1.5 Ethernet (S3 and S3LC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .B-4
B.1.6 Video . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .B-4
B.1.7 SCSI (S3XP, S3GX and S3TX) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .B-5
B.1.8 SCSI (S3 and S3LC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .B-6
B.1.9 Keyboard/Mouse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .B-6
B.1.10Serial (x2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .B-6
B.1.11ISDN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .B-7
B.2 Cable Adapter Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .B-8
B.2.1 Parallel Cable Adapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .B-8
B.3 Removable Hard Drive SCSI Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . .B-9
S3GX_TRMBook Page vii Friday, September 19, 1997 11:39 am

viii
S3GX_TRMBook Page viii Friday, September 19, 1997 11:39 am

AboutThis Guide
The SPARCbook 3 Technical Reference Manual is
written for the hardware engineer wishing to carry
out service or repairs, and at the software engineer
wishing to implement hardware drivers. It is
assumed that you are familiar with the operation of
SPARCbook 3, as detailed in the SPARCbook 3
User Guide, and that you have an understanding of
computer hardware.
Note
The SPARCbook 3 Technical Reference Manual covers all
models of SPARCbook 3. Where information for one model
differs to information for another model, this is indicated in the
text.
S3GX_TRMBook Page ix Friday, September 19, 1997 11:39 am

x
Document Summary
The SPARCbook 3 Technical Reference Manual comprises the following
chapters:
• Chapter 1 ,
Architecture Overview,
discusses the main features of the
SPARCbook 3 and introduces the main hardware devices that provide
control over the SPARCbook 3’s operations. The internal architecture
of SPARCbook 3 is described, showing how the major devices are
connected together.
• Chapter 2,
Microprocessor
, provides an overview of the SPARC
processor.
• Chapter 3,
Memory Map and Interrupts
, describes the addressing
architecture and the interrupt architecture of the SPARCbook 3.
• Chapter 4 ,
Serial Interface
, discusses the serial interface of the
SPARCbook 3.
• Chapter 5,
SCSI Communications,
discusses the SCSI controller.
• Chapter 6,
Ethernet Interfac
e, discusses the Ethernet interface of the
SPARCbook 3.
• Chapter 7,
PCMCIA
, discusses the PCMCIA interface implemented in
the SPARCbook 3.
• Chapter 8,
ISDN and 16-Bit Audio Controller
, discusses the ISDN and
16-bit audio controller.
• Chapter 9,
Modem
, discusses the internal modem on the SPARCbook
3.
• Chapter 10,
Parallel Interface
, discusses the parallel interface on the
SPARCbook 3.
• Chapter 11,
Display Interface
, discusses the display interface
implemented in the SPARCbook 3. The discussion is centered on the
Brooktree Bt445 RAMDAC, on which the interface is based.
• Chapter 12,
Microcontroller Subsystem
, discusses the microcontroller
subsystem. This is used to provide internal control over such things as
the display brightness, keyboard and mouse scanning and power
management.
S3GX_TRMBook Page x Friday, September 19, 1997 11:39 am

xi
Definitions
The following conventions are used in the SPARCbook 3 Technical
Reference Manual:
Logic states
Theterms
clear
or
low
indicate that the signal beingdiscussed is at thelogic
level ‘0’.
The terms
set
or
high
indicate that the signal being discussed is at the logic
level ‘1’.
The term
asserted
indicates that a signal is in its true or active state
regardless of whether that state is high or low.
The term
negated
indicates that a signal is in its false or inactive state
regardless of whether that state is high or low.
Data entities
A
halfword
is taken to contain 16 bits.
A
word
is taken to contain 32 bits.
A
doubleword
is taken to contain 64 bits
Typographical conventions
Different typography is used in this guide to distinguish between normal
text, examples of SPARCbook responses, and cases where you are required
to provide input using the keyboard or mouse.
Key presses, buttons, and field names
Key presses are shown in
Helvetica bold
. In order to perform certain tasks,
you need to press two or more keys; for example:
To switch off your SPARCbook, press
Pause-O.
In this case, you should press the
Pause
key down first, and then, while
holding the
Pause
key down, press the
O
key.
Buttons and field names are also shown in
Helvetica bold
. For example:
Click the
Transmit
button.
Type the name of the file that you want to send in the
File Name
field.
S3GX_TRMBook Page xi Friday, September 19, 1997 11:39 am

xii
Solaris commands
Information displayed on your SPARCbook screen by the Solaris
Operating System is shown in
Courier
font.
Courier
is also used to
describe system utilities and commands. For example:
The
mail
system will inform you when there is incoming mail from
another user.
you have mail
Bold Courier
is used in examples to show what you must type in order to
perform a specific task. For example:
To report the current time and date you should use the
date
command:
%
date
Notes, cautions and warnings
Notes are used throughout this manual to explain items of related interest
to the topic under discussion, and are used to refer the reader to another part
of the manual, or to other documentation.
Note
This is an example of a note, used as to provide additional information.
Cautions are used to advise the reader of actions that if carried out may
cause damage to the SPARCbook 3.
Caution
This is an example of a caution
Warnings are used to draw your attention to actions that could cause
personal injury or pose a hazard to life. For example:
WARNING!
THE AC ADAPTER SUPPLIED WITH YOUR SPARCBOOK 3 CONTAINS
HAZARDOUS VOLTAGES. IT CONTAINS NO USER SERVICEABLE
PARTS. DO NOT REMOVE THE COVERS.
S3GX_TRMBook Page xii Friday, September 19, 1997 11:39 am

Architecture Overview
1
1
This chapter discusses the architecture of the
SPARCbook 3. It describes the main system
components and how they are packaged together to
deliverworkstation-class performance inacompact
notebook form factor.
S3GX_TRMBook Page 1 Friday, September 19, 1997 11:39 am

1-2
Architecture Overview
Introduction
1.1 Introduction
At the heart of the SPARCbook 3 design concept is the Tadpole Advanced
Notebook Architecture (ANA). This defines a set of goals and guidelines to
which the SPARCbook 3 range of systems are designed. It is a modular
approach which results in a system that implements highly integrated
components to provide the performance and I/O facilities normally
associated with desktop workstations. It also results in a system that can be
readily upgraded by the user with larger memory (up to 128 MB) or disk
capacities or returned to the factory for upgrades with the fastest CPUs
available for notebook implementation.
1.2 Main Components
The SPARCbook 3 contains three printed circuit boards. These are the
S3-XP Base board, the S3-XP or the S3TX CPU module, and the
microcontroller board.
1.2.1 Base board
The S3-XP Base board carries all of the I/O components together with the
display controller, RAMDAC and 2MB of Video RAM, and the battery
management hardware. It is populated on both sides using mainly surface
mount devices in order to keep its physical dimensions to a minimum. The
Base board also carries two PCMCIA sockets and the I/O panel which is
visible at the rear of the assembled system.
The Base board provides mounting points and sockets to accommodate the
CPU module.
1.2.2 CPU module
The CPU module carries the main SPARC CPU. The CPU module is
extended to carry the main memory SIMMS. This physical arrangement
has the advantage of making the SIMMs very easy to fit to or remove from
a fully assembled system through the battery tray without the use of tools.
The CPU module is mounted onto the base board such that the CPU itself
is sandwiched between the CPU module and Base board. However, an
interesting feature of the Base board is a large hole through which a
heatsink fitted to the main CPU is allowed to protrude when the two boards
S3GX_TRMBook Page 2 Friday, September 19, 1997 11:39 am

Architecture Overview
1-3
Main Components
are fixed together. When the two boards are correctly assembled, the CPU
heatsink is brought into contact with the system’s magnesium base casting
to provide effective heat dissipation, as shown in Figure 1-1.
1.2.3 Microcontroller module
The microcontroller module is a small board which carries an Hitachi H8
microcontroller, the status display which is visible from the outside of the
assembled system, and a number of programmable memory devices. It
provides connections for the keyboard and pointing stick for which it
provides control and for the Base board for which it provides system
control and status monitoring functions.
1.2.4 Main display
The main display is housed within the system’s lid along with an inverter
board required to drive the display’s backlight. Systems use either 9.4 inch
640 x 480 or 10.4 inch 800 x 600 color TFT display to provide a sharp
image in a wide range of lighting conditions. The brightness of the
backlight is controlled by the microcontroller and can be varied to suit the
lighting conditions or can be dimmed or turned off when required to
conserve battery power.
1.2.5 Other components
In addition to the main boards and display, the SPARCbook 3 system
contains is a 2.5 inch 1.2 GB (or larger when available) SCSI hard disk
drive assembled within a removable module. The drive can be removed
from the SPARCbook 3 while the system is fully assembled, see your
SPARCbook 3 User Guide
.
Figure 1-1 CPU Heat Dissipation
CPU Module
Base Board
System’s Magnesium
Base
CPU
Heatsink
Inter-Board Connectors
S3GX_TRMBook Page 3 Friday, September 19, 1997 11:39 am

1-4
Architecture Overview
System Architecture
1.3 System Architecture
The SPARCbook 3 system architecture is illustrated in Figure 1-2.
Figure 1-2 SPARCbook 3 Architecture
64
Memory
Bus
MACIO
SLAVIO
TS102
ASIC
Microcontroller
Subsystem
ISDN/
Audio
Graphics
Controller
RAMDAC
2x
PCMCIA
Sockets
Serial
Ext.
Keyboard/Mouse Ethernet
Parallel ISDN Audio
Ext.
Display
TFT
Modem
Display SCSI
Modem
SPARC CPU
DRAM (2 x SIMMs)
CPU
Module
Base
Board
SBus
32
S3GX_TRMBook Page 4 Friday, September 19, 1997 11:39 am

Architecture Overview
1-5
Processor
1.4 Processor
The CPU used in the S3TX is the TurboSPARC and the CPU used in the
S3XPand S3GX is the microSPARC II.
The TurboSPARC CPU provides the following key features:
• SPARC compliant V8 Integer Unit core
• SPARC Reference Memory Management Unit
• Floating Point ALU
• FP-Muliply Unit
• FP Divide/Square Root Unit
• 16 Kbyte Instruction Cache
• 16 Kbyte Data Cache
• Secondary Cache Controller
• DRAM Controller
• SBus Controller, Master and Slave Interface.
The TurboSPARC implemented in the S3TX operates at 170 MHz and
provides performance figures of 3.5 SPECint95 and 3.0 SPECfp95.
The microSPARC II CPU provides the following key features:
• SPARC-II compliant V8 Integer Unit (IU) core
• SPARC Reference Memory Management Unit (MMU)
• MEIKO Floating Point Unit (FPU)
• 16 Kbyte Instruction Cache
• 8 Kbyte Data Cache
• Memory Controller
• SBus Controller, Master & Slave Interface.
The microSPARC II implemented in the SPARCbook 3XP processor
operates at 85 MHz and provides performance figures of 64 SPECint92 and
54.6 SPECfp92.
The microSPARC II implemented in the SPARCbook 3GX processor
operates at 105 MHz and provides performance figures of 64 SPECint92
and 54.6 SPECfp92.
S3GX_TRMBook Page 5 Friday, September 19, 1997 11:39 am

1-6 Architecture Overview
Main System Buses
1.5 Main System Buses
The SPARCbook 3 architecture is based around three main buses
conventional for SPARC-based workstations. These are the Memory bus
which connects the CPU to the main memory; the SBus which connects the
CPU to the major I/O devices; and the EBus.
1.5.1 Memory bus
The microSPARC II’s integral memory controller is connected to the
system DRAM directly via a 64 bit high speed memory bus. The
microSPARC II provides direct addressing and control for the main
memory, illustrated in Figure 1-3, providing the write enable signal and
RAS and CAS lines. The smallest data movement is 64 bits; smaller
transfers are carried out by using read-modify-write operations. Parity
protection is provided by the CPU as 1 bit per word (32 bits) of data. SBus
based master I/O devices are able to access the memory bus via the
processor’s SBus interface.
1.5.2 SBus
The microSPARC II incorporates a complete SBus controller. The SBus
connects the microSPARC II to the Weitek P9100 graphics controller,
NCR89C105 SLAVIO, NCR89C100 MACIO and T725FC ISDN
controller. See Figure 1-4.
Figure 1-3 Main Memory/CPU Interface
12
64 Data
Address
Control
STSX1012
microSPARC II DRAM
S3GX_TRMBook Page 6 Friday, September 19, 1997 11:39 am

Architecture Overview 1-7
Main System Buses
The microSPARC II provides an SBus Master and Slave interface which
enables the I/O devices with integrated DMA capability to gain access to
the main memory without encroaching unduly on processor bandwidth.
SBus master and slave operations can be single cycle or bursts, and
dynamic bus sizing is supported (for single-cycle transfers). Master
accesses by the microSPARC II to the SBus cannot be cached, and only
double burst accesses are supported.
1.5.3 Ebus
The third system bus within the SPARCbook 3 is the Ebus. This is an 8-bit
data bus driven by the SLAVIO. The SLAVIO divides the EBus address
space into a number of regions by providing address generated EPROM,
RTC/RAM and Generic chip select signals. The EBus interface of the
SLAVIO is limited to a data bus and the chip select signals. The EBus
address bus is driven by the TS102 ASIC to enable the CPU to gain access
to the internal registers of devices on the EBus. Figure 1-5 provides a
simplified illustration of the EBus architecture.
Figure 1-4 SBus Connected Devices
STSX1012
microSPARC II
Weitek P9100
Graphics Controller NCR89C105
SLAVIO TS102
PCMCIA Controller
NCR89C100
MACIO
Data
Address
32 32 32 16
T725FC
ISDN Controller
32
S3GX_TRMBook Page 7 Friday, September 19, 1997 11:39 am

1-8 Architecture Overview
DRAM
1.6 DRAM
The SPARCbook 3 provides two SIMM sites which support a range of
different capacity modules. The SIMM sites accommodate 72-pin units,
which must be fitted in matched pairs to provide a full width 64-bit data
interface for the microSPARC II.
The SIMMs are each 33-bits wide (32 bits data and 1 bit parity), and are
available in sizes of 8Mbytes x 33, 16Mbytes x 33, 32Mbytes x 33, and
64Mbytesx33. This gives a usable memory capacity of up to of 128. The
fast processor clock speed used in SPARCbook 3 series computers requires
the use of 60ns SIMMS.
Figure 1-5 EBus Architecture
MK48T08
TRC/RAM Boot
EPROM Modem
TS102
NCR89C105
SLAVIO
Address
Data
Chip Selects
8
19
MBus
Address
S3GX_TRMBook Page 8 Friday, September 19, 1997 11:39 am
Other manuals for SPARCbook 3 series
1
Table of contents
Other Tadpole Laptop manuals