ð Developer Note PowerBook 520 and 520c and PowerBook 540 and 540c Computers ð Developer Note May 1994 Developer Press Apple Computer, Inc.
ð Apple Computer, Inc. 1994 Apple Computer, Inc. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, mechanical, electronic, photocopying, recording, or otherwise, without prior written permission of Apple Computer, Inc. Printed in the United States of America. The Apple logo is a trademark of Apple Computer, Inc.
Contents Figures and Tables Preface vii About This Developer Note ix Contents of This Note ix Supplementary Documents ix Conventions and Abbreviations x Typographical Conventions xi Standard Abbreviations xi Chapter 1 Introduction 1 Features 2 Appearance 3 Configurations 5 Peripheral Devices 5 Compatibility Issues 6 RAM Expansion Cards 6 Number of Colors 6 Video Mirror Mode 6 MacsBug Version 6.2.
Chapter 3 I/O Features 15 Internal Hard Disk Drive 16 Hard Disk Power Budget 16 Hard Disk Carrier Bracket 17 Hard Disk Mounting Envelope 18 Hard Disk Connector 18 Signals on Connector J1 19 Signals on Connector J2 20 Internal Floppy Disk Drive 21 Trackpad 22 Keyboard 22 Flat Panel Displays 23 Flat Panel Display Circuitry 24 Number of Colors 24 External Video Port 24 Video Mirroring 25 Video Monitors 25 External Video Connector 26 Monitor Sense Codes 26 Serial Port 28 SCSI Port 28 SCSI Disk Mode 28 SCSI C
System Support Signals on the PDS Connector 47 Descriptions of the Power Leads 47 Characteristics of the PDS Signals 48 PDS Power Consumption 49 Power Budget 49 Power Control Circuits 49 Logic Design Guidelines for the PDS Card 52 Addressing Guidelines 52 Accessing Memory From the PDS Card 52 Timing Considerations 52 Mechanical Design Guidelines for the PDS Card 52 PDS Card Shell 53 PDS Card Connector 53 PDS Card Design 54 Modem Expansion Card 56 Signals on the Modem Connector 57 Signal Assignments on the M
System Software 75 Identifying the PowerBook 520 and 540 Computers New System Enabler 75 Control Strip 75 Selecting SVGA 76 New Control Panels 77 PowerBook Control Panel 77 PowerBook Setup Control Panel 78 PowerBook Display Control Panel 79 Trackpad Control Panel 79 Control Strip Control Panel 80 AutoRemounter Control Panel 80 Adding Control Strip Modules 80 Contents of Module Files 81 Module Interface 81 Module Reentrancy 82 Control Strip Module Reference 82 Control Strip Module Messages 82 Utility Routine
Figures and Tables Chapter 1 Chapter 2 Chapter 3 Chapter 4 Introduction 1 Figure 1-1 Figure 1-2 Front view of the PowerBook 540 computer Back view of the PowerBook 540 computer Table 1-1 Models and configurations Architecture 9 Figure 2-1 Block diagram of the PowerBook 520 and 540 computers I/O Features 15 Figure 3-1 Figure 3-2 Figure 3-3 Figure 3-4 Figure 3-5 Figure 3-6 Hard disk carrier bracket 17 Hard disk drive dimensions 18 Pins on the hard disk connector 19 PowerBook 520 and 540 keyb
Chapter 5 Figure 4-9 Figure 4-10 Figure 4-11 Figure 4-12 Figure 4-13 Figure 4-14 Figure 4-15 Figure 4-16 Figure 4-17 Figure 4-18 Figure 4-19 Figure 4-20 The PDS card 53 Section through the PDS card connector 53 Dimensions of the PDS card 54 Restricted areas on the top of the PDS card 55 Restricted areas on bottom of the PDS card 56 Top view of the modem card 63 Restricted areas on the top of the modem card 63 Restricted areas on the bottom of the modem card 64 A simple DAA card 66 Top view of a simple DAA
P R E F A C E About This Developer Note This developer note describes the Macintosh PowerBook 520 and 540 computers, emphasizing the features that are new or different from those of other Macintosh PowerBook computers. It is intended to help experienced Macintosh hardware and software developers design compatible products.
P R E F A C E Developers should also have copies of the appropriate Apple reference books, including Inside Macintosh; Guide to the Macintosh Family Hardware, second edition; and Designing Cards and Drivers for the Macintosh Family, third edition. These Apple books are available in technical bookstores and through APDA.
P R E F A C E Sidebar A sidebar is used for information that is not part of the main discussion. A sidebar may contain information about a related subject or technical details that are not required reading. Typographical Conventions 0 Computer-language text—any text that is literally the same as it appears in computer input or output—appears in Courier font. Hexadecimal numbers are preceded by a dollar sign ($). For example, the hexadecimal equivalent of decimal 16 is written as $10.
P R E F A C E Other abbreviations used in this note include xii $n hexadecimal value n AC alternating current ADB Apple Desktop Bus API application program interface ASIC application-specific integrated circuit AUI auxiliary unit interface BCD binary coded decimal CAS column address strobe (a memory control signal) CCFL cold cathode fluorescent lamp CD compact disc CLUT color look-up table CMOS complementary metal oxide semiconductor CPU central processing unit CSC color screen
P R E F A C E RGB red-green-blue (a type of color video system) RISC reduced instruction set computer RMS root-mean-square ROM read-only memory SCC Serial Communications Controller SCSI Small Computer System Interface SNR signal-to-noise ratio SVGA super video graphics adapter TFT thin-film transistor (a type of LCD) TTL transistor-transistor logic (a standard type of device) VCC positive supply voltage (voltage for collectors) VGA video graphics adapter VRAM video RAM xiii
C H A P T E R Figure 1-0 Listing 1-0 Table 1-0 1 Introduction 1
C H A P T E R 1 Introduction The Macintosh PowerBook 520 and PowerBook 540 computers are the first of a new generation of all-in-one notebook computers featuring the powerful Motorola MC68040 microprocessor, color displays, integrated communications architecture, and other advanced features. Inside the computer’s contoured case are spaces for two rechargeable batteries, a new high-speed modem, and a processor-direct slot for expansion cards.
C H A P T E R 1 Introduction ■ SCSI disk mode: operates in conjunction with an HDI-30 SCSI Disk Adapter cable to allow users to read and store data on the PowerBook computer’s internal hard disk from another Macintosh computer. ■ Networking: built-in Ethernet and LocalTalk network interfaces. ■ Expansion: the PowerBook Expansion Bay, a 90-pin processor-direct slot (PDS) inside the left battery compartment. ■ Sound: built-in microphone and stereo speakers; microphone jack and headphone jack.
C H A P T E R 1 Introduction Figure 1-1 Front view of the PowerBook 540 computer Speakers Microphone Contrast control Brightness control Floppy disk drive Battery Track pad Track pad button Figure 1-2 Back view of the PowerBook 540 computer Second battery or extension bay Telephone cable socket SCSI port (HDI-30) Floppy disk drive Video port Power adapter port Apple Desktop Bus (ADB) port Sound in port 4 Appearance Ethernet port / Modem/Printer port Sound out port
C H A P T E R 1 Introduction Configurations 1 The Macintosh PowerBook 520 and 540 computers are available in a total of six configurations, as shown in Table 1-1.
C H A P T E R 1 Introduction ■ The PowerBook Express Modem II, available in the U.S. and Canada, is a 14.4kbps fax/data modem; it supports the CCITT V.32bis and V.42bis standards as well as industry standard MNP5. The modem comes with an internal DAA module that is software reconfigurable for use anywhere in the world. In the country where it was purchased, the DAA accepts the standard telephone connector.
C H A P T E R 1 Introduction MacsBug Version 6.2.2 1 MacsBug version 6.2.2 does not work with the PowerBook 520 and 540 computers because it assumes that all MC68040 microprocessors have FPUs. This problem is corrected in newer versions of MacsBug. ◆ Sound Sample Rates 1 The PowerBook 520 and 540 computers provide sound sample rates of 22.05 kHz, 44.1 kHz, and 48 kHz. The 22.05 kHz sample rate is slower than the sample rate used in some older Macintosh models: 22.
C H A P T E R Figure 2-0 Listing 2-0 Table 2-0 2 Architecture 2
C H A P T E R 2 Architecture The architecture of the PowerBook 520 and 540 computers is partitioned into two subsystems: the processor/memory subsystem and the input/output subsystem. The processor/memory subsystem operates at 25 MHz or 33 MHz on the MC68040 bus. The input/output subsystem operates at 16 MHz on the I/O bus, an MC68030-compatible bus.
C H A P T E R 2 Architecture Figure 2-1 Block diagram of the PowerBook 520 and 540 computers Memory expansion card Expansion RAM 8–32 MB Secondary logic board Memory card connector CPU MC68040 or MC68LC040 Pratt memory controller and bus adapter ROM 2 MB RAM 4 MB System interconnect Main logic board System interconnect Video port 16-bit system bus Ethernet ID ROM Keystone video controller Video RAM 512K Ariel CLUT/DAC Power Power Manager (includes ADB and KBD interfaces) ADB port Keyboard
C H A P T E R 2 Architecture An optional RAM expansion card plugs into a 70-pin connector on the secondary logic board. With the RAM expansion card installed, the processor/memory subsystem supports up to 36 MB of RAM. The RAM card for the PowerBook 520 and 540 computers is not compatible with the RAM card used in earlier PowerBook models. See the section “RAM Expansion Card” beginning on page 34 for details.
C H A P T E R 2 Architecture Whitney Peripheral Support IC 2 The Whitney IC is a new Apple custom IC that provides the interface between the system bus and the I/O bus that supports peripheral devices in the Macintosh PowerBook 520 and 540 computers.
C H A P T E R 2 Architecture ■ scanning the keyboard ■ controlling display brightness ■ monitoring battery charge level ■ controlling battery charging Display Controller IC 2 The flat panel display is controlled by a type 65220 CSC (color support chip) IC manufactured by Chips and Technologies, Inc. The display controller provides the data and control interface to the LCD panel. The CSC IC contains a 256-entry CLUT, RAMDAC, display buffer controller, and flat panel control circuitry.
C H A P T E R Figure 3-0 Listing 3-0 Table 3-0 3 I/O Features 3
C H A P T E R 3 I/O Features This chapter describes both the built-in I/O devices and the interfaces for external I/O devices. Like the earlier chapters, it emphasizes the similarities and differences between the PowerBook 520 and 540 computers and other PowerBook models.
C H A P T E R 3 I/O Features Table 3-1 Hard disk power budget Current (amps) Power (watts) Mode Average Maximum Average Maximum Startup* n.a. 1.300 n.a. 6.500 Operation 0.500 0.600 2.500 3.000 Idle 0.300 0.380 1.500 1.750 Standby 0.200 0.250 1.000 1.250 Shutdown 0.050 0.075 0.250 0.380 * Maximum values between power on and drive ready (not more than 5 seconds).
C H A P T E R 3 I/O Features Hard Disk Mounting Envelope 3 Figure 3-2 shows the drive and connector envelope requirements for the hard disk drive. The drive and its mating connectors must not extend outside the dimensions shown in the figure. Figure 3-2 Hard disk drive dimensions Bottom view (PCB side) 34.93±0.38 (1.375±0.15) 101.60 max. (4.00 max.) 38.10 (1.500) 50-pin connector 70.10 (2.76) 61.72 (2.43) End view CL 9.83±0.30 (0.387±0.012) Connector position 2.00 (0.
C H A P T E R 3 I/O Features The pins on the hard disk connector are 0.5 mm square; pin spacing is 2 mm on centers, horizontal and vertical. Figure 3-2 shows the location of the connector by defining the distance from the edge of the drive to the center line of the nearest pin, which is pin 39.
C H A P T E R 3 I/O Features Signals on Connector J2 3 Table 3-5 shows the signal assignments for the internal hard disk connector (J2). Entries in the table are arranged the same way as the pins on the connector: pin 1 across from pin 2, and so on.
C H A P T E R 3 I/O Features Internal Floppy Disk Drive 3 The floppy disk interface is identical to those in previous PowerBook computers. The internal floppy disk drive is a 1.44 MB Apple SuperDrive. The drive is 15 mm high; it accepts either standard Macintosh disks or DOS floppy disks. Table 3-5 shows the signal assignments for the internal floppy disk connector.
C H A P T E R 3 I/O Features Trackpad 3 For their pointing device, the PowerBook 520 and 540 computers have a trackpad, an integrated flat pad that replaces the trackball used in previous PowerBook computers. The trackpad provides precise cursor positioning in response to motions of the user’s fingertip over the surface of the pad. A single button below the trackpad is used to make selections.
C H A P T E R 3 I/O Features Figure 3-5 esc ± § F1 F2 ! 1 F3 @ 2 Q PowerBook 520 and 540 keyboard, ISO layout F4 # 3 W A F5 $ 4 E S F6 % 5 R D ^ 6 T F Y G F7 F8 & 7 * 8 U H F9 ( 9 Z X C V B ) 0 I J O K ~ ` N F10 M F12 _ - + = { [ P : ; L < , F11 > . } ] " ' | \ ? / ctrl By removing two screws, the user can lift out the keyboard to obtain access to the internal components and expansion connectors inside the PowerBook 520 and 540 computers.
C H A P T E R 3 I/O Features Types of Displays Flat-panel displays come in two types: active matrix and passive matrix. Active matrix displays, also called thin-film transistor (TFT) displays, have a driving transistor for each individual pixel. The driving transistors give active matrix displays high contrast and fast response time. Passive matrix refers to a display technology that does not have individual transistors.
C H A P T E R 3 I/O Features display. With appropriate adapter cables, the external video port can also support a VGA display or a 800-by-600-pixel SVGA display. The external video interface is enabled by attaching a monitor and restarting the computer. During the boot process, ROM software tests the monitor sense lines and activates the video output system if a recognized monitor is attached. If no monitor is found, the video output system is deactivated to conserve power.
C H A P T E R 3 I/O Features Note The largest image the PowerBook 520 and 540 computers can display on a multiscan monitor is 832 by 624 pixels. ◆ With a multiscan monitor, the Monitors control panel allows the user to select from the different modes available. Similarly, with an SVGA monitor, the user can select either the 640-by-480-pixel display or the 800-by-600-pixel display.
C H A P T E R 3 I/O Features Table 3-8 Signals on the video connector Pin VID-14 DB-15 Signal name Description 1 2 RED.VID Red video signal 2 1 RED.GND Red video ground 3 4 SENSE0 Monitor sense signal 0 4 12 /VSYNC Vertical synchronization signal 5 3 /CSYNC Composite synchronization signal 6 11 GND CSYNC and VSYNC ground 7 6 GRN.GND Green video ground 8 5 GRN.VID Green video signal 9 7 SENSE1 Monitor sense signal 1 10 14 HSYNC.
C H A P T E R 3 I/O Features Serial Port 3 The PowerBook 520 and 540 computers have a standard Macintosh serial port for synchronous, asynchronous, or AppleTalk serial communication. The 8-pin mini-DIN connector on the back panel is the same as those on other Macintosh computers. Table 3-10 shows the signal assignments for the serial port.
C H A P T E R 3 I/O Features SCSI Connectors 3 The internal and external HDI-30 connectors are identical to those used in other PowerBook models. The SCSI portion of the Combo IC connects directly to the internal and external SCSI connectors and can sink up to 48 mA through each of the pins connected to the SCSI bus. The data and control signals on the SCSI bus are active low signals that are driven by open drain outputs.
C H A P T E R 3 I/O Features Table 3-11 Internal and external HDI-30 SCSI connector signals (continued) Pin number HDI-30 (internal) HDI-30 (external) 23 /C/D /BSY 24 /I/O GND 25 /REQ /ATN 26 GND /C/D 27 GND /RST 28 GND /MSG 29 DISK.+5 /SEL 30 DISK.+5 /I/O Ethernet Port 3 The Ethernet connector is an Apple AUI connector. It accepts a Friendlynet adapter for either AUI (thick) cable, thin cable, or 10baseT (twisted pair) cable.
C H A P T E R 3 I/O Features ADB Port 3 The Apple Desktop Bus (ADB) port on the PowerBook 520 and 540 computers is functionally the same as on other Macintosh computers. The ADB is a single-master, multiple-slave serial communications bus that uses an asynchronous protocol and connects keyboards, graphics tablets, mouse devices, and other devices to the PowerBook 520 and 540 computers. The custom ADB microcontroller drives the bus and reads status from the selected external device.
C H A P T E R 3 I/O Features The frequency response of the sound circuits, not including the microphone and speakers, is within plus or minus 2 dB from 20 Hz to 20 kHz. Total harmonic distortion and noise is less than 0.05 percent from 20 Hz to 20 kHz with a 1 V RMS sine wave input. The input signal-to-noise ratio (SNR) is 82 dB and the output SNR is 85 dB, with no audible discrete tones. The sound system includes a built-in microphone and two speakers as well as external audio input and output jacks.
C H A P T E R Figure 4-0 Listing 4-0 Table 4-0 4 Expansion Modules 4
C H A P T E R 4 Expansion Modules The PowerBook 520 and 540 computers accept the following expansion modules, implemented as small circuit cards: ■ RAM expansion card ■ PDS card ■ modem card This chapter includes descriptions and design guides for each of these expansion cards. RAM Expansion Card 4 A connector on the secondary logic board accepts a RAM expansion card containing from 8 MB to 32 MB of self-refreshing dynamic RAM.
C H A P T E R 4 Expansion Modules Connector Pin Assignments 4 Table 4-2 lists the names of the signals on the RAM expansion connector. Entries in the table are arranged the same way as the pins on the connector: pin 1 across from pin 2, and so on. Signal names that end with _L are active low.
C H A P T E R 4 Expansion Modules Table 4-2 Signal assignments on the RAM expansion connector (continued) Pin Signal name Direction Pin Signal name Direction 53 CPU_DATA[17] B 54 CPU_DATA[18] B 55 CPU_DATA[19] B 56 V_5P_MAIN — 57 CPU_DATA[21] B 58 CPU_DATA[20] B 59 CPU_DATA[23] B 60 CPU_DATA[22] B 61 GND — 62 CPU_DATA[24] B 63 CPU_DATA[25] B 64 CPU_DATA[26] B 65 CPU_DATA[27] B 66 GND — 67 CPU_DATA[29] B 68 CPU_DATA[28] B 69 CPU_DATA[31] B 70 CPU
C H A P T E R 4 Expansion Modules Table 4-3 Descriptions of signals on the RAM expansion connector Signal name Description CPU_DATA[0–31] Bidirectional 32-bit DRAM data bus. DRAM_ADDR[0–11] Multiplexed row and column address to the DRAM devices. (See the section “Address Multiplexing” on page 36 to determine which bits to use for a given type of DRAM device.) DRAM_CAS_L[0–3] Column address select signals for the individual bytes in a longword.
C H A P T E R 4 Expansion Modules Table 4-4 Address multiplexing for some typical DRAM devices Individual signals on DRAM_ADDR bus Type of DRAM device [11] [10] [9] [8] [7] [6] [5] [4] [3] [2] [1] [0] Row address bits 21 20 19 18 17 16 15 14 13 12 11 10 Column address bits 19 21 18 22 9 8 7 6 5 4 3 2 Device address pins 11 10 9 8 7 6 5 4 3 2 1 0 Row address bits 21 20 19 18 17 16 15 14 13 12 11 10 Column address bits 19 21 18 22 9 8
C H A P T E R 4 Expansion Modules DRAM Device Requirements 4 The DRAM devices used in a DRAM expansion card must meet the following minimum specifications: ■ fast page mode ■ self-refreshing ■ low-power grade ■ row access time (tRAC) of 70 ns or less ■ column access time (tCAC) of 20 ns or less ■ page-mode cycle time (tPC) of 50 ns or less Note The DRAM refresh operation depends on the state of the computer.
C H A P T E R 4 Expansion Modules Mechanical Design Guidelines for the RAM Expansion Card 4 This section contains mechanical drawings showing the recommended design guidelines for RAM expansion cards. RAM Expansion Connector 4 The RAM expansion connector is a 70-pin Metristack connector. The connector is available from AMP, Inc. (part number 535671-6). For a specification sheet or information about obtaining this connector, contact AMP, Inc. 19200 Stevens Creek Blvd.
C H A P T E R 4 Expansion Modules Figure 4-2 Restricted areas on the top of the RAM expansion card 2X 4.22 [0.166] 1.00 [0.039] all around 2X 2.60 [0.103] Component height 1.50 [0.059] maximum Note: Dimensions are in millimeters [inches]. Restricted areas on the bottom of the RAM expansion card –33.10 [–1.303 Figure 4-3 2X 4.22 [0.166] 1.00 [0.039] all around 2X 2.60 [0.103] Component height 1.50 [0.059] maximum 49.32 [1.942] Pin 1 Connector Note: Dimensions are in millimeters [inches].
C H A P T E R 4 Expansion Modules Figure 4-4 Edge view of the RAM expansion card 1.00 [0.039] PCB thickness Note: Dimensions are in millimeters [inches]. ▲ WARNING Do not exceed the dimensions shown in the mechanical drawings. Cards that exceed these specifications may damage the computer and may be incompatible with future PowerBook models.
C H A P T E R 4 Expansion Modules Here are the requirements that minimize the possibility of damage if the user inserts or removes the PDS card with the computer running. ■ The PDS connector is designed so that the power and ground pins make contact before the signal lines when the card is inserted. ■ The PDS card must buffer all signals so as not to load down the computer’s internal bus. The recommended way to do that is to install CMOS logic buffers on all the logic signals used on the PDS card.
C H A P T E R 4 Expansion Modules Table 4-5 Signal assignments on the PDS connector Pin number Pin number New Old Signal name Direction New Old Signal name Direction 1 90 GND — 31 30 GND — 2 88 ADDR[1] B 32 28 DSACK_L[1] B 3 86 ADDR[3] B 33 26 DS_L B 4 84 ADDR[5] B 34 24 BERR_L OC 5 82 ADDR[7] B 35 22 PDS_BG_L O 6 80 ADDR[9] B 36 20 PDS_BUSCLK O 7 78 V_5P_MAIN — 37 18 GND — 8 76 ADDR[11] B 38 16 IPL_L[1] O 9 74 ADDR[13] B 39
C H A P T E R 4 Expansion Modules Table 4-5 Signal assignments on the PDS connector (continued) Pin number Pin number New Old Signal name Direction New Old Signal name Direction 61 59 V_5P_MAIN — 76 29 DATA[30] B 62 57 ADDR[26] B 77 27 DSACK_L[0] B 63 55 ADDR[28] B 78 25 AS_L B 64 53 ADDR[30] B 79 23 V_5P_MAIN — 65 51 RW_L B 80 21 PDS_BR_L I 66 49 SIZ[0] B 81 19 BGACK_L B 67 47 GND — 82 17 IPL_L[0] O 68 45 DATA[16] B 83 15 IPL_L[2]
C H A P T E R 4 Expansion Modules Table 4-6 MC68030-compatible signals on the PDS connector Signal name Description ADDR[31–0] Bidirectional 32-bit system address bus. AS_L Indicates the occurrence of an active bus transaction: a valid address is on the address bus and the size and read/write signals are valid. BERR_L Open collector signal connected to the system’s bus error watchdog timer and the processor’s /BERR line.
C H A P T E R 4 Expansion Modules System Support Signals on the PDS Connector 4 Table 4-7 lists the system support signals and describes their functions. Signal names that end with _L are active low. Table 4-7 System support signals on the PDS connector Signal name Description IO_RESET_L PDS card reset signal from the main processor. IPL_L[2–0] Interrupt level; driven by the interrupt prioritizer in the system to encode the interrupt level.
C H A P T E R 4 Expansion Modules Characteristics of the PDS Signals 4 Table 4-9 lists the electrical characteristics of the signals on the PDS and indicates the signal directions with respect to the computer. The output drive capabilities are given in terms of standard TTL or LS TTL loads and include a safety factor. Table 4-9 48 PDS signal load and drive limits Signal name Direction Characteristics ADDR[31–0] Bidirectional Output can drive one LS TTL load.
C H A P T E R 4 Expansion Modules PDS Power Consumption 4 This section specifies the maximum power available and provides guidelines for designing the power control circuitry on a PDS card. Power Budget 4 The DC voltages supplied to the PDS connector and the maximum allowable current load for each voltage are listed in Table 4-10. The signal named V_BATT1 is not on the PDS connector but is on a separate battery connector accessible from the PDS card.
C H A P T E R 4 Expansion Modules Figure 4-5 Recommended connection logic on the PDS card +5V PDS unswitched + +5 volt main Inrush current limiting circuit + Power control circuit (optional) Enable +5V for buffers CMOS bi-directional buffers Data 16–31 +5V PDS switched + + Decoupling capacitors; Ctotal ≤ 200 µF PDS power enable Buffered data 16–31 Address 0–31 Buffered address 0–31 Control lines Buffered control lines (AS, DS, R/W...) (AS, DS, R/W...
C H A P T E R 4 Expansion Modules Figure 4-6 Recommended inrush current limiting circuit +5V main Siliconix Si9430 100K PDS connector .
C H A P T E R 4 Expansion Modules Logic Design Guidelines for the PDS Card 4 This section provides information about the operation of the logic circuits on a PDS expansion card for the PowerBook 520 and 540 computers. Addressing Guidelines 4 The PDS card can only be addressed by 32-bit addressing; the card appears in the address space $8000 0000–$FFFF FFFF.
C H A P T E R 4 Expansion Modules Figure 4-9 The PDS card PDS Card Shell 4 The PDS card is installed in a plastic shell that resembles a battery and fits into the battery well on the left side of the case. The plastic shell is made up of several components, including two clamshell halves, a bezel or cover, and an internal latch and spring. The shell fits into the computer’s case with close tolerances; the cover fits into the opening of the battery well.
C H A P T E R 4 Expansion Modules Note The PDS connector is designed so that when the PDS card is inserted, the first connection is the ground by way of the connector shells, then the power pins make contact, and last of all the signal lines. The callout numbered 11 in Figure 4-12 indicates the long pins for the power connections. ◆ PDS Card Design 4 This section shows the mechanical outline and parts-placement guidelines for the PDS expansion card.
C H A P T E R 4 Expansion Modules Figure 4-12 Restricted areas on the top of the PDS card Note: Dimensions are in millimeters. Note The drawings in Figure 4-12, Figure 4-12, and Figure 4-13 are taken from Apple engineering drawing number 613-1706, revision 00. Developers who are members of Apple’s Developer Program may contact Apple’s Developer Support Center for information about possible later revisions of the drawings. ◆ ▲ WARNING Do not exceed the dimensions shown in the figures.
C H A P T E R 4 Expansion Modules Figure 4-13 Restricted areas on bottom of the PDS card Note: Dimensions are in millimeters. Modem Expansion Card 4 The modem expansion slot in the PowerBook 520 and 540 computers is designed for a coprocessor card. The modem slot provides a superset of the PDS connector signals. Like the PDS card, a card installed in the modem slot can have a configuration ROM and emulate a NuBus card through the Slot Manager interface.
C H A P T E R 4 Expansion Modules The PowerBook Express Modem II is designed around an Apple custom IC that includes the data pump, A-to-D and D-to-A converters, a microcontroller, and an interface to the computer’s I/O bus. That custom IC is also available to other modem developers; contact Apple Developer Services for information about licensing. The design of the PowerBook 520 and 540 computers incorporates a separate DAA (telephone line interface).
C H A P T E R 4 Expansion Modules Table 4-11 Signal assignments on the modem connector (continued) Pin Signal Direction Pin Signal Direction 27 ADDR[22] B 28 ADDR[21] B 29 ADDR[24] B 30 ADDR[23] B 31 V_5P_MAIN — 32 ADDR[25] B 33 ADDR[26] B 34 ADDR[27] B 35 ADDR[28] B 36 ADDR[29] B 37 ADDR[30] B 38 GND — 39 RW_L B 40 ADDR[31] B 41 SIZ[0] B 42 SIZ[1] B 43 GND — 44 DATA[17] B 45 DATA[16] B 46 DATA[19] B 47 DATA[18] B 48 DATA[21] B 49
C H A P T E R 4 Expansion Modules Table 4-11 Signal assignments on the modem connector (continued) Pin Signal Direction Pin Signal Direction 89 GND — 90 GND — 91 MDM_DAA[0] B 92 MDM_DAA[1] B 93 MDM_DAA[2] B 94 MDM_DAA[3] B 95 MDM_DAA[4] B 96 MDM_DAA[5] B 97 MDM_RX_P O 98 MDM_TX_P I 99 MDM_RX_N O 100 MDM_TX_N I NOTE Signal directions are defined from the main logic board side of the connector; I = input, O = output, B = bidirectional, and OC = open collector.
C H A P T E R 4 Expansion Modules Table 4-12 MC68030-compatible signals on the modem connector (continued) Signal name Description MDM_BG_L Modem slot bus grant; output. This signal is driven by the system’s bus arbitrator. When asserted low, the alternate bus master on the modem slot card may take ownership of the system bus after any pending bus traffic has completed (/BGACK, modem slot /CPU_AS signals, and modem slot /CPU_DSACK[1–0]— as appropriate to the card—have become inactive).
C H A P T E R 4 Expansion Modules Table 4-13 System support signals on the modem connector (continued) Signal name Description MDM_RESET_L This output, when asserted low by the Power Manager, resets the modem slot card. (In addition to this signal, the modem card should have its own reset signal, controlled by a register in the bus interface logic, to reset the other devices on the card.) MDM_TDM[3–0] These lines are reserved for communication between the PDS slot and the modem slot.
C H A P T E R 4 Expansion Modules Modem Power 4 The power pins on the modem connector are V_5P_MAIN, the 5-volt supply line, and GND, the ground. The voltage on V_5P_MAIN is 5.0V ± 5%. The maximum current available for the modem card is ■ 200 mA in normal operation ■ 2 mA in sleep mode ■ 0.00 mA in shutdown mode Physical Design Guidelines for Modem Card 4 This section contains mechanical drawings showing the recommended design guidelines for the modem card.
C H A P T E R 4 Expansion Modules Top view of the modem card –68.23 [–2.686] Figure 4-14 2X 2.00 [0.079] –35.20 [–1.386] –36.45 [–1.435] –40.00 [–1.575] –5.25 [–0.207] –7.36 [–0.290] –60.86 [–2.396] –63.00 [–2.480] 2X R 1.00 [0.039] Note: Dimensions are in millimeters [inches]. Figure 4-15 Restricted areas on the top of the modem card 2X 2.50 [0.098] Component height to be 3.50 [0.137] maximum 1.00 [0.039] all around 2X 4.00 [0.157] No components or traces in area designated 2X 1.00 [0.
C H A P T E R 4 Expansion Modules Restricted areas on the bottom of the modem card –34.11 [–1.343 Figure 4-16 2.50 [0.098] 1.00 [0.039] all around Component height to be 5.00 [1.97] maximum Pin 1 4.00 [0.157] –30.20 [–1.189] –35.20 [–1.386] No components or traces in area designated Connector Note: Dimensions are in millimeters [inches].
C H A P T E R 4 Expansion Modules Signal Assignments on the DAA Connector 4 Table 4-15 lists the signals on the DAA connector. Entries in the table are arranged the same way as the pins on the connector: pin 1 across from pin 2 and pin19 across from pin 20. These signals are used only by the modem card and the DAA card.
C H A P T E R 4 Expansion Modules The signals MDM_DAA[5-0] are multipurpose I/O digital control and status lines that operate at CMOS logic levels. The signals MDM_TX_P, MDM_TX_N, MDM_RX_P, and MDM_RX_N are two differential pairs for receiving and transmitting analog signals between the modem and the DAA. The nominal impedance of each differential pair is 47 K in parallel with a transformer winding that has an inductance of 1.3 Henries.
C H A P T E R 4 Expansion Modules Figure 4-18 Top view of a simple DAA card 15.844 [0.624] 11.84 [0.466] -3.00 [-0.118] ø 3.000 [0.118] Component and trace keepout area 56.410 [2.221] 59.41 [2.339] 52.41 [2.063] R 4.00 [0.157] 45.49 [1.791] Component keepout area Component height to be 8.30 [0.327] maximum 21.82 [0.859] Component height to be 14.30 [0.563] maximum 3.52 [0.139] -3.50 [-0.138] ø 3.000 [0.118] Telco restricted area 19.84 [0.781] 17.34 [0.683] 10.00 [0.394] 2.50 [0.
C H A P T E R 4 Expansion Modules Figure 4-19 Bottom view of a simple DAA card -3.00 [-0.118] 11.14 15.844 17.34 [0.439] [0.624] [0.683] Component keepout area 59.41 [2.339] 56.41 [2.221] 51.71 [2.036] Component height to be 6.50 [0.256] maximum R 4.70 [0.185] Telco restricted area Component keepout area 10.51 [0.414] 9.88 [0.389] 2.428 [0.096] -3.50 [-0.138] Connector to main logic board 3.30 [0.130] 10.744 [0.423] 19.84 [0.781] Note: Dimensions are in millimeters [inches].
C H A P T E R 4 Expansion Modules Figure 4-20 View of the multi-country DAA card Telephone cable socket DAA Interface Card 69
C H A P T E R Figure 5-0 Listing 5-0 Table 5-0 Software 5 5
C H A P T E R 5 Software This chapter describes the new ROM and system software features of the PowerBook 520 and 540 computers. ROM Software 5 The ROM software in the PowerBook 520 and 540 computers is based on the ROM used in previous PowerBook computers, with enhancements to support the many new features of these computers.
C H A P T E R 5 Software Power Manager Software 5 Changes to the Power Manager software include ■ power cycling and sleep mode for the MC68040 microprocessor ■ support for the new smart batteries ■ support for turning on and off power to the Ethernet interface In addition to those changes, the PowerBook 520 and 540 computers include a new public API for power management; it is described in Chapter 6, “Power Manager Interface.
C H A P T E R 5 Software PDS Support Software 5 As in the desktop Macintosh models, the PDS expansion card is treated like a NuBus expansion slot. The Slot Manager software looks for a configuration ROM on the PDS card and then treats the card like a NuBus expansion card. PDS cards with configuration ROM that conforms to the requirements described in Designing Cards and Drivers for the Macintosh Family, third edition, will work with the existing Slot Manager.
C H A P T E R 5 Software System Software 5 The PowerBook 520 and 540 computers are shipped with system software version 7.1. A new system enabler file is required in order to run System 7.1 on the PowerBook 520 and 540 computers. Identifying the PowerBook 520 and 540 Computers 5 The correct method for software to use to identify the Macintosh model it is running on is by using the Gestalt Manager routines.
C H A P T E R 5 Software The control strip has a tab on its unattached end. The user can drag the tab to adjust the length of the strip or hold down the Option key and drag the tab to move the strip to a new position. The user can hide the control strip, except for the tab, by clicking the tab. Clicking the tab when the control strip is hidden makes the control strip visible again.
C H A P T E R 5 Software Similarly, the PowerBook 520 and 540 computers treat the different scanning modes available on multiscan monitors as a family of settings from which the user can select by means of the Options dialog box in the Monitors control panel. New Control Panels 5 Several control panels are new or revised for the PowerBook 520 and 540 computers. Figure 5-2 shows the appearance of the new control panel icons.
C H A P T E R 5 Software Figure 5-3 PowerBook control panel in easy mode Figure 5-4 PowerBook control panel in custom mode In custom mode, the PowerBook control panel lets the user set the time delays in minutes until the computer dims the display, goes into sleep mode, and goes into shutdown mode. The user can also select processor cycling, which slows down the processor and saves power. PowerBook Setup Control Panel Figure 5-5 shows the PowerBook Setup control panel.
C H A P T E R 5 Software PowerBook Display Control Panel 5 Figure 5-6 shows the PowerBook Display control panel. Figure 5-6 PowerBook Display control panel The PowerBook Display control panel allows the user with an external video monitor to select video mirroring mode. In normal operation, an external monitor provides additional desktop space, as on any Macintosh computer with multiple displays.
C H A P T E R 5 Software Control Strip Control Panel 5 Figure 5-8 shows the Control Strip control panel. The user can hide or show the control strip by clicking the corresponding button in the control panel. Figure 5-8 Control Strip control panel AutoRemounter Control Panel 5 Figure 5-9 shows the AutoRemounter control panel.
C H A P T E R 5 Software Contents of Module Files 5 The only required resource in a module file is a resource containing the code necessary for the module to interact with the control strip. A module file may contain more than one code resource if it is to provide multifunctional support. In that case, each module in the file is loaded and initialized separately and treated as an independent entity.
C H A P T E R 5 Software statusRect statusPort A pointer to a rectangle defining the area that a module may draw within. A pointer to the control strip’s graphics port. This will be either a color or black-and-white graphics port depending on which PowerBook Model the control strip is running on. The result value returned by the module will vary depending on the message sent to it. Results for each message are described in the sections on the individual messages.
C H A P T E R 5 Software Message number Message name Description sdevMouseClick 6 User has clicked on the module’s display area sdevSaveSettings 7 Save any changed settings in thee module’s preferences file sdevShowBalloonHelp 8 Display a help balloon, if the module has one sdevInitModule 5 The sdevInitModule message is the first message sent to a module after the module has been loaded from its file.
C H A P T E R 5 Software sdevDontAutoTrack 1 sdevHasCustomHelp 2 sdevKeepModuleLocked 3 strip assumes that the module only displays status information with no user interaction. If this bit is set, the control strip highlights the module’s display and then calls the module to perform mouse tracking; this bit is usually set when, for example, a module has a pop-up menu associated with it.
C H A P T E R 5 Software bits in the result are reserved for future use by Apple and must be set to 0. The bits are defined as sdevResizeDisplay 0 sdevNeedToSave 1 sdevHelpStateChange 2 sdevCloseNow 3 If this bit is set, the module needs to resize its display. The control strip sends a sdevGetDisplayWidth message to the module and then update the control strip on the display. If this bit is set, the module needs to save changed settings to disk.
C H A P T E R 5 Software If the sdevDontAutoTrack bit is also set, the control strip draws the module’s display in its highlighted state and then sends the sdevMouseClick message to the module. If the sdevDontAutoTrack bit is not set, the control strip software tracks the cursor until the mouse button is released. If the cursor is still within the module’s display area, the control strip software sends the sdevMouseClick message to notify the module that a click occurred.
C H A P T E R 5 Software SBIsControlStripVisible 5 You can use the SBIsControlStripVisible routine to find out whether the control strip is visible. pascal Boolean SBIsControlStripVisible(); The SBIsControlStripVisible routine returns a Boolean value indicating whether or not the control strip is currently visible. It returns a value of true if the control strip is visible, or a value of false if it’s hidden.
C H A P T E R 5 Software SBOpenModuleResourceFile 5 You can use the SBOpenModuleResourceFile routine to open a module resource file. pascal short SBOpenModuleResourceFile(OSType fileCreator); The SBOpenModuleResourceFile routine opens the resource fork of the module file whose creator is fileCreator, and return the file’s reference number as its result. If the file cannot be found or opened, SBOpenModuleResourceFile returns a result of –1.
C H A P T E R 5 Software points to a Pascal string containing the name of the resource. The preferences parameter contains a handle to a block of data which will be written to the file. If either prefsResourceName or preferences has a nil value, SBSavePreferences does nothing and returns a result of paramErr. If the resource is successfully saved, SBSavePreferences returns a result of 0.
C H A P T E R 5 Software svAllSmallData 0x0000FF00 load small 16-by-16-pixel icons ('ics#', 'ics4', 'ics8') svAllMiniData load mini 12-by-12-pixel icons ('icm#', 'icm4', 'icm8') 0x00FF0000 These values may be OR-ed together to load combinations of icon sizes. SBGetDetachIconSuite returns an appropriate error code if it’s unsuccessful, or 0 if if was able to load the icon suite. Note that if none of the icons comprising the icon suite could be found, the call returns the error resNotFound.
C H A P T E R 5 Software The SBTrackSlider routine displays an unlabeled slider above the module’s display rectangle. You can use the slider for displaying and setting the state of an arbitrary parameter. The parameter ModuleRect contains a pointer to the module’s display rectangle; ticksOnSlider is the upper bounds of the value returned by the slider; and initialValue is the starting position (0 to ticksOnSlider–1). When the user releases the mouse button, SBTrackSlider returns the final position.
C H A P T E R 5 Software The SBDrawBarGraph routine draws a bar graph containing the number of segments specified by the barCount parameter in a module’s display area. If the value of barCount is less than or equal to 0, SBDrawBarGraph does nothing. The bar graph is drawn relative to the location specified by barGraphTopLeft. Figure 5-10 shows the way the point barGraphTopLeft determines the position of the bar graph.
C H A P T E R 5 Software SBModalDialogInContext 5 You can use the SBModalDialogInContext in place of ModalDialog routine to keep background applications from getting run while your modal dialog window is visible. pascal void SBModalDialogInContext(ModalFilterProcPtr filterProc, short *itemHit); The SBModalDialogInContext routine is a special version of ModalDialog that doesn’t allow background applications to get time while a modal dialog window is visible.
C H A P T E R Figure 6-0 Listing 6-0 Table 6-0 6 Power Manager Interface 6
C H A P T E R 6 Power Manager Interface This chapter describes the new application programming interface (API) to the Power Manager control software. Developers who provide expanded control panel software for the PowerBook Duo 280 and 280c computers will no longer need access to the Power Manager’s internal data structures.
C H A P T E R 6 Power Manager Interface Checking for Routines 6 Before calling any of the Power Manager interface routines, it’s always a good idea to call the Gestalt Manager to see if it they’re present on the computer. The Gestalt Manager is described in Inside Macintosh: Overview. A new bit has been added to the gestaltPowerMgrAttr selector: #define gestaltPMgrDispatchExists 4 If that bit is set to 1, then the routines are present.
C H A P T E R 6 Power Manager Interface Table 6-1 Interface routines and their selector values Selector value Routine name 98 decimal hexadecimal PMSelectorCount 0 $00 PMFeatures 1 $01 GetSleepTimeout 2 $02 SetSleepTimeout 3 $03 GetHardDiskTimeout 4 $04 SetHardDiskTimeout 5 $05 HardDiskPowered 6 $06 SpinDownHardDisk 7 $07 IsSpindownDisabled 8 $08 SetSpindownDisable 9 $09 HardDiskQInstall 10 $0A HardDiskQRemove 11 $0B GetScaledBatteryInfo 12 $0C AutoSleepContro
C H A P T E R 6 Power Manager Interface PMSelectorCount 6 You can use the PMSelectorCount routine to determine which routines are implemented. short PMSelectorCount(); DESCRIPTION The PMSelectorCount routine returns the number of routine selectors present. Any routine whose selector value is greater than the returned value is not implemented. ASSEMBLY-LANGUAGE INFORMATION The trap is _PowerMgrDispatch ($A09E). The selector value for PMSelectorCount is 0 ($00) in the low word of register D0.
C H A P T E R 6 Power Manager Interface mustProcessorCycle 3 hasReducedSpeed 4 dynamicSpeedChange 5 hasSCSIDiskMode canGetBatteryTime 6 7 canWakeupOnRing 8 The processor cycling feature must be left on (turn it off at your own risk). Processor can be started up at a reduced speed in order to extend battery life. Processor speed can be switched dynamically between its full and reduced speed at any time, rather than only at startup time. The SCSI disk mode is supported.
C H A P T E R 6 Power Manager Interface SetSleepTimeout 6 You can use the SetSleepTimeout routine to set how long the computer will wait before going to sleep. void SetSleepTimeout(unsigned char timeout); DESCRIPTION The SetSleepTimeout routine sets the amount of time the computer will wait after the last user activity before going to sleep. The value of SetSleepTimeout is expressed as the number of 15-second intervals making up the desired time.
C H A P T E R 6 Power Manager Interface SetHardDiskTimeout 6 You can use the SetHardDiskTimeout routine to set how long the computer will wait before turning off power to the internal hard disk. void SetHardDiskTimeout(unsigned char timeout); DESCRIPTION The SetHardDiskTimeout routine sets how long the computer will wait after the last use of a SCSI device before turning off power to the internal hard disk.
C H A P T E R 6 Power Manager Interface SpinDownHardDisk 6 You can use the SpinDownHardDisk routine to force the hard disk to spin down. void SpinDownHardDisk(); DESCRIPTION The SpinDownHardDisk routine immediately forces the hard disk to spin down and power off if it was previously spinning. Calling SpinDownHardDisk will not spin down the hard disk if spindown is disabled by calling SetSpindownDisable (defined later in this section).
C H A P T E R 6 Power Manager Interface DESCRIPTION The SetSpindownDisable routine enables or disables hard disk spindown, depending on the value of setDisable. If the value of setDisable is true, hard disk spindown will be disabled; if the value is false, spindown will be enabled. Disabling hard disk spindown affects the SpinDownHardDisk routine, defined earlier, as well as the normal spindown that occurs after a period of hard disk inactivity.
C H A P T E R 6 Power Manager Interface Before calling HardDiskQInstall, the calling program must set the hdQType field to #define HDPwrQType 'HD' /* queue element type */ or the queue element won’t be added to the queue and HardDiskQInstall will return an error. ASSEMBLY-LANGUAGE INFORMATION The trap is _PowerMgrDispatch ($A09E). The selector value for HardDiskQInstall is 10 ($0A) in the low word of register D0. The pointer to the HDQueue element is passed in register A0.
C H A P T E R 6 Power Manager Interface DESCRIPTION The GetScaledBatteryInfo routine provides a generic means of returning information about the battery or batteries in the system. Instead of returning a voltage value, the routine returns the battery level as a fraction of the total possible voltage. Note New battery technologies such as NiCad (nickel cadmium) and nickel metal hydride (NiMH) have replaced the sealed lead acid batteries of the original Macintosh Portable.
C H A P T E R 6 Power Manager Interface The value of warningLevel is the battery level at which the first low battery warning message will appear. The routine returns a value of 0 in some cases when it’s not appropriate to return the warning level. The value of batteryLevel is the current level of the battery. A value of 0 represents the voltage at which the Power Manager will force the computer into sleep mode; a value of 255 represents the highest possible voltage.
C H A P T E R 6 Power Manager Interface ASSEMBLY-LANGUAGE INFORMATION The trap is _PowerMgrDispatch ($A09E). The selector value for AutoSleepControl is 13 ($0D) in the low word of register D0. The Boolean value is passed in the high word of register D0. GetIntModemInfo 6 You can use the GetIntModemInfo routine to find out information about the internal modem.
C H A P T E R 6 Power Manager Interface ASSEMBLY-LANGUAGE INFORMATION The trap is _PowerMgrDispatch ($A09E). The selector value for GetIntModemInfo is 14 ($0E) in the low word of register D0. The bit field to set is passed in the high word of register D0. SetIntModemState 6 You can use the SetIntModemState routine to set some parts of the state of the internal modem.
C H A P T E R 6 Power Manager Interface DESCRIPTION The MaximumProcessorSpeed routine returns the maximum clock speed of the computer’s microprocessor, in MHz. ASSEMBLY-LANGUAGE INFORMATION The trap is _PowerMgrDispatch ($A09E). The selector value for MaximumProcessorSpeed is 16 ($10) in the low word of register D0. The processor speed value is returned in the low word of register D0.
C H A P T E R 6 Power Manager Interface ASSEMBLY-LANGUAGE INFORMATION The trap is _PowerMgrDispatch ($A09E). The selector value for FullProcessorSpeed is 18 ($12) in the low word of register D0. The Boolean result is returned in the low byte of register D0. SetProcessorSpeed 6 You can use the SetProcessorSpeed routine to set the clock speed the microprocessor will use the next time it is restarted.
C H A P T E R 6 Power Manager Interface Note When the computer is in SCSI disk mode, the computer appears as a hard disk to another computer. ◆ ASSEMBLY-LANGUAGE INFORMATION The trap is _PowerMgrDispatch ($A09E). The selector value for GetSCSIDiskModeAddress is 20 ($14) in the low word of register D0. The SCSI ID is returned in the low word of register D0. SetSCSIDiskModeAddress 6 You can use the SetSCSIDiskModeAddress routine to set the SCSI ID for the computer to use in SCSI disk mode.
C H A P T E R 6 Power Manager Interface DESCRIPTION The GetWakeupTimer routine returns the time when the computer will wake up from sleep mode. If the PowerBook model doesn’t support the wakeup timer, GetWakeupTimer returns a value of 0.
C H A P T E R 6 Power Manager Interface IsProcessorCyclingEnabled 6 You can use the IsProcessorCyclingEnabled routine to find out whether processor cycling is enabled. Boolean IsProcessorCyclingEnabled(); DESCRIPTION The IsProcessorCyclingEnabled routine returns a Boolean value of true if processor cycling is currently enabled, or false if it is disabled. ASSEMBLY-LANGUAGE INFORMATION The trap is _PowerMgrDispatch ($A09E).
C H A P T E R 6 Power Manager Interface BatteryCount 6 You can use the BatteryCount routine to find out how many batteries the computer supports. short BatteryCount(); DESCRIPTION The BatteryCount routine returns the number of batteries that are supported internally by the computer. The value of BatteryCount returned may not be the same as the number of batteries currently installed. ASSEMBLY-LANGUAGE INFORMATION The trap is _PowerMgrDispatch ($A09E).
C H A P T E R 6 Power Manager Interface GetBatteryTimes 6 You can use the GetBatteryTimes routine to find out about how much battery time remains. void GetBatteryTimes (short whichBattery, BatteryTimeRec *theTimes); DESCRIPTION The GetBatteryTimes routine returns information about the time remaining on the computer’s battery or batteries.
C H A P T E R 6 Power Manager Interface Header File for Power Manager Dispatch 6 Here is a sample header file for access to the Power Manager. /************************************************************************************ file: PowerMgrDispatch.h contains: header file for access to the Power Manager Copyright 1992-1993 by Apple Computer, Inc. All rights reserved.
C H A P T E R 6 Power Manager Interface /* bits in bitfield returned by GetIntModemInfo and set by SetIntModemState */ #define hasInternalModem 0 /* 1=internal modem installed */ #define intModemRingDetect 1 /* 1=internal modem has detected a ring */ #define intModemOffHook 2 /* 1=internal modem is off hook */ #define intModemRingWakeEnb 3 /* 1=wake up on ring is enabled */ #define extModemSelected 4 /* 1=external modem selected */ #define modemSetBit 15 /* 1=set bit, 0=clear bit (SetIntMo
C H A P T E R 6 Power Manager Interface struct HDQueueElement { Ptr hdQLink; /* pointer to next queue element */ short hdQType; /* queue element type (must be HDQType) */ short hdFlags; /* miscellaneous flags */ HDSpindownProc hdProc; /* pointer to routine to call */ long /* user-defined (variable storage, etc.
C H A P T E R 6 Power Manager Interface #pragma parameter __D0 PMSelectorCount(__D0) short PMSelectorCount() = {0x7000, 0xA09E}; #pragma parameter __D0 PMFeatures unsigned long PMFeatures() = {0x7001, 0xA09E}; #pragma parameter __D0 GetSleepTimeout unsigned char GetSleepTimeout() = {0x7002, 0xA09E}; #pragma parameter __D0 SetSleepTimeout(__D0) void SetSleepTimeout(unsigned char timeout) = {0x4840, 0x303C, 0x0003, 0xA09E}; #pragma parameter __D0 GetHardDiskTimeout unsigned char GetHardDiskTimeout() =
C H A P T E R 6 Power Manager Interface #pragma parameter __D0 SpinDownHardDisk void SpinDownHardDisk() = {0x7007, 0xA09E}; #pragma parameter __D0 IsSpindownDisabled Boolean IsSpindownDisabled() = {0x7008, 0xA09E}; #pragma parameter __D0 SetSpindownDisable(__D0) void SetSpindownDisable(Boolean setDisable) = {0x4840, 0x303C, 0x0009, 0xA09E}; #pragma parameter __D0 HardDiskQInstall(__A0) OSErr HardDiskQInstall(HDQueueElement *theElement) = {0x700A, 0xA09E}; #pragma parameter __D0 HardDiskQRemove(__A0)
C H A P T E R 6 Power Manager Interface #pragma parameter __D0 GetIntModemInfo(__D0) unsigned long GetIntModemInfo() = {0x700E, 0xA09E}; #pragma parameter __D0 SetIntModemState(__D0) void SetIntModemState(short theState) = {0x4840, 0x303C, 0x000F, 0xA09E}; #pragma parameter __D0 MaximumProcessorSpeed short MaximumProcessorSpeed() = {0x7010, 0xA09E}; #pragma parameter __D0 CurrentProcessorSpeed short CurrentProcessorSpeed() = {0x7011, 0xA09E}; #pragma parameter __D0 FullProcessorSpeed Boolean FullProc
C H A P T E R 6 Power Manager Interface #pragma parameter __D0 SetSCSIDiskModeAddress(__D0) void SetSCSIDiskModeAddress(short scsiAddress) = {0x4840, 0x303C, 0x0015, 0xA09E}; #pragma parameter __D0 GetWakeupTimer(__A0) void GetWakeupTimer(WakeupTime *theTime) = {0x7016, 0xA09E}; #pragma parameter __D0 SetWakeupTimer(__A0) void SetWakeupTimer(WakeupTime *theTime) = {0x7017, 0xA09E}; #pragma parameter __D0 IsProcessorCyclingEnabled Boolean IsProcessorCyclingEnabled() = {0x7018, 0xA09E}; #pragma paramet
C H A P T E R 6 Power Manager Interface #pragma parameter __D0 GetBatteryTimes(__D0,__A0) void GetBatteryTimes(BatteryTimeRec *theTimes) = {0x4840, 0x303C, 0x001C, 0xA09E}; #ifdef __cplusplus } #endif #endif 124 About the Power Manager Interface
Index A AC adapter 5 access to internal components 23 active matrix display 24 ADB (Apple Desktop Bus) port 31 ADB connector 31 appearance 3 Ariel CLUT-DAC IC 14 AutoRemounter control panel 80 AutoSleepControl routine 107 B back view 4 batteries 5 BatteryCount routine 115 C compatibility 6 sound sample rates 7 configurations 5 connectors ADB 31 DAA card 66 Ethernet 30 external video 26 floppy disk 21 hard disk 18, 19, 20 modem card 57 PDS card 53 RAM expansion 35, 36 SCSI 29 serial port 28 video 26 contro
I N D E X D G DAA card 64–68 connector on 66 for multiple countries 68 displays active matrix 23, 24 backlighting 23 controller IC 14 dual mode 25 DualScan 24 external monitors 26 external video monitors 24, 25 adaper cable 26 sense codes 26 flat panel types 23 FSTN 24 maximum size 26 mirror mode 25 NuBus card emulation 24 number of colors 6, 24 passive matrix 23 selecting modes 26 supertwist 23, 24 TFT 24 dual mode 25 DualScan display 24 gestaltMachineType value 75 gestaltPowerMgrAttr selector 97 GetBa
I N D E X M MacsBug, LCD buffer incompatibility 7 MaximumProcessorSpeed routine 109 MC68040 microprocessor 10 MC68LC040 microprocessor 10 MC68LC040 microprocessor support 72 memory controller software 72 memory expansion 5, 12 microphone 32 microprocessor clock speed 10 type 10 mirror mode 25 modem country key 6 DAA module 6 specifications 6 modem card 56–64 connector 57 DAA separate from 57 Express Modem II 56 NuBus emulation for 56 signals on 57, 59, 60 modem drivers 61 multi-country DAA 6, 68 N, O new
I N D E X R RAM address range 10 built in 10 expansion 34–41 addressing 36 connector 36 DRAM devices 39 RAM banks 38 signals 35, 36 expansion card 12 refresh 12 size of 5 RAM expansion 5 RAM expansion card 34–41 design guide 40 dimensions 40 DRAM devices 39 electrical limits 39 RAM banks 38 reentrancy in control strip modules 82 ROM address range 12 implementation of 12 overlay at startup 12 software features 72 ROM software features 72 SetSpindownDisable routine 103 SetWakeupTimer routine 113 Singer soun
T H E A P P L E P U B L I S H I N G This Apple manual was written, edited, and composed on a desktop publishing system using Apple Macintosh computers and FrameMaker software. Proof pages and final pages were created on an Apple LaserWriter Pro printer. Line art was created using Adobe Illustrator and Adobe Photoshop . PostScript , the page-description language for the LaserWriter, was developed by Adobe Systems Incorporated. Text type is Palatino and display type is Helvetica.