M1543 Preliminary Data Sheet M1543: Desktop South Bridge Section 1: Introduction 1.1 Features n Provides a bridge (with Super I/O) between the PCI bus and ISA bus for both Pentium and Pentium Pro systems n PCI interface · Supports PCI Master and Slave Interface · Supports PCI Master and Slave Initiated Termination · PCI spec. 2.1 Compliant (Delayed Transaction Support) n Buffers Control · 8-byte Bi-directional Line Buffers for DMA/ISA Memory Read/Write Cycles to PCI Bus. · 32-bit Posted Write Buffer for PCI Memory Write and I/O Data Write (for Sound Card) to ISA bus. n Provides steerable PCI interrupts for PCI device Plug-and-Play · Up to 8 PCI Interrupts Routing · Level to Edge Trigger Transfer n Enhanced DMA Controller · Provides 7 Programmable Channels, 4 for 8-bit Data Size, 3 for 16-bit Data Size · 32-bit Addressability · Provides Compatible DMA Transfers · Provides Type F Transfers n Interrupt Controller · Provides 14 Interrupt Channels · Independent Programmable Level/Edge Triggered Channels n Counter/Timers · Provides 8254 Compatible Timers for System Timer, Refresh Request, Speaker Output Use n Distributed DMA Supported · 7 DMA Channels can be Arbitrarily Programmed as Distributed Channel n Serialized IRQ Supported · Quiet/Continuous Mode · Programmable (Default 21) IRQ/DATA Frames · Programmable START Frame Pulse Width n Plug-and-Play Supported · 1 Programmable Chip Select · 2 Steerable Interrupt Request Lines n Built-in Keyboard Controller · Built-in PS2/AT Keyboard and PS2 Mouse Controller n Supports up to 256 KB ROM Size Decoding n Supports Positive/Subtractive Decode for ISA Device n PMU Features · Full Support for ACPI and OS Directed Power Management · CPU SMM Legacy Mode and SMI Feature Supported · Supports Programmable STPCLKJ : Throttle/CKONSTP/CKOFFSTP Control · Supports I/O Trap for I/O Restart Feature · PMU Operation States : - ON - Standby - Sleep (Power On Suspend) - Suspend (Suspend to DRAM) - Suspend to HDD - Soft-Off - Mechanical Off · APM State Detection and Control Logic Supported · Global and Local Device Power Control Logic · 8 Programmable Timers : Standby/ APMA/ Global_Display · Provides System Activity and Display Activity Monitorings, including - Video - Audio - Hard Disk - Floppy Disk - Serial Ports - Parallel Port - Keyboard - 1 Programmable I/O Group - 1 Programmable Memory Space Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 1 M1543 Preliminary Data Sheet · Provides Hot Plugging Events Detection - AC Power - Docking Insert · Multiple External Wakeup Events of Standby Mode - Power Button - Modem Ring - RTC alarm - DRQ2 · Suspend Wakeup Detected - Modem Ring - RTC alarm - Docking insert - Power Button - USB events - IRQ - ACPWR · Thermal Alarm Supported · Clock Generator Control Logic Supported - CPUCLK Stop Control - PCICLK Stop Control · L2 Cache Power Down Control Logic Supported · 6 General Purpose Input Signals, 10 General Purpose Output Signals. · All Registers Readable/Restorable for Proper Resume from Suspend State n Built-in PCI IDE Controller · Supports Ultra 33 Synchronous DMA Mode Transfers up to Mode 2 Timing (33 Mbytes/sec) · Supports PIO Modes up to Mode 5 Timings, and Multiword DMA Mode 0,1,2 with Independent Timing of up to 4 Drives · Integrated 10 x 32-bit Read Ahead & Posted Write Buffers for each channel (Total : 20 DWords) · Dedicated Pins of ATA Interface for each channel · Supports Tri-state IDE Signals for Swap Bay n USB interface · One Root Hub with two USB ports based on OpenHCI 1.0a Specification · Supports FS (12Mbits/sec) and LS (1.5Mbits/sec) Serial Transfer · Supports Legacy Keyboard and Mouse Software with USB-based Keyboard and Mouse n Super I/O interface · Supports Windows 95 Plug-and-Play · Supports 2 serial/ 1 parallel/ FDC functions · 2.88 MB (formatted) Floppy Disk Controller - Software compatible with 82077 and supports 16-byte data FIFOs - High performance internal data separator - Supports standard 1 Mbps/ 500 Kbps/ 300 Kbps/ 250 Kbps data transfer rate - Supports 3 modes of 3.5" FDD (720K/1.2M/ 1.44MB) - Swappable drives A and B · Various mode Parallel Port · Supports ECP/ EPP / PS/2 / SPP and 1284 Compliance - Standard mode - IBM PC/XT, PC/AT and PS/2 compatible Bidirectional parallel port - Enhanced mode - Enhanced Parallel Port (EPP) compatible - High speed mode - Microsoft and Hewlett Packard Extended Capabilities Port (ECP) compatible - includes protection circuit against damage caused when printer is powered up, or operated at higher voltages · Serial ports - Two high performance 16550 compatible UARTs with send/receive 16-byte FIFOs - Programmable Baud Rate Generator - Serial Infra Red (SIR) from UART1, UART2 for wireless communications - MIDI (Musical Instrument Digital Interface) compatible - High performance Power Management for FDC, UART and Parallel Port - Option between 96 I/O addresses, 12 IRQs, and 3 DMA channels for each device n SMBus Interface · System Management Bus Interface meets the V1.0 Specification n 328-pin (27mmx27mm) BGA Package Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 2 M1543 Preliminary Data Sheet Table of Contents: Section 1: Introduction ..................................................................................................... 1 1.1 Features ........................................................................................................... 1 1.2 Functions .......................................................................................................... 4 1.3 Functional Block Diagram ................................................................................ 5 Section 2: Pin Description................................................................................................ 6 2.1 Pinout Diagram................................................................................................. 6 2.2 Pin Description Table ....................................................................................... 7 2.3 Numerical Pin List .......................................................................................... 16 2.4 Alphabetical Pin List ....................................................................................... 20 2.5 Hardware Setup Table.................................................................................... 24 2.6 XDIR Control .................................................................................................. 24 Section 3: Function Description .................................................................................... 25 3.1 PCI Command Set ......................................................................................... 25 3.2 PCI Slave Description..................................................................................... 25 3.3 PCI Master...................................................................................................... 25 3.4 Parity Support................................................................................................. 26 3.5 Address Decoding .......................................................................................... 26 3.6 IDE Master Controller ..................................................................................... 26 3.7 Distributed DMA ............................................................................................. 26 3.8 Serialized IRQ ................................................................................................ 27 3.9 Advanced Power Management ...................................................................... 27 3.10 System Management Bus (SMBus) ............................................................. 27 3.11 Universal Serial Bus (USB) .......................................................................... 27 3.12 Super I/O ...................................................................................................... 27 Section 4: Configuration Registers ............................................................................... 28 Section 5: Power Management Unit Programming Guide......................................... 190 5.1 Legacy Power Management Unit ................................................................. 190 5.2 Advanced Configuration and Power Interface Specification ........................ 194 5.3 System Management Bus Host Controller Programming Guide.................. 196 Section 6 Packaging Information................................................................................ 198 Section 7: Revision History.......................................................................................... 199 Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 3 M1543 Preliminary Data Sheet 1.2 Functions The M1543 is a bridge between PCI and ISA bus, providing full PCI and ISA compatible functions. The M1543 has Integrated Super I/O( Floppy Disk Controller, 2 serial ports/1 parallel port ), System Peripherals (ISP) (2 x 82C59 and Serial interrupt, 1 x 82C54), advanced features (Type F and Distributed DMA) in the DMA controller (2 X 82C37), PS2 Keyboard/Mouse controller, 2-channel dedicated IDE Master Controller with Ultra-33 specification, System Management Bus (SMB), and 2 OpenHCI 1.0a USB ports. The ACPI (Advanced Configuration and Power Interface) and PCI 2.1 (Delayed Transaction) specification have also been implemented. M1543 also supports the deep flexible green function and provides the best solution for the best green system. It can connect to the ALi Pentium North Bridge (M1521/M1531/M1541) and also the ALi Pentium Pro North Bridge (M1615) to provide the best system solution. One eight byte bi-directional line buffer is provided for ISA/DMA Master memory read/writes. One 32-bit wide posted write buffer is provided for PCI memory write & I/O write (for Audio) cycles to the ISA bus. M1543 also provides a PCI to ISA IRQ routing table, and level to edge trigger transfer. The chip provides 2 extra IRQ lines and 1 programmable chip select for motherboard Plug-and-Play functions. The interrupt lines can be routed to any of the available ISA interrupts. The on-chip IDE controller supports two separate IDE connectors for up to 4 IDE devices providing an interface for IDE hard disks and CD ROMs. The Ultra 33 specification (which supports the 33M bytes per second transfer rate) has been implemented in this IDE controller. The ATA bus pins & the Buffer (Read Ahead and Posted Write) are all dedicated for separate channel to improve the performance of IDE Master. The M1543 supports Super Green for Intel and Intel compatible CPUs. It implements SMI or SCI (System Controller Interrupt) to meet the ACPI specification. It also meets the requirement for Microsoft's OnNow Design Initiative. The M1543 supports powerful power management for power saving including On, Standby, Sleeping, SoftOff, Mechanical Off state. To control the CPU power consumption, it provides CPU clock control (STPCLKJ). The STPCLKJ can be active (low) or inactive (high) in turn by throttling control. Also, the M1543 can support the most flexible system clock design: it can be programmed to stop the CPU Clock, PCI Clock. The PBSRAM (Pipelined Burst SRAM) doze mode is also supported. The built-in I/O in M1543 is an advanced Super I/O controller solution to basic IBM PC, XT, AT peripherals. It incorporates two full function universal asynchronous receiver/ transmitters (UARTs), a flexible high performance internal data separator with send/receive 16 byte FIFOs. It has Serial Infrared for wireless communications with other devices. It can swap your drives A & B. It features basic functions such as standard mode, enhanced mode, high speed mode. It supports SPP, PS/2, EPP and ECP parallel port. It also has a programmable baud rate generator. It has high performance power management for FDC, UART and parallel port. The M1543 is a highly integrated chip including PS2 Keyboard/Mouse, SM Bus, 2 OpenHCI 1.0a USB ports, and the dedicated GPIO (General Purpose Input/Output) pins. The system designer can use this chip to implement the best green and cost/performance system. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 4 1.3 M1543 Functional Block Diagram M1543 Function Block Diagram M1543 Preliminary Data Sheet PCI Infx. ISA Infx. CPU Infx. BUF/Cntl. ISP macro PCI dev.: M1543 (PCI-to-ISA Bridge) M5229 (IDE Ctlr) M5237 (USB Ctlr) M7101 (PMU Ctlr) Misc. Logic Internal ISA Interface Configuration Registers KDAT KCLK MDATA MCLK 8042 Various Mode Parallel Port PD0-7 BUSY,SLCT,PE, ERRORJ,ACKJ STROBEJ,SLCTINJ, INITJ,AUTOFDJ 765A Compatible Floppy Disk Controller Core WDATA WCLOCK Data Separator with Write Precompensa RCLOCK tion RDATA 16C550 Compatible Serial Port1 with Infrared 16C550 Compatible Serial Port2 with Infrared TXD1,CTS1J, RTS1J RXD1 DSR1J,DCD1J, RI1J,DTR1J TXD2, CTS2J, RTS2J(IRTX2) RXD2(IRRX2) DSR2J,DCD2J, RI2J,DTR2J INDEXJ TRK0J DSKCHGJ WRPRTJ WGATEJ DIRJ STEPJ DENSEL HDSELJ DRV0,1J MOT0,1J WDATAJ, RDATAJ Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 5 M1543 Preliminary Data Sheet Section 2: Pin Description 2.1 Pinout Diagram 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 A AD21 AD20 AD19 AD16 IRDY J SER RJ AD14 AD10 AD6 AD1 PHLD J GPI3 USB P1- RTC DS ROMK BCSJ XD2 XD5 SD15 SD14 SD13 B CBEJ AD23 AD22 AD17 FRA STO AD15 AD11 AD7 AD2 PHLD USB USB RTC XD0 XD3 XD6 SD12 DRE SD11 3 MEJ PJ AJ CLK P0+ RW Q7 C AD26 AD25 AD24 AD18 CBEJ DEV CBEJ AD12 CBEJ AD3 GPO GPI0 USB RTC XD1 XD4 XD7 DAC SD10 DRE 2 SELJ 1 0 3 P0- AS KJ7 Q6 D AD29 AD28 AD27 AD30 AD31 TRDY PAR AD13 AD8 AD4 GPO SIRQ GPO GPO GPO GPI2 SPK SD9 DAC SD8 J 2 I 19 12 0 R KJ6 E PIDE PIDE PIDE INTA INTB INTC PCI PCI AD9 AD5 AD0 USB SIRQ GPO GPO THR SPLE DRE MEM DAC CS3 CS1 A2 RSTJ CLK P1+ II 18 9 MJ D Q5 WJ KJ5 F PIDE A0 PIDE A1 PIDE DAKJ INTD PIDE IRDY VCC _B J M1543 VCC _A VCC _E IRQ1I MEM RJ DRE Q0 LA17 DAC KJ0 G PIDE RJ PIDE WJ PIDE DRQ PIDE D15 PIDE D0 VCC _D VCC LA18 IRQ INIT A20 IRQ 3C 14 MJ 13 H PIDE D14 PIDE D1 PIDE D13 PIDE D2 PIDE D12 LA19 IRQ 15 SMIJ NMI INTR J PIDE D3 PIDE D11 PIDE D4 PIDE D10 PIDE D5 GND GND GND GND LA20 GPO STP IGN CPU 20 CLK NEJ RST K PIDE D9 PIDE D6 PIDE D8 PIDE D7 SIDE CS3 GND GND GND GND GPO 1 GPO 22 RSM RSTJ SUST AT1J ACP WR L SIDE CS1 SIDE A2 SIDE A0 SIDE A1 SIDE DAKJ GND GND GND GND SMB DATA GPO 23 DOC KJ IRQ8 J PWR BTNJ M SIDEI RDYJ SIDE RJ SIDE WJ SIDE DRQ SIDE D15 GND GND GND GND SMB LA21 RI CLK OSC3 2KO PWG N SIDE D0 SIDE D14 SIDE D1 SIDE D13 SIDE D2 VDD_ IRQ 5S 11 LA22 IRQ 10 OSC 32II OSC 32I P SIDE D12 SIDE D3 SIDE D11 SIDE D4 XDIR J VCC _A_D VCC _C LA23 IO16 SBHE M16 J OSC 14M R SIDE D10 SIDE D5 SIDE D9 XMO T1J XDR V0J VDD _5 VCC _A_D VCC _3A VCC _A BALE TC SA0 SA1 SA2 T SIDE SIDE XDSK XDR XMO XDE XDC XPD3 XACK RST MS MS SD0 SA19 DAC DAC SA6 SA3 SA4 SA5 D6 D8 CHGJ V1J T0J NSEL D1J J DRV CLK DATA KJ3 KJ2 U SIDE XHD XRDA XIND XDC XDS XSTR XPD4 XBUS XER KB KB SD1 SME SA17 IRQ3 IRQ5 SA8 SA7 IRQ4 D7 SELJ TAJ EXJ D2J R1J OBJ Y RORJ CLK DATA MRJ V XWP ROTJ XTRK 0J XWG ATEJ XDTR 2J XRI1J XDTR 1J XPD0 XPD5 XPE XINIT J IRQ9 DRE Q2 NOW SJ AEN IORJ SA15 DRE Q1 SA10 IRQ6 SA9 W XWD ATAJ XSTE PJ XRTS 2J XSO UT2 XCTS 1J XSO UT1 XPD1 XPD6 XSLC XSLC SD6 T TINJ SD4 SD2 SME MWJ SA18 DRE Q3 SA14 SYS CLK SA11 IRQ7 Y XRI2J XCTS XDSR XSIN XRTS XSIN XPD2 XPD7 XAUT IOCK SD7 2J 2J 2 1J 1 OFDJ SD5 SD3 IOCH RDY IOWJ SA16 DAC KJ1 SA13 REFR SHJ SA12 Figure 2-1. Pinout Diagram Note: Please refer to p.199 for bottom view Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 6 M1543 Preliminary Data Sheet 2.2 Pin Description Table: Pin Name Type Clock & Reset Interface: PWG I Group C Schmitt PCICLK I Group B OSC14M OSC32KI I Group A I Group C OSC32KII I Group C CLK32KO O Group C 2.4/2.4 mA USBCLK PCI Bus Interface: PCIRSTJ AD[31:0] CBEJ[3:0] FRAMEJ TRDYJ IRDYJ STOPJ DEVSELJ SERRJ I Group B O-Group B 12/16 mA I/O Group B 12/16 mA I/O-Group B 12/16 mA I/O -Group B 12/16 mA I/O -Group B 12/16 mA I/O-Group B 12/16 mA I/O-Group B 12/16 mA I/O Group B 12/16 mA I -Group B PAR I/O Group B 12/16 mA Description Power-Good Input. This signal comes from the power supply to indicate that power is available and stable. The de-assertion of this input will enable the leakage control circuit between Soft-off (Suspend to Disk) resume circuit and no power circuit. PCI Clock for Internal PCI Interface. This is an input PCI clock, it should always be running at ON, STANDBY, SLEEP (Power-On Suspend) state. When CLKRUNJ is active, this clock should always be running. Internal PCI state machine and ISA state machine will use this clock. 14.318Mhz Clock Input. This input clock will be used for Power Management timer, M8254 timer, SM Bus base frequency and ISA state machine. 32 KHz Oscillator Input 1. This is a crystal input 1 from a 32.768 KHz Quartz Crystal. The M1543 will generate the 32 KHz clock for the internal Suspend circuit and output the clock from the CLK32KO to North Bridge DRAM Suspend Refresh Circuit. If a Crystal is not used, an external 32 Khz clock input should be connected to this pin. 32 KHz Oscillator Input2. This is a crystal input 2 from a 32.768 KHz Quartz Crystal. The M1543 will generate the 32 KHz clock for the internal Suspend circuit and output the clock from the CLK32KO to North Bridge DRAM Suspend Refresh Circuit. If a Crystal is not used, this pin should be floated. 32 KHz Clock Output for DRAM Refresh. At ON, STANDBY, SLEEP (Power On Suspend), SUSPEND (Suspend to DRAM) states, the output will send to Memory controller, to support DRAM refresh clock. At Soft off and Suspend to Disk states, the output will drive low to avoid leakage current. 48 MHz USB Clock Input. This clock will send to USB state machine to generate USB signals. PCI Bus Reset. This is an output signal to reset the entire PCI Bus. This signal will be asserted during system reset and is a logic invert of RSTDRV. Address and Data Multiplexed Bus. During the first clock of a PCI transaction, AD[31:0] contain a physical address. During subsequent clocks, AD[31:0] contain data. Bus Command and Byte Enable. During address phase, CBEJ[3:0] define the Bus Command. During the data phase, CBEJ[3:0] define the Byte Enables. Cycle Frame. Cycle Frame is driven by current initiator to indicate the beginning and duration of a PCI access. Target Ready. Target Ready indicates the target's ability to complete the current data phase of the transaction. Initiator Ready. Initiator Ready indicates the initiator's ability to complete the current data phase of the transaction. Cycle Stop Request. Cycle Stop indicates the target is requesting the master to stop the current transaction. Device Select. This signal indicates that the target device has decoded the address as its own cycle. This pin is an output pin when M1543 acts as a PCI slave has decoded address as its own cycle including subtractive decoding. System Error. This signal may be pulsed active by any agent that detects a system error condition. When SERRJ is sampling low, M1543 will assert NMI to generate non-maskable interrupt to CPU. Parity Signal. PAR is an Even Parity and is calculated on AD[31:0] and CBEJ[3:0]. When M1543 acts as a PCI master, it drives PAR one PCI clock after address phase for read/write transaction and one PCI clock after data phase for write transaction. When the M1543 acts as a target, it drives PAR one PCI clock after data phase for PCI master read transaction. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 7 M1543 Preliminary Data Sheet Pin Description Table (continued): Pin Name Type PCI Bus Interface: PHLDAJ I Group B PHOLDJ O-Group B 4/4 mA INTAJ_MI I Group B INTBJS0 INTCJS1 INTDJS2 CPU interface: INIT I/O Group B Schmitt 4/4 mA I/O Group B Schmitt 4/4 mA I/O Group B Schmitt 4/4 mA O-Group E 2.4/2.4 mA CPURST IGNNEJ INTR NMI O-Group E 2.4/2.4 mA O-Group E 2.4/2.4 mA O-Group E 2.4/2.4 mA O Group E 2.4/2.4 mA A20MJ FERRJ/ IRQ13 O-Group E 2.4/2.4 mA I Group E ISA Bus Interface: IRQ[15:14], IRQ[11:9], IRQ[7:3] RSTDRV SD[15:8] I/O Group A Schmitt 9.6/9.6 mA O-Group A 12/16mA I/O-Group A 12/12 mA Description PCI Bus Ownership Acknowledge. When PCI bus arbiter asserts this pin, M1543 has owned the PCI bus. PCI Bus Ownership Request. M1543 requests the ownership of the PCI bus from the PCI bus arbiter on the North Bridge. M1543 will assert this signal on behalf of the ISA Master, DMA Device, IDE Master, and the USB Master. PCI INTA. PCI interrupt input A or PCI interrupt polling input. M1543 can support up to 8 PCI Interrupts routing by using a 74F181 to do the polling. This pin is a multi-function pin: it is an INTAJ when 4 PCI Interrupts are supported, or connects to the 74F181 encoded output to support the 8 PCI Interrupts polling mode. PCI INTB. PCI interrupt input B or polling select_0 output. M1543 can support up to 8 PCI Interrupts routing by using a 74F181 to do the polling. This pin is a multifunction pin: it is an INTBJ when 4 PCI Interrupts are supported, or connects to the 74F181 selection input 0 to support the 8 PCI Interrupts polling mode. PCI INTC. PCI interrupt input C or polling select_1 output. M1543 can support up to 8 PCI Interrupts routing by using a 74F181 to do the polling. This pin is a multifunction pin: it is the INTCJ when 4 PCI Interrupts are supported, or connects to the 74F181 selection input 1 to support the 8 PCI Interrupts polling mode. PCI INTD. PCI interrupt input D or polling select_2 output. M1543 can support up to 8 PCI Interrupts routing by using a 74F181 to do the polling. This pin is a multifunction pin: it is the INTDJ when 4 PCI Interrupts are supported, or connects to the 74F181 selection input 2 to support the 8 PCI Interrupts polling mode. CPU Initialize Interrupt. CPU cold & warm reset. When CPU is Pentium Pro, this signal is low active. Otherwise, this signal is high active. When power on, KBC RC, port 92 RC, shutting down all will trigger INIT active. CPU Cold Reset. When power turn on, this reset signal will be asserted, and then will become de-asserted until 4 ms after PWG becomes high. Ignore Error. This pin is used as the ignore numeric coprocessor error. Interrupt Request to CPU. This is the interrupt signal generated by the internal 8259 and should connect to CPU INTR as a maskable interrupt. Non-maskable Interrupt to CPU. This is generated by the ISA Parity error (IOCHKJ assertion), PCI Parity error or DRAM Parity error (SERRJ assertion), and the other internal error event. This output should connect to CPU NMI as a nonmaskable interrupt. CPU A20 Mask. This is the CPU Address line A20 mask signal. Floating Point Error. FERRJ input to generate IRQ13. When coprocessor interface is disabled through configuration register Index-43h bit 6 setting, the function of this pin is IRQ13. Interrupt Request. The Interrupt Request lines are directly from the ISA Bus, from the PCI Interrupt Routing, or from the steerable Interrupt pins. ISA Bus Reset. This output is used to reset the ISA Bus and the system device. This pin will be active if the system reset is needed. ISA High Byte Slot Data Bus. These pins should connect to the ISA High Byte Slot Data Bus. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 8 M1543 Preliminary Data Sheet Pin Description Table (continued): Pin Name Type ISA Bus Interface: XD[7:0] SD[7:0]/ GPIO[7:0] I/O Group A 12/12 mA I/O Group A 12/12 mA SA[19:17] SA[16:0] SBHEJ LA[23:17] IO16J O-Group A 12/12 mA I/O-Group A 12/12 mA I/O -Group A 12/12 mA I/O-Group A 12/12 mA I -Group A M16J MEMRJ MEMWJ AEN IOCHRDY NOWSJ I/O-Group A 12/20 mA I/O-Group A 12/12 mA I/O -Group A 12/12 mA O-Group A 12/12 mA I/O-Group A 12/20 mA I-Group A IOCHKJ SYSCLK BALE I-Group A O-Group A 12/12 mA O-Group A 12/12 mA IORJ IOWJ SMEMRJ SMEMWJ DREQ[7:5], DREQ[3:0] I/O-Group A 12/16 mA I/O-Group A 12/12 mA O-Group A 12/12 mA O-Group A 12/12 mA I-Group A Schmitt DACKJ[7:5], DACKJ[3:0] O-Group A 9.6/9.6 mA Description XD Data Bus. When the SD[7:0] pins are defined as GPIO[7:0] pins, these pins can be used to drive SD[7:0] if TTL LS245 is used as a buffer. The M1543 signal XDIR will control this buffer. ISA Low Byte Slot Data Bus or General Purpose I/O. When external SD[7:0] bus is supported by the XD[7:0] bus through a LS245 TTL, these pins are used as the GPIO pins for green control. Otherwise, these pins are SD[7:0]. No external LS245 is required. ISA Slot Address Bus A19-A17. These pins should connect to the ISA System Address Bus. ISA Slot Address Bus A16-A0. These pins should connect to the ISA System Address Bus. ISA Byte High Enable. This pin should connect to the ISA System Byte High Enable pin. ISA Latched Address Bus. They are inputs during ISA master cycle and should connect to ISA Slot Latch Address Bus. ISA 16 Bit I/O Device Indicator. This is an input and will be driven by the device if the ISA I/O cycle is a 16-bit access. ISA 16 Bit Memory Device Indicator. This pin will be driven by the device or by the M1543 if the ISA Memory cycle is a 16-bit access. ISA Memory Read. This signal is an output when the M1543 is the ISA Bus master, or an input during ISA master cycle. ISA Memory Write. This signal is an output when the M1543 is the ISA Bus master, or an input during ISA master cycle. ISA I/O Address Enable. This signal will become active high during DMA cycle to prevent I/O device to decode DMA cycles as valid I/O cycles. ISA System Ready. This signal is an output during ISA master cycle, or an input when the M1543 is the ISA Bus master . ISA Zero Wait-State for Input. This input signal will terminate the CPU to ISA command instantly. ISA Parity Error. M1543 will generate NMI to CPU when this signal is asserted. ISA System Clock. This output is generated by the PCI clock and is used as the ISA system clock. Bus Address Latch Enable. BALE will be asserted throughout DMA, ISA master, and the Refresh cycles. Otherwise, it will only assert half the SYSCLK before the ISA command is asserted. ISA I/O Read. This signal is an input during ISA master cycle, and an output when the M1543 is the ISA Bus master. ISA I/O write. This signal is an input during ISA master cycle, and an output when the M1543 is the ISA Bus master. ISA System Memory Read. This signal indicates that the memory read command is below 1M Byte address. ISA System Memory Write. This signal indicates that the memory write command is below 1M Byte address. DMA Request Signals. These are inputs from the DMA Device or ISA Master Request. The M1543 will combine the DMA request, ISA Master request, IDE Bus Master request, and USB Master request to generate the PHOLDJ to the PCI Arbiter. DMA Acknowledge Signals. After the M1543 has acquired the PCI Bus grant (PHLDAJ), the internal arbiter will assert the DMA acknowledge signal to the DMA Device Request. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 9 M1543 Preliminary Data Sheet Pin Description Table (continued): Pin Name Type ISA Bus Interface: TC O-Group A REFRSHJ I/O Group A Miscellaneous Logic: SPKR O-Group A RTCAS O-Group A RTCRW O-Group A RTCDS SPLED ROMKBCSJ SERIRQ/ GPI[2] SIRQI SIRQII IRQ8J O-Group A O-Group A O-Group A B/I Group A I -Group A I -Group A I -Group C XDIR/ GPO[12] KBINH/ IRQ1I KBCLK/ GPI[9] KBDATA/ GPI[10] MSCLK/ GPI[11] MSDATA/ IRQ12I BIOSA17/ GPO[19] BIOSA16/ GPO[18] PCSJ/ GPO[0] IDE interface: PIDE_DRQ SIDE_DRQ O-Group A I/O Group A I/O Group A I/O Group A I/O Group A I/O Group A O-Group A O-Group A O-Group A I-Group D I-Group D Description DMA End of Process. This signal will be asserted after the DMA Device has ended the transaction. ISA Refresh Cycle. This signal is an input during ISA master cycle, and an output when the M1543 is the ISA Bus master. Speaker Output. This pin is used to control the Speaker Output and should connect to the Speaker. RTC Address Strobe. This pin is used as the RTC Address Strobe and should connect to the RTC. RTC Write Strobe. This pin is used as the RTC Read/Write Command and should connect to the RTC. The M1543 will drive the RTC command through dedicated pin instead of the 74F32 decode to save the system cost. RTC Data Strobe. This pin is used as the RTC Data Strobe and should connect to the RTC. Speed LED Output. This pin is used to control the Speed LED Output and should connect to LED. ROM/Keyboard Chip Select. This pin is the ROM chip select and is the Keyboard chip select also when internal KBC is disabled. Serial Interrupt Request or General Purpose Input. This pin is used to support the serial interrupt protocol or as a General Purpose Input. Steerable IRQ Input1. This is a steerable Interrupt input, M1543 will provide a Routing Mechanism to route this Interrupt to any 8259 input. Steerable IRQ Input2. This is a steerable Interrupt input, M1543 will provide a Routing Mechanism to route this Interrupt to any 8259 input. RTC Interrupt Input. This is the RTC Interrupt input. This pin belongs to the Power Group C, and it can support the RTC Alarm function during Soft-off or Suspend state. XD Bus Direction Control or General Purpose Output. When external XD bus is designed on motherboard, this pin is X-bus direction control. Otherwise, this pin is a general purpose output. Keyboard Inhibit or Interrupt One Input. This pin will be the Keyboard Inhibit input when internal KBC is enabled. Otherwise, it will be the IRQ1 input. Keyboard Clock or General Purpose Input. This pin is the Keyboard interface Clock when internal KBC is enabled. Otherwise, it is a general purpose input. Keyboard data or General Purpose Input. This pin is a KB interface DATA when internal KBC is enabled. Otherwise, this pin is a general purpose input. Mouse Clock or General Purpose Input. This pin is a mouse clock when internal PS2 Keyboard is enabled. Otherwise, this pin is a general purpose input. Mouse Data or Interrupt Line 12 Input. This pin is mouse data when internal PS2 Keyboard is enabled. Otherwise, this pin is the IRQ12 input. ROM Address 17 or General Purpose Output. This pin is the ROM A17 control when 2M ROM is used, or it is a general purpose output. ROM Address 16 or General Purpose Output. This pin is the ROM A16 control when 2M ROM is used, or it is a general purpose output. Programmable Chip Select or General Purpose Output. This pin can be selected as a programmable Chip Select, or as a general purpose output. Primary IDE DMA Request for IDE Master. This is the input pin from the Primary Channel IDE DMA request to do the IDE Master Transfer. Secondary IDE DMA Request for IDE Master. This is the input pin from the Secondary Channel IDE DMA request to do the IDE Master Transfer. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 10 M1543 Preliminary Data Sheet Pin Description Table (continued): Pin Name Type IDE interface: PIDE_AKJ O-Group D SIDE_AKJ O-Group D PIDE_RDY I-Group D SIDE_RDY I-Group D PIDEIORJ SIDEIORJ PIDEIOWJ O-Group D O-Group D O-Group D SIDEIOWJ O-Group D PIDECS1J O-Group D PIDECS3J O-Group D SIDECS1J O-Group D SIDECS3J O-Group D PIDE_A[2:0] O-Group D SIDE_A[2:0] O-Group D PIDE_D[15:0] I/O Group D SIDE_D[15:0] I/O Group D Power Management Unit: RSM_RSTJ I-Group C Schmitt SMIJ O-Group E 4/4 mA STPCLKJ SLEEPJ/ GPO[20] O-Group E 4/4 mA O-Group E 4/4 mA Description Primary IDE DACKJ for IDE Master. This is the output pin to grant the Primary Channel IDE DMA request to begin the IDE Master Transfer. Secondary IDE DACKJ for IDE Master. This is the output pin to grant the Secondary Channel IDE DMA request to begin the IDE Master Transfer. Primary IDE Ready. This is the input pin from the Primary IDE Channel to indicate the IDE device is ready to terminate the IDE command. The IDE device can de-assert this input (logic 0) to expand the IDE command if the device is not ready. Secondary IDE Ready. This is the input pin from the Secondary IDE Channel to indicate the IDE device is ready to terminate the IDE command. The IDE device can de-assert this input (logic 0) to expand the IDE command if the device is not ready. Primary IDE IORJ Command. This is the IORJ command output pin to notify the Primary IDE device to assert the Read Data. Secondary IDE IORJ Command. This is the IORJ command output pin to notify the Secondary IDE device to assert the Read Data. Primary IDE IOWJ Command. This is the IOWJ command output pin to notify the Primary IDE device that the available Write Data is already asserted by M1543. Secondary IDE IOWJ Command. This is the IOWJ command output pin to notify the Secondary IDE device that the available Write Data is already asserted by M1543. IDE Chip Select 1 for Primary Channel 0. This is the Chip Select 1 command output pin to enable the Primary IDE device to watch the Read/Write Command. IDE Chip Select 3 for Primary Channel 1. This is the Chip Select 3 command output pin to enable the Primary IDE device to watch the Read/Write Command. IDE Chip Select 1 for Secondary Channel 0. This is the Chip Select 1 command output pin to enable the Secondary IDE device to watch the Read/Write Command. IDE Chip Select 3 for Secondary Channel 1. This is the Chip Select 3 command output pin to enable the Secondary IDE device to watch the Read/Write Command. Primary IDE ATA Address Bus. These are the Address pins connected to Primary Channel. Secondary IDE ATA Address Bus. These are the Address pins connected to Secondary Channel. Primary IDE ATA Data Bus. These are the Data pins connected to Primary Channel. Secondary IDE ATA Data Bus. These are the Data pins connected to Secondary Channel. Resume Circuit Initial Reset Input. This input is used to initialize the resume circuit. SMM Interrupt Output. This output should be connected to CPU SMM Interrupt input. Stop CPU Internal Clock Output. This output is used to stop the CPU internal clock and should be connected to CPU STPCLKJ input. Pentium PRO Sleep State or General Purpose Output. This output will force Pentium PRO CPU to enter Sleep State, or as a general purpose output. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 11 M1543 Preliminary Data Sheet Pin Description Table (continued): Pin Name Type Power Management Unit: ZZ/ O-Group E GPO[1] 4/4mA CPU_STPJ/ GPO[2] O-Group B 4/4mA PCI_STPJ/ GPO[3] SUSTAT1J PWRBTNJ PCIREQJ/ GPI[3] O-Group B 4/4mA O-Group C 4/4 mA I-Group C Schmitt I-Group B SQWO/ GPO[9] OFF_PWR1/ GPO[22] OFF_PWR2/ GPO[23] RI THRMJ O-Group A 4/4mA O-Group C 4/4mA O-Group C 4/4mA I-Group C Schmitt I-Group A Schmitt ACPWR DOCKJ USB interface: USBP0+ USBP0USBP1+ USBP1OVCRJ/ GPI[0] SM Bus signal: SMBCLK SMBDATA I-Group C Schmitt I-Group C I/O Group B I/O Group B I Group B I/O-Group C Schmitt 9.6/9.6 mA I/O-Group C Schmitt 9.6/9.6 mA Description PBSRAM Power Saving Mode or General Purpose Output. This output is used to control L2 cache entering power saving mode, or as a general purpose output. Clock Cell CPU Clock Stop or General Purpose Output. This output is used to stop the CPU Clock of the clock generator, or as a general purpose output. Clock Cell PCI Clock Stop or General Purpose Output. This output is used to stop the PCI Clock of the clock generator, or as a general purpose output. Suspend Status for North Bridge. This output is used to notice the north bridge to control DRAM suspend refresh circuit. Power Button Input. This input is used to support the ACPI Power Button function. PCI Bus Request Event Input or General Purpose Input. This input comes from the North Bridge or external circuit to notice M1543 there is PCI request pending. This pin can also be programmed as a general purpose input. Square Wave Output or General Purpose Output. This output can be used to output Square Wave with 1Hz or 2Hz, or as a general purpose output. Remove All Circuit Power Except Internal Suspend Circuit and External DRAM or General Purpose Output. Remove All Circuit Power Except Internal Suspend Circuit or General Purpose Output. Ring-in. This input connects to Modem Ring-in input to support ACPI Ring-in function. Thermal Event Input or General Purpose Input. THRMJ is a triggered input to the M1543 showing that the external thermal detected circuits are requesting the system to enter power management mode. This signal also can be used optionally as a general purpose input signal. Baby AT or ATX hardware configure input. This chip supports baby AT power supply when pull low, ATX power supply when pull high. Docking Insert Event Input or General Purpose Input. This triggered input is used as a docking event indicator, or as a general purpose input signal. Universal Serial Bus Port 0. These are the serial data pair for USB Port 0. Universal Serial Bus Port 1. These are the serial data pair for USB Port 1. Over Current Detect Inputs or General Purpose Input. This pin is used to monitor the USB Power Over Current, or as a general purpose input. SM Bus Clock. SM Bus clock signal should be combined with SM Bus data to carry information between the devices connected to the SM Bus. SM Bus Data Line. SM Bus data signal should be combined with SM Bus clock to carry information between the devices connected to the SM Bus. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 12 M1543 Preliminary Data Sheet Pin Description Table (continued): Pin Name Type Floppy Disk Interface: RDATAJ I (IS) Group A WGATEJ O (O36) Group A WDATAJ O (O36) Group A HDSELJ DIRJ O (O36) Group A O (O36) Group A STEPJ DSKCHGJ DRV0J, DRV1J MOT0J, MOT1J WPROTJ TRK0J INDEXJ O (O36) Group A I (IS) Group A O (O36) Group A O (O36) Group A I (IS) Group A I (IS) Group A I (IS) Group A DENSEL Serial Port Interface: SIN1, SIN2 SOUT1, SOUT2 RTS1J O (O36) Group A I (IS) Group A O (O4) Group A O (O4) Group A RTS2J O (O4) Group A Description Read Disk Data. The active-low, raw data read signal from the disk is connected here. Each falling edge represents a flux transition of the encoded data. Write Gate. This active-low, high-drive output enables the write circuitry of the selected disk drive. This signal prevents glitches during power-up and powerdown. This prevents writing to the disk when power is cycled. Write Data. This active low output is a write- precompensated serial data to be written onto the selected disk drive. Each falling edge causes a flux change on the media. Head Select. This active low output determines which disk drive head is active. Low = Head 0, high (open) = Head 1. Direction. This active low output determines the direction of the head movement (low = step-in, high = step-out). During the write or read modes, this output is high. Step. This active low output signal produces a pulse at a softwareprogrammable rate to move the head during a seek operation. Disk Change. This disk interface input indicates when the disk drive door has been opened. This active-low signal is read from bit D7 of address xx7h. Drive Select 0, 1. Active low, output select drives 0-1. Motor on 0, 1. These active-low outputs select motor drives 0-1. Write Protected. This active-low Schmitt Trigger input signal senses from the disk drive that a disk is write-protected. Any write command is ignored. Track 00. This active low Schmitt Trigger input signal senses from the disk drive that the head is positioned over the outermost track. Index. This active low Schmitt Trigger input signal senses from the disk drive that the head is positioned over the beginning of a track, as marked by an index hole. Density Select. Indicates whether a low (250/300Kb/s) or high (500/1000Kbs) data rate has been selected. Receive Data. Receiver serial data input signal. Transmit Data. Transmitter serial data output from Serial Port. Request to send. Active low Request to send output for Primary Serial port. Handshake output signal notifies modem that the UART is ready to transmit data. This signal can be programmed by writing to bit 1 of Modem Control Register (MCR). The hardware reset will clear the RTSJ signal to inactive mode (high). Forced inactive during loop mode operation. RTS1J is a hardware setting pin for configuration port. When pull highconfiguration port is 0x3F0h, when pull low-configuration port is 0x370h. This pin has a 20K(default) internal pull-up resistor. Request to send. This active low output for Secondary Serial Port. Handshake output signal notifies modem that the UART is ready to transmit data. This signal can be programmed by writing to bit 1 of Modem Control Register (MCR). The hardware reset will clear the RTSJ signal to inactive mode (high). Forced inactive during loop mode operation. RTS2J is a hardware setting pin for internal KBC. When pull high-KBC enable, when pull low-KBC disable. This pin has a 20K(default) internal pullup resistor. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 13 M1543 Preliminary Data Sheet Pin Description Table (continued): Pin Name Type Serial Port Interface: DTR1J O (O4) Group A DTR2J O (O4) Group A CTS1J CTS2J I (IS) Group A DSR1J DSR2J I (IS) Group A DCD1J, DCD2J I (IS) Group A RI1J, RI2J I (IS) Group A Printer Port Interface: AUTOFDJ O (O20) Group A INITJ SLCTINJ O (O20) Group A O (O20) Group A Description Data Terminal Ready. This is an active low output for primary serial port. Handshake output signal signifies to modem that the UART is ready to establish data communication link. This signal can be programmed by writing to bit 0 of Modem Control Register (MCR). The hardware reset will clear the DTRJ signal to inactive during loop mode operation. Data Terminal Ready. This active low output is for secondary serial port. Handshake output signal notifies modem that the UART is ready to establish data communication link. This signal can be programmed by writing to bit 0 of Modem Control Register (MCR). The hardware reset will clear the DTRJ signal to inactive mode (high). Forced inactive during loop mode operation. DTR2J is a hardware setting pin for internal KB. When pull high- internal KB is PS2 mode, when pull low-internal KB is AT mode. This pin has a 20K(default) internal pull-up resistor. Clear to Send. This active low input for primary and secondary serial ports. Handshake signal which notifies the UART that the modem is ready to receive data. The CPU can monitor the status of CTSJ signal by reading bit 4 of Modem Status Register (MSR). A CTSJ signal state change from low to high after the last MSR read will set MSR bit 0 to a 1. If bit 3 of Interrupt Enable Register is set, the interrupt is generated when CTSJ changes state. The CTSJ signal has no effect on the transmitter. Note : Bit 4 of MSR is the complement of CTSJ. Data Set Ready. This active low input is for primary and secondary serial ports. Handshake signal which notifies the UART that the modem is ready to establish the communication link. The CPU can monitor the status of DSRJ signal by reading bit5 of Modem Status Register (MSR). A DSRJ signal state change from low to high after the last MSR read will set MSR bit 1 to a 1. If bit 3 of Interrupt Enable Register is set, the interrupt is generated when DSRJ changes state. Note: Bit 5 of MSR is the complement of DSRJ. Data Carrier Detect. This active low input is for primary and secondary serial ports. Handshake signal which notifies the UART that carrier signal is detected by the modem. The CPU can monitor the status of DCDJ signal by reading bit 7 of Modem Status Register (MSR). A DCDJ signal state change from low to high after the last MSR read will set MSR bit 3 to a 1. If bit 3 of Interrupt Enable Register is set, the interrupt is generated when DCDJ changes state. Note : bit 7 of MSR is the complement of DCDJ. Ring Indicator. This active low input is for primary and secondary serial ports. Handshake signal which notifies the UART that the telephone ring signal is detected by the modem. The CPU can monitor the status of RIJ signal by reading bit 6 of Modem Status Register (MSR). An RIJ signal state change from low to high after the last MSR read will set MSR bit 2 to a 1. If bit 3 of Interrupt Enable Register is set, the interrupt is generated when RIJ changes state. Note : bit 6 of MSR is the complement of RIJ. Autofeed Output. This active low output causes the printer to automatically feed one line after each line is printed. This signal is the complement of bit 1 of the Printer Control Register. Initiate Output. This active low signal is bit 2 of the printer control register. This is used to initiate the printer when low. Printer select input. This active low signal selects the printer. This is the complement of bit 3 of the Printer Control Register. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 14 M1543 Preliminary Data Sheet Pin Description Table (continued): Pin Name Type Printer Port Interface: STROBJ O (O20) Group A BUSY I (IS) Group A ACKJ I (IS) Group A PE SLCT ERRORJ PD0-PD7 Power Pins: VCC_A VCC_3A VCC_B VCC_C I (IS) Group A I (IS) Group A I Group A I/O (I/O20) Group A P P P P VCC_3C P VCC_D P VCC_E P VDD_5 P VDD_5S P Vss or Gnd P Description Strobe Output. This active low pulse is used to strobe the printer data into the printer. This output signal is the complement of bit 0 of the Printer Control Register. Busy. This signal indicates the status of the printer. A high indicates the printer is busy and not ready to receive new data. Bit 7 of the Printer Status Register is the complement of the BUSY input. Acknowledge. This active low output from the printer indicates it has received the data and is ready to accept new data. Bit 6 of the Printer Status Register reads the ACKJ input. Paper End. This signal indicates that the printer is out of paper. Bit 5 of the Printer Status Register reads the PE input. Printer Selected Status. This active high output from the printer indicates that it has power on. Bit 4 of the Printer Status Register reads the SLCT input. Error. This active low signal indicates an error condition at the printer. Port Data. This bi-directional parallel data bus is used to transfer information between CPU and peripherals. Vcc for Power Group A. This power is used for ISA interface. Vcc for Power Group A. This power is used for ISA interface. Vcc for Power Group B. This power is used for PCI interface. Vcc for Power Group C. This power is used for resume/suspend control interface signals during normal operation and suspend periods. Vcc for Power Group C. This power is used for Resume/Suspend Control interface. Vcc for Power Group D. This power is used for IDE interface. Vcc 3.3V or 2.5V for Power Group E. This power is used for CPU interface. If this power connects to 3.3V, the relative signals will output 3.3V and accept 3.3V input. If this power connects to 2.5V, the relative signals will output 2.5V and accept 2.5V input. Vcc 5.0V for core Power. It supplies the core power for the internal circuit except the suspend circuit. Vcc 5.0V for Suspend/Resume Core Power. It supplies the core power for the internal suspend/resume circuit. Ground. Type Description: I IS I/O16 I/O20 ICLK OCLK O4 O8 O16 O20 O36 OD16 Input TTL compatible. Input with Schmitt Trigger. Input/Output with 16 mA sink @ 0.4 V, source 8 mA @ 2.4 V. Input/Output with 16 mA sink @ 0.4 V, source 16 mA @ 2.4 V. CLK input. CLK output. Output with 4 mA sink @ 0.4 V, source 4 mA @ 2.4 V. Output with 8 mA sink @ 0.4 V, source 4 mA @ 2.4 V. Output with 16 mA sink @ 0.4 V, source 8 mA @ 2.4 V. Output with 16 mA sink @ 0.4 V, source 16 mA @ 2.4 V. Output with 36 mA sink @ 0.4 V, source 4 mA @ 2.4 V. Open drain outputs, sinks 24 mA @ 0.4 V. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 15 2.3 Numerical Pin List Pin No. A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16 A17 A18 A19 A20 B1 B2 B3 B4 B5 B6 B7 B8 B9 B10 B11 B12 B13 B14 B15 B16 B17 B18 B19 B20 C1 C2 C3 C4 C5 Pin Name AD21 AD20 AD19 AD16 IRDYJ SERRJ AD14 AD10 AD6 AD1 PHLDJ GPI3 USBP1RTCDS ROMCSJ XD2 XD5 SD15 SD14 SD13 CBEJ3 AD23 AD22 AD17 FRAMEJ STOPJ AD15 AD11 AD7 AD2 PHLDAJ USBCLK USBP0+ RTCRW XD0 XD3 XD6 SD12 DREQ7 SD11 AD26 AD25 AD24 AD18 CBEJ2 Type I/O I/O I/O I/O I/O I I/O I/O I/O I/O O I I/O O O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I I I/O O I/O I/O I/O I/O I I/O I/O I/O I/O I/O I/O M1543 Preliminary Data Sheet Pin No. C6 C7 C8 C9 C10 C11 C12 C13 C14 C15 C16 C17 C18 C19 C20 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 D14 D15 D16 D17 D18 D19 D20 E1 E2 E3 E4 E5 E6 E7 E8 E9 E10 Pin Name DEVSELJ CBEJ1 AD12 CBEJ0 AD3 GPO3 GPI0 USBP0RTCAS XD1 XD4 XD7 DACKJ7 SD10 DREQ6 AD29 AD28 AD27 AD30 AD31 TRDYJ PAR AD13 AD8 AD4 GPO2 SIRQI GPO19 GPO12 GPO0 GPI2 SPKR SD9 DACKJ6 SD8 PIDECS3 PIDECS1 PIDEA2 INTA INTB INTC PCIRSTJ PCICLK AD9 AD5 Type I/O I/O I/O I/O I/O O I I/O O I/O I/O I/O O I/O I I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O O I O O O I O I/O O I/O O O O I I/O I/O O I I/O I/O Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 16 Numerical Pin List (continued) Pin No. E11 Pin Name AD0 E12 USBP1+ E13 SIRQII E14 GPO18 E15 GPO9 E16 THRMJ E17 SPLED E18 DREQ5 E19 MEMWJ E20 DACKJ5 F1 PIDEA0 F2 PIDEA1 F3 PIDEDAKJ F4 INTD F5 PIDEIRDYJ F6 VCC_B F14 VCC_A F15 VCC_E F16 IRQ1I F17 MEMRJ F18 DREQ0 F19 LA17 F20 DACKJ0 G1 PIDERJ G2 PIDEWJ G3 PIDEDRQ G4 PIDED15 G5 PIDED0 G6 VCC_D G15 VCC_3C G16 LA18 G17 IRQ14 G18 INIT G19 A20MJ G20 IRQ13 H1 PIDED14 H2 PIDED1 H3 PIDED13 H4 PIDED2 H5 PIDED12 H8 H9 H10 H11 H12 Type I/O I/O I O O I O I I/O O O O O I/O I P P P I/O I/O I I/O O O O I I/O I/O P P I/O I/O O O I/O I/O I/O I/O I/O I/O M1543 Preliminary Data Sheet Pin No. H13 H16 H17 H18 H19 H20 J1 J2 J3 J4 J5 J8 J9 J10 J11 J12 J13 J16 J17 J18 J19 J20 K1 K2 K3 K4 K5 K8 K9 K10 K11 K12 K13 K16 K17 K18 K19 K20 L1 L2 L3 L4 L5 L8 L9 Pin Name LA19 IRQ15 SMIJ NMI INTR PIDED3 PIDED11 PIDED4 PIDED10 PIDED5 GND GND GND GND LA20 GPO20 STPCLK IGNNEJ CPURST PIDED9 PIDED6 PIDED8 PIDED7 SIDECS3 GND GND GND GND GPO1 GPO22 RSMRSTJ SUSTAT1J ACPWR SIDECS1 SIDEA2 SIDEA0 SIDEA1 SIDEDAKJ GND Type I/O I/O O O O I/O I/O I/O I/O I/O P P P P I/O O O O O I/O I/O I/O I/O O P P P P O O I O I O O O O O P Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 17 Numerical Pin List (continued) Pin No. Pin Name L10 GND L11 GND L12 GND L13 L16 SMBDATA L17 GPO23 L18 DOCKJ L19 IRQ8J L20 PWRBTNJ M1 SIDEIRDYJ M2 SIDERJ M3 SIDEWJ M4 SIDEDRQ M5 SIDED15 M8 M9 GND M10 GND M11 GND M12 GND M13 M16 SMBCLK M17 LA21 M18 RI M19 OSC32KO M20 PWG N1 SIDED0 N2 SIDED14 N3 SIDED1 N4 SIDED13 N5 SIDED2 N8 N9 N10 N11 N12 N13 N15 VDD_5S N16 IRQ11 N17 LA22 N18 IRQ10 N19 OSC32II N20 OSC32I P1 SIDED12 P2 SIDED3 P3 SIDED11 Type P P P I/O O I I I I O O I I/O P P P P I/O I/O I O I I/O I/O I/O I/O I/O P I/O I/O I/O I I I/O I/O I/O M1543 Preliminary Data Sheet Pin No. P4 P5 P6 P15 P16 P17 P18 P19 P20 R1 R2 R3 R4 R5 R6 R7 R14 R15 R16 R17 R18 R19 R20 T1 T2 T3 T4 T5 T6 T7 T8 T9 T10 T11 T12 T13 T14 T15 T16 T17 T18 T19 T20 U1 U2 Pin Name SIDED4 XDIRJ VCC_A VCC_C LA23 IO16 SBHEJ M16 OSC14M SIDED10 SIDED5 SIDED9 MOT1J DRV0J VDD_5 VCC_A,_D VCC_3A VCC_A BALE TC SA0 SA1 SA2 SIDED6 SIDED8 DSKCHGJ DRV1J MOT0J DENSEL DCD1J PD3 ACKJ RSTDRV MSCLK MSDATA SD0 SA19 DACKJ3 DACKJ2 SA6 SA3 SA4 SA5 SIDED7 HDSELJ Type I/O O P P I/O I I/O I/O I I/O I/O I/O O O P P P P O O I/O I/O I/O I/O I/O I O O O I I/O I O O I/O I/O I/O O O I/O I/O I/O I/O I/O O Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 18 Numerical Pin List (continued) Pin No. U3 Pin Name RDATAJ U4 INDEXJ U5 DCD2J U6 DSR1J U7 STROBJ U8 PD4 U9 BUSY U10 ERRORJ U11 KBCLK U12 KBDATA U13 SD1 U14 SMEMRJ U15 SA17 U16 IRQ3 U17 IRQ5 U18 SA8 U19 SA7 U20 IRQ4 V1 WPROTJ V2 TRK0J V3 WGATEJ V4 DTR2J V5 RI1J V6 DTR1J V7 PD0 V8 PD5 V9 PE V10 XINITJ V11 IRQ9 V12 DREQ2 V13 NOWSJ V14 AEN V15 IORJ V16 SA15 V17 DREQ1 V18 SA10 V19 IRQ6 V20 SA9 W1 WDATAJ W2 STEPJ W3 RTS2J W4 SOUT2 W5 CTS1J Type I I I I O I/O I I I/O I/O I/O O I/O I/O I/O I/O I/O I/O I I O O I O I/O I/O I O I/O I I O I/O I/O I I/O I/O I/O O O O O I M1543 Preliminary Data Sheet Pin No. W6 W7 W8 W9 W10 W11 W12 W13 W14 W15 W16 W17 W18 W19 W20 Y1 Y2 Y3 Y4 Y5 Y6 Y7 Y8 Y9 Y10 Y11 Y12 Y13 Y14 Y15 Y16 Y17 Y18 Y19 Y20 Pin Name SOUT1 PD1 PD6 SLCT SLCTINJ SD6 SD4 SD2 SMEMWJ SA18 DREQ3 SA14 SYSCLK SA11 IRQ7 RI2J CTS2J DSR2J SIN2 RTS1J SIN1 PD2 PD7 AUTOFDJ IOCK SD7 SD5 SD3 IOCHRDY IOWJ SA16 DACKJ1 SA13 REFRSHJ SA12 Type O I/O I/O I O I/O I/O I/O O I/O I I/O O I/O I/O I I I I O I I/O I/O O I/O I/O I/O I/O I/O I/O I/O O I/O I I/O Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 19 2.4 Alphabetical Pin List Pin No. G19 K20 T9 E11 A10 A8 B8 C8 D8 A7 B7 A4 B4 C4 A3 B10 A2 A1 B3 B2 C3 C2 C1 D3 D2 D1 C10 D4 D5 D10 E10 A9 B9 D9 E9 V14 Y9 R16 U9 C9 C7 C5 B1 J20 W5 Pin Name A20MJ ACPWR ACKJ AD0 AD1 AD10 AD11 AD12 AD13 AD14 AD15 AD16 AD17 AD18 AD19 AD2 AD20 AD21 AD22 AD23 AD24 AD25 AD26 AD27 AD28 AD29 AD3 AD30 AD31 AD4 AD5 AD6 AD7 AD8 AD9 AEN AUTOFDJ BALE BUSY CBEJ0 CBEJ1 CBEJ2 CBEJ3 CPURST CTS1J Type O I I I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O O O O I I/O I/O I/O I/O O I M1543 Preliminary Data Sheet Pin No. Y2 F20 Y17 T16 T15 E20 D19 C18 T7 U5 T6 C6 P5 L18 F18 V17 V12 W16 E18 C20 B19 R5 T4 T3 U6 Y3 V6 V4 U10 B5 H10 H11 H12 H13 H8 H9 J10 J11 J12 J13 J8 J9 K10 K11 K12 Pin Name CTS2J DACKJ0 DACKJ1 DACKJ2 DACKJ3 DACKJ5 DACKJ6 DACKJ7 DCD1J DCD2J DENSEL DEVSELJ DIRJ DOCKJ DREQ0 DREQ1 DREQ2 DREQ3 DREQ5 DREQ6 DREQ7 DRV0J DRV1J DSKCHGJ DSR1J DSR2J DTR1J DTR2J ERRORJ FRAMEJ GND GND GND GND GND GND GND Type I O O O O O O O I I O I/O O I I I I I I I I O O I I I O O I I/O P P P P P P P Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 20 Alphabetical Pin List (continued) Pin No. K13 Pin Name - K8 - K9 GND L10 GND L11 GND L12 GND L13 - L8 - L9 GND M10 GND M11 GND M12 GND M13 - M8 - M9 GND N10 - N11 - N12 - N13 - N8 - N9 - C12 GPI0 D16 GPI2 A12 GPI3 D15 GPO0 K16 GPO1 D14 GPO12 E14 GPO18 D13 GPO19 D11 GPO2 J17 GPO20 K17 GPO22 L17 GPO23 C11 GPO3 E15 GPO9 U2 HDSELJ J19 IGNNEJ U4 INDEXJ V10 INITJ G18 INIT E4 INTA E5 INTB E6 INTC F4 INTD H20 INTR Type P P P P P P P P P I I I O O O O O O O O O O O O O I O O I I/O I/O I/O O M1543 Preliminary Data Sheet Pin No. P17 Y14 Y10 V15 Y15 A5 N18 N16 G20 G17 H17 F16 U16 U20 U17 V19 W20 L19 V11 U11 U12 F19 G16 H16 J16 M17 N17 P16 P19 F17 E19 T5 R4 T11 T12 H19 V13 P20 N20 N19 M19 D7 E8 E7 V7 Pin Name IO16 IOCHRDY IOCK IORJ IOWJ IRDYJ IRQ10 IRQ11 IRQ13 IRQ14 IRQ15 IRQ1I IRQ3 IRQ4 IRQ5 IRQ6 IRQ7 IRQ8J IRQ9 KBCLK KBDATA LA17 LA18 LA19 LA20 LA21 LA22 LA23 M16 MEMRJ MEMWJ MOT0J MOT1J MSCLK MSDATA NMI NOWSJ OSC14M OSC32I OSC32II OSC32KO PAR PCICLK PCIRSTJ PD0 Type I I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O O O O I/O O I I I I O I/O I O I/O Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 21 Alphabetical Pin List (continued) Pin No. W7 Pin Name PD1 Y7 PD2 T8 PD3 U8 PD4 V8 PD5 W8 PD6 Y8 PD7 V9 PE B11 PHLDAJ A11 PHLDJ F1 PIDEA0 F2 PIDEA1 E3 PIDEA2 E2 PIDECS1 E1 PIDECS3 G5 PIDED0 H2 PIDED1 H4 PIDED2 J1 PIDED3 J3 PIDED4 J5 PIDED5 K2 PIDED6 K4 PIDED7 K3 PIDED8 K1 PIDED9 J4 PIDED10 J2 PIDED11 H5 PIDED12 H3 PIDED13 H1 PIDED14 G4 PIDED15 F3 PIDEDAKJ G3 PIDEDRQ F5 PIDEIRDYJ G1 PIDERJ G2 PIDEWJ M20 PWG L20 PWRBTNJ U3 RDATAJ Y19 REFRSHJ V5 RI1J Y1 RI2J M18 RI A15 ROMCSJ K18 RSMRSTJ Type I/O I/O I/O I/O I/O I/O I/O I I O O O O O O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O O I I O O I I I I I I I O I M1543 Preliminary Data Sheet Pin No. T10 C14 A14 B14 Y5 W3 R18 R19 V18 W19 Y20 Y18 W17 V16 Y16 U15 W15 T14 R20 T18 T19 T20 T17 U19 U18 V20 P18 T13 U13 C19 B20 B18 A20 A19 A18 W13 Y13 W12 Y12 W11 Y11 D20 D18 A6 L3 Pin Name RSTDRV RTCAS RTCDS RTCRW RTS1J RTS2J SA0 SA1 SA10 SA11 SA12 SA13 SA14 SA15 SA16 SA17 SA18 SA19 SA2 SA3 SA4 SA5 SA6 SA7 SA8 SA9 SBHEJ SD0 SD1 SD10 SD11 SD12 SD13 SD14 SD15 SD2 SD3 SD4 SD5 SD6 SD7 SD8 SD9 SERRJ SIDEA0 Type O O O O O O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I O Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 22 Alphabetical Pin List (continued) Pin No. Pin Name L4 SIDEA1 L2 SIDEA2 L1 SIDECS1 K5 SIDECS3 N1 SIDED0 N3 SIDED1 R1 SIDED10 P3 SIDED11 P1 SIDED12 N4 SIDED13 N2 SIDED14 M5 SIDED15 N5 SIDED2 P2 SIDED3 P4 SIDED4 R2 SIDED5 T1 SIDED6 U1 SIDED7 T2 SIDED8 R3 SIDED9 L5 SIDEDAKJ M4 SIDEDRQ M1 SIDEIRDYJ M2 SIDERJ M3 SIDEWJ Y6 SIN1 Y4 SIN2 D12 SIRQI E13 SIRQII W9 W10 M16 L16 SLCT SLCTINJ SMBCLK SMBDATA U14 W14 H18 W6 SMEMRJ SMEMWJ SMIJ SOUT1 W4 SOUT2 D17 SPKR E17 SPLED W2 STEPJ B6 STOPJ U7 STROBJ J18 STPCLK K19 SUSTAT1J Type O O O O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O O I I O O I I I I I O I/O I/O O O O O O O O O I/O O O O M1543 Preliminary Data Sheet Pin No. W18 V2 R17 E16 D6 B12 B13 C13 E12 A13 G6 R6 N15 P6 R7 R14 R15 P15 G15 F15 F14 F6 W1 V3 V1 B15 C15 A16 B16 C16 A17 B17 C17 Pin Name SYSCLK TRK0J TC THRMJ TRDYJ USBCLK USBP0+ USBP0USBP1+ USBP1VCC_D VDD_5 VDD_5S VCC_A,_D VCC_A,_D VCC_3A VCC_A VCC_C VCC_3C VCC_E VCC_A VCC_B WDATAJ WGATEJ WPROTJ XD0 XD1 XD2 XD3 XD4 XD5 XD6 XD7 Type O I O I I/O I I/O I/O I/O I/O P P P P P P P P P P P P O O I I/O I/O I/O I/O I/O I/O I/O I/O Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 23 M1543 Preliminary Data Sheet 2.5 Hardware Setting Description: Pin No. D15 A11 E17 P5 R17 D17 A15 Y5 W3 V4 Pin Name PCSJ XPHOLDJ SPLED XDIR TC SPKR ROMKBCSJ RTS1J RTS2J DTR2J Setup, Configuration Pull-low, POWER PC mode Pull-high, INTEL PC mode Pull-low, USB in test mode. (for test only) Pull-high, USB in normal mode. Pull-low, support 256KB ROM Pull-high, not support 256KB ROM Pull-low, Pentium Pro CPU is used. Pull-high, Pentium CPU is used. Pull-low, pins SD/GPIO[7:0] are SD[7:0], external LS245 is not required. Pull-high, pins SD/GPIO[7:0] are GPIO[7:0], external LS245 is required. Pull-low, internal Super I/O test mode enabled. (for test only) Pull-high, internal Super I/O test mode disabled. Pull-low, chip test mode is enabled. (for test only) Pull-high, chip test mode is disabled. Pull-low, 0x370h. Pull-high, 0x3F0h. Pull-low, internal keyboard disable. Pull-high, internal keyboard enable. Pull-low, internal keyboard is AT mode. Pull-high, internal keyboard is PS2 mode. 2.6 XDIR Control When pin TC is pull high, the external LS245 is required. The connection is: ROM XD[7:0] M1543 XDIR RTC KBC/SIO LS245 A XDIR B SD[7:0] XDIR=1 A=>B XDIR=0 B->A XD[7:0] 1) PCI I/O Read ISA : XDIR=0 2) PCI I/O Write ISA : XDIR=1 3) PCI Memory Read ISA : XDIR=0 4) PCI Memory Write ISA : XDIR=1 5) PCI access XD bus device (RTC,ROM,KBC) : XDIR =1 6) ISA Refresh : XDIR =1 7) ISA/DMA master MR/IOW : XDIR=1 8) ISA/DMA master MW/IOR : XDIR=0 ISA bus Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 24 Section 3: Function Description 3.1 PCI Command Set The command types M1543 supports in Slave mode are Interrupt Acknowledge, Special cycle, I/O read, I/O write, memory read, memory write, configuration read and configuration write and other multiple memory read/write cycles. M1543 PCI Cycle Description CBEJ Command Type 0000 Interrupt 0001 Special Cycle 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 I/O Read I/O Write Reserved Reserved Memory Read Memory Write Reserved Reserved Configuration Read Configuration Write Memory Read Multiple Reserved Memory Read line 1111 Memory Write and Invalidate as Target Yes Yes - Note.1 Yes Yes No No Yes Yes No No Yes Yes Yes - Note.2 No Yes Note.2 Yes Note.3 as Initiator No No Yes Yes No No Yes Yes No No No No No No No No Note 1: Note 2: Note 3: The M1543 only decodes Stop Grant special cycle, and Halt special cycle and Shutdown special cycle. All other special cycles are ignored. Treated as Memory read Treated as Memory write 3.2 PCI Slave Description As a PCI slave, the M1543 will assert DEVSELJ signal to indicate it is the target of the PCI transaction. DEVSELJ is asserted when the M1543 positively or subtractively decodes the PCI transaction. The configuration cycle, USB programming cycle and IDE I/O cycle are positively decoded. The timer and interrupt controller programming cycles are positively or subtractively decoded via register setting. All others are subtractively decoded except for docking mode. All cycles will be positively decoded in docking mode. These cycles include PCI to ISA slave cycles. Under docking mode, M1543 only supports positive decode. M1543 Preliminary Data Sheet A 32-bit posted write buffer is embedded to support PCI to ISA memory write cycles and delay transaction cycle. Multiple read/write transactions are not supported. Hence, any burst cycles decoded by the M1543 will be terminated by disconnecting semantics after the first data transaction has completed. The M1543 will retry any PCI initiated cycle when its internal buffer cycle is still active. M1543 supports delay transaction and discard counter in compliance with PCI specification 2.1. 3.2.1 Posted Write Buffer The PCI-to-ISA memory write cycles will be posted into the write buffer when it is enabled, and the buffer is scheduled to be written to the ISA bus. Any subsequent PCI cycles to the M1543 will be retried until the posted write buffer is empty. The buffer also optionally supports data I/O posted write cycle for sound cards. The posted write buffer must be flushed and disabled before an ISA/DMA master owns the ISA and PCI bus. This rule eliminates the possibility of a deadlock caused by a committed ISA cycle. 3.3 PCI Master 3.3.1 M1543 as PCI Master The M1543 will assert a master abort due to DEVSELJ timeout. The M1543 acts as a PCI Master when an ISA or DMA master accesses the PCI memory. The M1543 provides an 8-byte bi-directional line buffer for ISA/DMA Master memory read from or write to PCI bus. The line buffer is used to isolate the ISA bus' slower devices from the PCI. Only an ISA/DMA master memory write or read cycle to PCI bus can be assembled/disassembled into line buffer. When line buffer is enabled, the ISA/DMA master can prefetch 2 Doublewords to the line buffer for read cycle. However, only 4 bytes are used in the buffer for write cycle. In some cases, a strong ordering must be kept due to coherency problems, the line buffer will be disabled. When the line buffer is disabled, the reorder problem caused by assembly/disassembly will be avoided and guarantees read/write ordering. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 25 3.3.2 Posted - Write Buffer Flush Once an ISA/ DMA master begins a cycle on the ISA bus, the cycle cannot be backed off. It can only be held in wait states via IOCHRDY. In order to avoid deadlock situations, the PCI master post write buffer needs to be flushed before an ISA/ DMA master gets the ISA bus. When the ISA/DMA master owns the ISA bus, the post write buffer will be disabled. 3.3.3 Line Buffer Management When an ISA/DMA master reads from PCI memory, the M1543 prefetches 8 bytes of data into the line buffer. If there is a read "hit" from the line buffer, the "hit" bytes are marked as invalid. There are 3 conditions why the line buffer needs prefetching : 1. Line buffer is "Empty" when read. 2. Read "Miss" to the line buffer. 3. Read the invalid byte from the line buffer. When ISA/DMA master writes to PCI memory, the M1543 writes data to the line buffer. When the 4-byte buffer is full, it flushes data to the PCI bus. There are five conditions why the line buffer must flush its data : 1. Line buffer is full. Flush the line buffer and mark empty. 2. Write "Miss" to the partially full 4-byte line. Flush the partially full line and mark as empty, then write to the empty line. 3. Write "Hit" to the valid bytes. Flush it and mark as empty, then write to the empty line. 4. Read after write transaction and the line buffer is partially full. Flush the line buffer then do read prefetch. 5. Master has changed on DACKJ going inactive and last transaction is write and line buffer is partially full. Flush the line buffer. 3.4 Parity Support As a master, the M1543 will generate address parity for read/write cycles, and data parity for write cycles. Parity check will work at read cycle. As a target, the M1543 will generate data parity for read cycles. PAR is even parity across AD[31:0] and CBEJ[3:0]. Even parity means that the number of 1's within the 36 bits and PAR is even. PAR has the same timing as AD[31:0] but delayed by one clock. M1543 Preliminary Data Sheet 3.5 Address decoding a. Positively decodes configuration cycle. b. Positively or subtractively decodes interrupt acknowledge cycle. c. Positively decodes on-chip IDE access cycle. d. Positively decodes on-chip USB access cycle. e. Positively or subtractively decodes internal I/O cycle (interrupt controller and timer counter). f. Subtractively decodes DMA controller internal registers. g. Others are subtractive decode. h. When M1543 is programmed to be docking mode, all cycles are positively decoded including ISA-destinated cycles. 3.6 IDE Master Controller a. Supports PCI bus mastering, transfer rate up to 132 Mbytes/sec. This significantly lightens the load of CPU work burden. b. Supports IDE PIO modes 0, 1, 2, 3, 4 & 5 timing and multiword DMA modes 0,1,2 on enhanced IDE specifications. This chip is capable of accelerated PIO data transfers as well as acting as a PCI bus master on behalf of an IDE DMA slave device. The M1543 provides an interface for two dedicated IDE connectors. c. Supports compatible and native PCI mode. Compatible mode is the default mode, native PCI mode will only be chosen by the BIOS. d. 10 Doubleword FIFO for posted-write or read-ahead buffer for each channel (Total = 20 Doublewords). Each channel buffer is independent. e. Programmable command and data transfer timing per drive for maximum flexibility. Operation of two hard disks is possible even if they have different PIO modes. f. Supports concurrent operation on two ATA channels. M1543 simultaneously operates two drives. g. Supports ATAPI CD-ROM concurrent operation. Simultaneous use of hard disks and CD-ROM is possible. h. Dedicated ATA bus pins and dedicated buffers for each channel, no extra TTLs are needed. i. Supports Ultra 33 high performance ATA bus for 33 Mbytes transfer rate. 3.7 Distributed DMA The Distributed DMA Host Controller supported by M1543 provides one way to allow the separation of the slave DMA controllers in the hardware architecture, and yet allows the OS and application base to still utilize two legacy DMA controllers. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 26 3.8 Serialized IRQ The serialized IRQ supported by M1543 provides one pin named SERIRQ to generate IRQs event to Interrupt Controller from serialized IRQ protocol. The frame number can be programmed from 17 to 32. The Operation mode (quiet or continuous) and Start Frame Pulse width (4 to 8 pciclks) are also programmable. 3.9 Advanced Power Management The M1543 Power Management Unit includes full ACPI compliance spec. and legacy power management including SMM, Stop clock control unit, APM, External SMI-switch control, Programmable counters for time-out event generation. M1543 can provide On (working)/ Sleeping (Power_on_suspend)/ Suspend_to_DRAM/ Suspend_to_Disk/ Soft_Off/ Mechanical_Off global system states to minimize the overall system power consumption. M1543 also provides an extra Standby state for monitoring over 16 peripheral devices activity. M1543 supports programmable Stop_Clock with throttle/ CLK_ON_STPCLK/CLK_OFF_STPCLK control for fitting the ACPI C0-C3 clock states. M1543 provides several hot plugging events detection and multiple external wake-up events for satisfying the notebook requirements. M1543 supports the battery, thermal detected logic and system/chip/devices power plane management logic. The M1543 provides full support for Advanced Configuration and Power Interface (ACPI), On-now technology and OS Directed Power Management (OSPM). M1543 also supports the legacy power management control, such as SMM and SMI features. The goal of the M1543 power management not only targets to the current desktop/ notebook satisfaction but also to the future OS driven flexible requirements. 3.10 System Management Bus (SMBus) The M1543 SMBus has been designed based on : System Management Bus Specification Rev 1.0 Smart Battery Data Specification Rev 1.0 Smart Battery Charger Specification Rev 1.0 System Management Bus BIOS Specification Rev 1.0 Smart Battery Selector Specification Rev 0.9 The System Management Bus (SMBus) host controller in M1543 supports the ability to communicate with powerrelated devices by SMBus protocol. It can be a master or slave on the SMBus, providing quick send byte/receive byte/ write byte/write word/read word/block read/block write command with clock synchronization and arbitration functions. M1543 Preliminary Data Sheet 3.11 Universal Serial Bus (USB) The M1543 USB is an implementation of the Universal Serial Bus (USB) 1.0 specification which contains PCI interface logic, Host Controller and an integrated Root Hub with two USB ports. For DOS compatibility, Keyboard and Mouse legacy are also supported. 3.12 Super I/O The M1543 Super I/O incorporates two full-function universal asynchronous receiver/ transmitters (UARTs), a keyboard interface, a floppy disk controller (FDC) with data separator, parallel port, full range (A0-A15) address decoding for on-chip functions, and a configuration register. The floppy disk controller is fully compatible with the industry-standard 765A and 82077SL architecture. It includes more advanced options such as a high performance data separator, extended track range to 4096, high performance power management, implied seek command, scan command, and supports both IBM and ISO 360K/1.2M/720K/1.44M/2.88M FDD formats. The UARTs are compatible with the NS16550. The parallel port, completely compatible with the IBM AT. The configuration register is one-byte wide and can be programmed via hardware or software. By controlling this register, the user can assign standard AT addresses and disable any major on-chip function (e.g., the FDC, either UART, or the parallel port) independent of the others. This allows for flexibility in system configuration when adapter cards contain duplicate functions. The M1543 Super I/O provides support for the ISA Plugand-Play standard and recommended functionality to support Windows 95. Through internal configuration registers, each of the Super I/O logic devices I/O address, DMA channel and IRQ channel may be programmed. There are 96 I/O address location options, 12 IRQ options, and 4 DMA channel options for each logical device. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 27 Section 4: Configuration Registers 4.1 Register Description 4.1.1 PCI to ISA Bridge Configuration Space (IDSEL= AD18) The indices before 40h are read-only. All reserved bits are read as 0's Index-Offset Description Register Index : 01h-00h Register Name : Vendor ID Default Value : 10B9h Attribute : RO Register Index : 03h-02h Register Name : Device ID Default Value : 1533h Attribute : RO Register Index : 05h-04h Register Name : Command Byte Default Value : 000Fh Attribute : RO Bit No. 15-5 4 3 2 1 0 Bit Function Reserved. Read as 0's ; Cacheing Command Enable (always '0'); Special cycle Enable (always '1'); Bus Master Enable (always '1'); Memory Space Enable (always '1'); I/O Space Enable (always '1'); M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 28 M1543 Preliminary Data Sheet Register Index : 07h-06h Register Name : Status Byte Bit No. Bit Function 15 Detected Parity Error. Always '0'; 14 Signal System error. Always '0' ; 13 Receive Master Abort When M1543 as a master. This bit is set to a '1' when M1543 generates a transaction (except for Special Cycle) is terminated with master-abort. This is a read only bit and is cleared by writing a '1' to it. 12 Receive Target Abort When M1543 as a master. This bit is set to a '1' when M1543 encounters a target abort condition. This is a read only bit and is cleared by writing a '1' to it. 11 Signal Target Abort When M1543 as a slave. M1543 as a slave never generates a Target abort this bit is always 0. 10-9 M1543 DEVSELJ Timing This status of DEVSELJ decode timing as PCI spec. M1543 always generates DEVSELJ with medium timing Bit9='1',Bit10='0'. 8-0 Reserved. Read as 0's. Register Index : 08h Register Name : Revision ID. Default Value : 00h Attribute : Read Only Register Index : 0B-09h Register Name : Class code. Default Value : 0Bh=06h,0Ah=01h,09h=00h. Attribute : Read Only Register Index 0D-0Ch Register Name : Reserved Attribute : Register Index 0Eh bit7=0 always single-function chip. Register Name : Device Type Default Value : 00h Attribute : Read Only Register Index : 2Bh-0Fh Register Name : Reserved Attribute : Register Index 2Dh-2Ch Register Name : Subsystem Vendor ID Default Value : 00h Attribute : Read/Write Register Index 2Fh-2Eh Register Name : Subsystem ID Default Value : 00h Attribute : Read/Write Register Index : 3Fh-30h Register Name : Reserved Attribute : Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 29 M1543 Preliminary Data Sheet M1543 PCI INTERFACE CONFIGURATIONS. Register Index : 40h Register Name : PCI Control Default Value : 00h Bit No. 7 6 5 4 3 2 1 0 Bit Function Reserved. Sound card I/O posted-write enable/disable. 0 : disable 1 : enable Note: 1. When enabling this bit, D2 of cfg. 40h should be enabled simultaneously. 2. This bit is a switch of cfg. 50h-53h sound card I/O post write. 3. This bit has no effect on internal I/O port, eg. 8254, 8259, 8237 ports. Select ISA master to PCI Bus request method 0 : Bus request at each time ISA MASTER requests the bus 1 : Bus request only MASTER assert command PCI and ISA concurrent mode enable/disable. 0 : disable 1 : enable Delay transaction for PCI spec. 2.1 enable/disable. 0 : disable 1 : enable PCI-to-ISA Posted Write Buffer Enable/Disable 0 : disable 1 : enable Note: This bit includes PCI to ISA Memory Post Write and I/O Post Write. ISA Master Line Buffer Enable/Disable 0 : disable 1 : enable DMA Line Buffer Enable/Disable 0 : disable 1 : enable Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 30 M1543 Preliminary Data Sheet Register Index : 41h Default Value : 00h Bit No. 7 6 5-2 1 0 Bit Function PS/2 Keyboard present feature 0 : Without PS/2 keyboard (AT IRQ1) 1 : With PS/2 Keyboard Bit 7 is used to enable IRQ1 latch, when IRQ1 goes high. And IRQ1 will be released when read Port 60H. If '0', IRQ1 will be compatible to AT definition. If '1', IRQ1 will be compatible to PS/2 definition. This bit is also used to select AT/PS/2 internal Keyboard Controller. PS/2 Mouse/AT Mouse select 0 : AT mouse 1 : With PS/2 mouse Bit 6 is used to enable IRQ12 latch, when IRQ12 goes high. And IRQ12 will be released when read Port 60H. If '0', IRQ12 will be compatible to AT definition. If '1', IRQ12 will be compatible to PS/2 definition. I/O recovery period 0,0,0,0 : 0 us 0,0,0,1 : 0.25 us (2/ATCLK) 0,0,1,0 : 0.5 us (4/ATCLK) 0,0,1,1 : 0.75 us (6/ATCLK) 0,1,0,0 : 1 us (8/ATCLK) 0,1,0,1 : 1.25 us (10/ATCLK) 0,1,1,0 : 1.5 us (12/ATCLK) 0,1,1,1 : 1.75 us (14/ATCLK) 1,0,0,0 : 2 us (16/ATCLK) 1,0,0,1 : 2.25 us (18/ATCLK) 1,0,1,0 : 2.5 us (20/ATCLK) 1,0,1,1 : 2.75 us (22/ATCLK) 1,1,0,0 : 3 us (24/ATCLK) 1,1,0,1 : 3.25 us (26/ATCLK) 1,1,1,0 : 3.5 us (28/ATCLK) 1,1,1,1 : 3.75 us (30/ATCLK) On-Chip I/O recovery 0 : disable on-chip I/O recovery 1 : enable on-chip I/O recovery Bit0 is used to enable ISA I/O recovery timer, Bit1 is used for M1543 internal I/O Port I/O recovery, but Bit0 must be 1 first. ISA I/O recovery feature 0 : disable ISA I/O recovery 1 : enable ISA I/O recovery Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 31 M1543 Preliminary Data Sheet Register Index : 42h Default Value : 00h Bit No. 7 6 5 4 3 2-0 Bit Function Configuration Port read data mask function. 0 : Normal I/O read/write 1 : Read from 40-FFh are all 0's DMA High Page register Enable/Disable. 0 : disable. (24 bits addressing) 1 : enable. (32 bits addressing) Reserved (must be 0). Reserved (must be 0). Decoupled refresh control. 0 : Normal refresh 1 : Decoupled refresh This bit is 0, Refresh Master will own ISA and PCI bus. When this bit is set to 1, Refresh master will only own ISA Bus. ISA clock select. 000 : 7.16 MHz 001 : PCICLK/2 010 : PCICLK/3 011 : PCICLK/4 100 : PCICLK/5 101 : PCICLK/6 110 : reserved 111 : reserved Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 32 M1543 Preliminary Data Sheet Register Index : 43h Register Name : ISA Bus cycle control Default Value : 00h Bit No. 7 6 5-4 3-2 1-0 Bit Function Port-92H RC/GATEA20 Selection 0 : Disable Port-92H 1 : Enable Port-92H PORT-92H is used to start FAST RC. Coprocessor interface This bit is used to support the coprocessor error reporting or as an external IRQ13 for pin XFERRJ. 0 : disable (Pin XFERRJ as XIRQ13; XIGNNEJ always 1) 1 : enable (Pin XFERRJ as XFERRJ) ISA Refresh period setting 0,0 : 15 us refresh period 0,1 : 30 us 1,0 : 60 us 1,1 : 120 us 16-bit ISA memory command insert wait count 0,0 : normal 16-bit access 0,1 : Insert 1 wait 1,0 : insert 2 wait 1,1 : insert 3 wait 16-bit ISA I/O command insert wait count 0,0 : normal 16-bit access 0,1 : insert 1 wait 1,0 : Insert 2 wait 1,1 : insert 3 wait Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 33 M1543 Preliminary Data Sheet Register Index : 44h Default Value : 00h Bit No. 7 6 5 4 3-0 Bit Function PCI soft reset control 0 : When CPU soft reset init., PCIRSTJ will not be active 1 : When CPU soft reset init., PCIRSTJ will be active On chip I/O decode (except DMA I/O port is always subtractive) 0 : positive decode 1 : subtractive decode Reserved. (must be `0') On-chip IDE master Primary INTAJ level to edge transform enable/disable. 0 : disable. (bypass) 1 : enable. (level -> edge) On-chip IDE master Primary INTAJ routing when native mode is enable. D3-2-1-0 0 0 0 0 : Disable 0 0 0 1 : IRQ9 0 0 1 0 : IRQ3 0 0 1 1 : IRQ10 0 1 0 0 : IRQ4 0 1 0 1 : IRQ5 0 1 1 0 : IRQ7 0 1 1 1 : IRQ6 1 0 0 0 : IRQ1 1 0 0 1 : IRQ11 1 0 1 0 : reserved 1 0 1 1 : IRQ12 1 1 0 0 : reserved 1 1 0 1 : IRQ14 1 1 1 0 : reserved 1 1 1 1 : IRQ15 Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 34 M1543 Preliminary Data Sheet Register Index : 45h Default Value : 00h Bit No. 7 6 5 4 3 2 1 0 Bit Function PCI interrupt polling mode enable/disable. 0 : disable. 1 : enable. ROM chip select activated when accessing 62h and 66h port. 0 : disable 1 : enable If this bit is enabled, ROM chip select will be active when accessing 60,64,62,66h ports. Reserved. Reserved. Delay transaction timeout counter enable/disable. 0 : disable. 1 : enable. Reserved. Distributed DMA enable/disable 0 : disable. 1 : enable. Parity check enable/disable. 0 : disable. 1 : enable. Register Index : 46h Register Name : Reserved Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 35 M1543 Preliminary Data Sheet Register Index : 47h Register Name : BIOS chip select control Default Value : 00h Bit No. 7 6 5 4-3 4 3 2-1 2 1 0 Bit Function SA16 inverter control 0 : Normal SA16 1 : Invert SA16 when ROM chip select active Flash ROM read/write control (write protest) 0 : disable; ROM chip select will be active only in memory read cycle. 1 : enable; ROM chip select will be active in memory read/write cycle. 0 : disable 1 : enable; ROMKBCSJ will be active when access memory 000D0000-000DFFFF. Share memory VGA BIOS region decode 0 : disable 1 : enable; ROMKBCSJ will be active when access memory 000C8000-000CFFFF. 0 : disable 1 : enable; ROMKBCSJ will be active when access memory 000C0000-000C7FFF. Extended ROM region enable/disable 0 : disable; 1 : enable; ROMKBCSJ will be active when access memory FFFC0000-FFFDFFFF. This bit will enlarge the ROM size to 256 KB. 0 : disable; 1 : enable; ROMKBCSJ will be active when access memory FFFE0000-FFFEFFFF. ROM size define for ROM chip select decode 0 : 64 KB (000F0000-000FFFFF, FFFF0000-FFFFFFFF) 1 : 128KB (000E0000-000EFFFF, 000F0000-000FFFFF, FFFF0000-FFFFFFFF). Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 36 M1543 Preliminary Data Sheet Register Index : 48h Register Name : PCI Interrupt to ISA IRQ routing table Default Value : 00h Bit No. 7-4 3-0 Bit Function INT-2 to ISA IRQ routing table Above Routing Table : D3-D0 or D7-D4 D3 D2 D1 D0 or D7 D6 D5 D4 0 0 0 0 : Disable 0 0 0 1 : IRQ9 0 0 1 0 : IRQ3 0 0 1 1 : IRQ10 0 1 0 0 : IRQ4 0 1 0 1 : IRQ5 0 1 1 0 : IRQ7 0 1 1 1 : IRQ6 1 0 0 0 : IRQ1 1 0 0 1 : IRQ11 1 0 1 0 : reserved 1 0 1 1 : IRQ12 1 1 0 0 : reserved 1 1 0 1 : IRQ14 1 1 1 0 : reserved 1 1 1 1 : IRQ15 The BIOS should inhabit to set the reserved value. The reserved setting will disable the IRQ at the present design. INT-1 to ISA IRQ routing table Register Index : 49h Register Name : PCI Interrupt to ISA IRQ routing table Default Value : 00h Bit No. 7-4 3-0 Bit Function INT-4 to ISA IRQ routing table INT-3 to ISA IRQ routing table Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 37 M1543 Preliminary Data Sheet Register Index : 4Ah Register Name : PCI Interrupt to ISA IRQ routing table Default Value : 00h Bit No. 7-4 3-0 Bit Function INT-6 to ISA IRQ routing table INT-5 to ISA IRQ routing table Register Index : 4Bh Register Name : PCI Interrupt to ISA IRQ routing table Default Value : 00h Bit No. 7-4 3-0 Bit Function INT-8 to ISA IRQ routing table INT-7 to ISA IRQ routing table Register Index : 4Ch Register Name : PCI INT to ISA Level to Edge transfer Default Value : 00h Bit No. 7 6 5 4 3 2 1 0 Bit Function INT-8 0 : disable, PCI Level trigger INT will be bypassed as level trigger to M8259. 1 : enable, PCI Level trigger INT will be transformed to be Edge trigger to M8259. INT-7 INT-6 INT-5 INT-4 INT-3 INT-2 INT-1 Index 48h to 4Ch are used to define PCI INT 8 channel's routing tables for ISA system. For PCI, INT is level, not edge trigger. 4Ch index is used to enable each INT channel from level to edge transfer. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 38 M1543 Preliminary Data Sheet Register Index : 4Dh Register Name : MBIRQ0(SIRQI), MBIRQ1(SIRQII) Interrupt to ISA IRQ routing table Default Value : 00h Before using this register, Index 58h bit1-0 must be programmed to be SIRQI and SIRQII function. Bit No. 7-4 3-0 Bit Function SIRQI to ISA IRQ routing table SIRQII to ISA IRQ routing table Above Routing Table : D3-D0 or D7-D4 D3 D2 D1 D0 or D7 D6 D5 D4 0 0 0 0 : Disable 0 0 0 1 : IRQ9 0 0 1 0 : IRQ3 0 0 1 1 : IRQ10 0 1 0 0 : IRQ4 0 1 0 1 : IRQ5 0 1 1 0 : IRQ7 0 1 1 1 : IRQ6 1 0 0 0 : IRQ1 1 0 0 1 : IRQ11 1 0 1 0 : reserved 1 0 1 1 : IRQ12 1 1 0 0 : reserved 1 1 0 1 : IRQ14 1 1 1 0 : reserved 1 1 1 1 : IRQ15 The BIOS should inhabit to set the reserved value. The reserved setting will disable the IRQ at the present design. Register Index : 4Eh Register Name : Reserved Register Index : 4Fh Register Name : Reserved Register Index : 51h-50h Register Name : I/O cycle posted-write first port definition. Default Value : 0000h Bit No. Bit Function 15 0 : disable 1 : enable 14-12 Reserved. 11-0 Define the sound card's first I/O port for post-write. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 39 M1543 Preliminary Data Sheet Register Index : 53h-52h Register Name : I/O cycle posted-write second port definition Default Value : 0000h Bit No. 15 14 13-12 11-0 Bit Function I/O cycle posted-write second port definition 1 : enable 0 : disable On-chip USB device enable/disable. 0 : enable. 1 : disable. Reserved I/O cycle posted-write second port definition define the sound card first I/O port for post-write. Register Index : 54h Register Name : Hardware setting status bits Attribute : Read only Bit No. Bit Function 7 PCSJ hardware setting status. 0 : Pull-low, POWER PC mode 1 : Pull-high, INTEL PC mode 6 XPHOLDJ hardware setting status. 0 : Pull-low, USB in test mode. (for test only) 1 : Pull-high, USB in normal mode. 5 Reserved. 4 SPLED hardware setting status. 0 : Pull-low, support 256KB ROM 1 : Pull-high, not support 256kB ROM 3 XDIR hardware setting status. 0 : Pull-low, Pentium Pro CPU is used. 1 : Pull-high, Pentium CPU is used. 2 TC hardware setting status. 0 : Pull-low, pins SD/GPIO[7:0] are SD[7:0], external LS245 is not required. 1 : Pull-high, pins SD/GPIO[7:0] are GPIO[7:0], external LS245 is required. 1 SPKR hardware setting status. 0 : Pull-low, internal Super I/O test mode is enabled. (for test only) 1 : Pull-high, internal Super I/O test mode is disabled. 0 ROMKBCSJ hardware setting status. 0 : Pull-low, chip test mode is enabled. (for test only) 1 : Pull-high, chip test mode is disabled. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 40 Register Index : 57h-55h Register Name : Programmable chip select (pin PCSJ) address define. Default Value : 000002h Bit No. 23 22 21 20-16 15-2 1-0 Bit Function Included Port 62h, 66h in for decode PCSJ enable/disable. 0 : disable; 1 : enable. The chip select qualified by ISA Bus IOWJ enable/disable. 0 : disable; 1 : enable. The chip select qualified by ISA Bus IORJ enable/disable. 0 : disable; 1 : enable. Reserved. Defines the programmable I/O port address A15-A2. 00 : compare A15-A2 for chip select signal PCSJ. (4 bytes) 01 : compare A15-A3 for chip select signal PCSJ. (8 bytes) 10 : disable. Chip select signal PCSJ is always inactive ('1'). 11 : Compare A15-A4 for chip select signal PCSJ. (16 bytes) M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 41 M1543 Preliminary Data Sheet Register Index : 58h Register Name : IDE interface control Default Value : 00h Bit No. 7 6 5-4 3 2 1-0 Bit Function Reserved. (must be `0') On-chip IDE controller enable/disable 0 : disable 1 : enable IDE IDSEL address when internal IDE is enable 00 : A27 (default) 01 : A26 10 : A25 11 : A24 IDE ATA Secondary signal bus pad control 0 : disable, i.e. tri-state the secondary channel pins 1 : enable, i.e. internal IDE controls it. IDE ATA Primary signal bus pad control 0 : disable, i.e.tri-state the primary channel pins. 1 : enable, i.e. internal IDE controls it. ATA bus IDE IRQ connection define (H/W connected on motherboard). Primary IRQ Secondary IRQ 00 : SIRQI SIRQII 01 : IRQ14 IRQ15 10 : IRQ14 SIRQII 11 : IRQ14 SIRQI Note : IDE IRQ Hardware Connect : 1. When SIRQI is selected as IDE IRQ input, the SIRQI routing table in cfg_4dh_d[3:0] should be disabled. 2. When SIRQII is selected as IDE IRQ input, the SIRQII routing table in cfg_4dh_d[7:4] should be disabled. 3. When IDE is enabled, "Primary" channel routing table is in cfg_44h_d[3:0]. 4. When IDE is enabled, "Secondary" channel routing table is in cfg_75h_d[3:0]. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 42 Register Index : 59h Register Name : General Purpose input multiplexed pin(GPI) select Default Value : 00h These pins will be power off when entering Suspend to DRAM or Suspend to Disk. Bit No. Bit Function 7-4 Reserved. 3 PCIREQJ/GPI[3] select: 0=PCIREQJ;1=GPI[3]. 2 SERIRQ/GPI[2] select: 0=GPI[2];1=SERIRQ. 1 Reserved. 0 OVCRJ[0]/GPI[0] select: 0=OVCRJ[0];1=GPI[0]. Register Index : 5B-5Ah Register Name : General Purpose Output multiplexed pin (GPO) select. Default Value : 0000h These pins will be power off when entering Suspend to DRAM or Suspend to Disk. Bit No. Bit Function 15-10 Reserved. 9 SQWO/GPO[9] select: 0=SQWO;1=GPO[9]. 8-4 Reserved. 3 PCI_STPJ/GPO[3] select: 0=PCI_STPJ;1=GPO[3]. 2 CPU_STPJ/GPO[2] select: 0=CPU_STPJ;1=GPO[2]. 1 ZZ/GPO[1] select: 0=ZZ; 1=GPO[1]. 0 PCSJ/GPO[0] select: 0=PCSJ; 1=GPO[0]. M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 43 M1543 Preliminary Data Sheet Register Index : 5D-5Ch Default Value : 0000h Bit No. 15-10 9 8-7 6 5 4 3 2 1 0 Bit Function Reserved. I/O group C positive decode enable/disable when Docking mode is enable. 0 : subtractive decode. 1 : positive decode. Reserved. Parallel I/O ports positive decode enable/disable when Docking mode is enable. 0 : subtractive decode. 1 : positive decode. Keyboard I/O ports positive decode enable/disable when Docking mode is enable. 0 : subtractive decode. 1 : positive decode. Serial I/O ports positive decode enable/disable when Docking mode is enable. 0 : subtractive decode. 1 : positive decode. Floppy I/O ports positive decode enable/disable when Docking mode is enable. 0 : subtractive decode. 1 : positive decode. Video I/O ports positive decode enable/disable when Docking mode is enable. 0 : subtractive decode. 1 : positive decode. Audio I/O ports positive decode enable/disable when Docking mode is enable. 0 : subtractive decode. 1 : positive decode. Docking positive decode mode enable/disable. 0 : disable. 1 : enable. When docking positive decode mode is enabled, all ports are positive decode. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 44 M1543 Preliminary Data Sheet Register Index : 5Eh Default Value : 00h Bit Description 7 Stop USB PCICLK when entering suspend mode enable/disable. 0 : disable. USB PCICLK is still running during suspend mode. 1 : enable. USB PCICLK is stopped during suspend mode. 6 Stop ISP DMACLK when entering suspend mode enable/disable. 0 : disable. ISP DMACLK is still running during suspend mode. 1 : enable. ISP DMACLK is stopped during suspend mode. 5 Stop ISP PCICLK when entering suspend mode enable/disable. 0 : disable. ISP PCICLK is still running during suspend mode. 1 : enable. ISP PCICLK is stopped during suspend mode. 4-0 Reserved (must be "00000"). Register Index : 5Fh Default Value : 00h Bit Description 7 Output SYSCLK is stopped during suspend mode enable/disable. 0 : disable. SYSCLK is still running during suspend mode. 1 : enable. SYSCLK is stopped during suspend mode 6 Internal KB clock is stopped during suspend mode enable/disable. 0 : disable. Internal Keyboard clock is still running during suspend mode. 1 : enable. Internal Keyboard clock is stopped during suspend mode. 5 The clock of AT CLOCK DIVIDER is stopped during suspend mode enable/disable. 0 : disable. 1 : enable. All AT clocks (including SYSCLK and KBCLK) are stopped during suspend mode. 4 The 14.318 Mhz clock of CLKRST circuit is stopped during suspend mode enable/disable. 0 : disable 1 : enable. The 119 Khz of M8254 and cold reset counter are stopped during suspend mode. 3 Bit 9-0 of PCI-to-ISA Bridge configuration Command Register 04h lock/unlock control. 0 : Lock (cannot read/write) 1 : Unlock (can read/write) 2 On-chip PCI PMU device enable/disable 0 : enable 1 : disable 1 The ROM area 4G-1 to 4G-16M (FF000000h-FFFFFFFFh) decode enable/disable. The XPCSJ must be pull-low for POWER PC mode. 0 : enable. When accessing this area, pin ROMKBCSJ will be active. 1 : disable. 0 On-chip PCI device INT routing outside for POWER PC enable/disable. 0 : disable. 1 : enable. On-chip IDE INTAJ output via INTBJ/S0 pin; On-chip IDE INTBJ output via INTCJ/S1 pin; On-chip USB INTAJ output via INTDJ/S2 pin; When this bit is enabled, the cfg. 45h bit7 must be '0'; Register Index : 6Bh-60h Register Name : Reserved. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 45 M1543 Preliminary Data Sheet Register Index : 6Ch (deleted) Register Index : 6Dh Default Value : 00h Bit No. 7 6 5 (0) 4 3-2 1-0 Bit Function Float ISA Output Pads When Entering Suspend Mode. 0 : floating 1 : driving Reserved Release PCI Bus During ISA DMA Master Cycle Retried by North Bridge 0: Do not release 1: Release This bit is used to control the PHOLDJ assertion when ISA DMA Master cycle has been retried by North Bridge. '0' means PHOLDJ will keep assertion and North Bridge cannot grant the PCI bus to another PCI Master. '1' means M1543 will deassert PHOLDJ and North Bridge can grant the PCI bus to another PCI Master. '1' is recommended. Super I/O IR Mode Enable/Disable. 0 : disable.SD/GPIO[2:0] is GPIO[2:0] when TC is pull-high. 1 : enable.SD/GPIO[2:0] is used as FIR pins when TC is pull-high. IRRX input from SD_GPIO(2); FIR input/output via SD_GPIO(1);// future version IRTX output to SD_GPIO(0); On-Chip Arbiter Priority Assignment. 00 : Rotate mode. ISA->USB->IDE->D_DMA->ISA.... 01 : Fixed mode. ISA is highest priority. If ISA is servicing, USB is highest priority for next arbitration. 10 : Fixed mode. USB is highest priority. USB->ISA->IDE->D_DMA. If USB is servicing, ISA is highest priority for next arbitration. 11 : Common Architecture mode and Rotate mode. ISA->USB->IDE->D_DMA->ISA.... Output Pins BIOSA17, BIOSA16 Mapping When E0000-EFFFF Region is Accessed and ROM 256KB Mode is Enabled. 00 : BIOSA17=1; BIOSA16=0 (default) 01 : BIOSA17=0; BIOSA16=1 1x : BIOSA17=0; BIOSA16=0 Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 46 Register Index : 6Eh Register Name : ISP shadow I/O port select Default Value : 00h The following is preliminary index for accessing shadow ISP ports: Bit No. 7-5 4-0 Bit Function Select device D7D6D5 : 000 : reserved 001 : 8254 programmable timer 010 : master 8259 011 : slave 8259 100 : master 8237 101 : slave 8237 110 : reserved 111 : reserved Select device's ports D4D3D2D1D0: (as below) << 8237 >> D4D3D2D1D0: 0 0 0 0 0 master-37 channel[0] Mode register 0 0 0 0 1 master-37 channel[1] Mode register 0 0 0 1 0 master-37 channel[2] Mode register 0 0 0 1 1 master-37 channel[3] Mode register 0 0 1 0 0 master-37 Request register & Mask register combined 0 0 1 0 1 master-37 channel[0] Base Address register Low byte 0 0 1 1 0 master-37 channel[0] Base Address register High byte 0 0 1 1 1 master-37 channel[0] Base Word Count register Low byte 0 1 0 0 0 master-37 channel[0] Base Word Count register High byte 0 1 0 0 1 master-37 channel[1] Base Address register Low byte 0 1 0 1 0 master-37 channel[1] Base Address register High byte 0 1 0 1 1 master-37 channel[1] Base Word Count register Low byte 0 1 1 0 0 master-37 channel[1] Base Word Count register High byte 0 1 1 0 1 master-37 channel[2] Base Address register Low byte 0 1 1 1 0 master-37 channel[2] Base Address register High byte 0 1 1 1 1 master-37 channel[2] Base Word Count register Low byte 1 0 0 0 0 master-37 channel[2] Base Word Count register High byte 1 0 0 0 1 master-37 channel[3] Base Address register Low byte 1 0 0 1 0 master-37 channel[3] Base Address register High byte 1 0 0 1 1 master-37 channel[3] Base Word Count register Low byte 1 0 1 0 0 master-37 channel[3] Base Word Count register High byte Others : reserved M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 47 Bit No. Bit Function D4D3D2D1D0 : 0 0 0 0 0 slave-37 channel[0] Mode register 0 0 0 0 1 slave-37 channel[1] Mode register 0 0 0 1 0 slave-37 channel[2] Mode register 0 0 0 1 1 slave-37 channel[3] Mode register 0 0 1 0 0 slave-37 Request register & Mask register combined 0 0 1 0 1 slave-37 channel[0] Base Address register Low byte 0 0 1 1 0 slave-37 channel[0] Base Address register High byte 0 0 1 1 1 slave-37 channel[0] Base Word Count register Low byte 0 1 0 0 0 slave-37 channel[0] Base Word Count register High byte 0 1 0 0 1 slave-37 channel[1] Base Address register Low byte 0 1 0 1 0 slave-37 channel[1] Base Address register High byte 0 1 0 1 1 slave-37 channel[1] Base Word Count register Low byte 0 1 1 0 0 slave-37 channel[1] Base Word Count register High byte 0 1 1 0 1 slave-37 channel[2] Base Address register Low byte 0 1 1 1 0 slave-37 channel[2] Base Address register High byte 0 1 1 1 1 slave-37 channel[2] Base Word Count register Low byte 1 0 0 0 0 slave-37 channel[2] Base Word Count register High byte 1 0 0 0 1 slave-37 channel[3] Base Address register Low byte 1 0 0 1 0 slave-37 channel[3] Base Address register High byte 1 0 0 1 1 slave-37 channel[3] Base Word Count register Low byte 1 0 1 0 0 slave-37 channel[3] Base Word Count register High byte Others : reserved << 8259 >> D4D3D2D1D0: 0 0 0 0 0 master-59 ICW1 0 0 0 0 1 master-59 ICW2 0 0 0 1 0 master-59 ICW3 0 0 0 1 1 master-59 ICW4 0 0 1 0 0 master-59 OCW1 0 0 1 0 1 master-59 reserved (OCW2) 0 0 1 1 0 master-59 OCW3 Others: reserved D4D3D2D1D0: 0 0 0 0 0 slave-59 ICW1 0 0 0 0 1 slave-59 ICW2 0 0 0 1 0 slave-59 ICW3 0 0 0 1 1 slave-59 ICW4 0 0 1 0 0 slave-59 OCW1 0 0 1 0 1 slave-59 reserved (OCW2) 0 0 1 1 0 slave-59 OCW3 Others: reserved << 8254 >> D4D3D2D1D0: 0 0 0 0 0 Counter[0] Low byte 0 0 0 0 1 Counter[0] High byte 0 0 0 1 0 Counter[1] Low byte 0 0 0 1 1 Counter[1] High byte 0 0 1 0 0 Counter[2] Low byte 0 0 1 0 1 Counter[2] High byte Others: reserved M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 48 Register Index : 6Fh. Register Name : ISP shadow I/O select port data Attribute : Read only Register Index : 70h Register Name : Serial IRQ (IRQSER) Control Register Default Value : 12h Attribute : Read/Write Bit No. 7 6 5-2(0000) 1-0(10) Bit Function Serial IRQ (IRQSER) Enable/Disable 0 : Disable 1 : Enable Stop Frame Pulse Width 0 : 2 PCICLKs (Quiet mode) 1 : 3 PCICLKs (Continuous mode) Number of IRQ/Data Frames 0000 : 17 Slots 0001 : 18 Slots 0010 : 19 Slots 0011 : 20 Slots 0100 : 21 Slots (default) 0101 : 22 Slots 0110 : 23 Slots 0111 : 24 Slots 1000 : 25 Slots 1001 : 26 Slots 1010 : 27 Slots 1011 : 28 Slots 1100 : 29 Slots 1101 : 30 Slots 1110 : 31 Slots 1111 : 32 Slots Start Frame Pulse Width 00 : 4 PCICLKs 01 : 6 PCICLKs 10 : 8 PCICLKs (default) 11 : reserved M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 49 Register Index : 71h Register Name : Distributed DMA Channel on PCI or ISA side. Default Value : 00h Bit No. Bit Function 7 DMA Channel 7 0 : DMA Device on ISA Slot(default) 1 : DMA Device on PCI Slot 6 DMA Channel 6 0 : DMA Device on ISA Slot(default) 1 : DMA Device on PCI Slot 5 DMA Channel 5 0 : DMA Device on ISA Slot(default) 1 : DMA Device on PCI Slot 4 Reserved. 3 DMA Channel 3 0 : DMA Device on ISA Slot(default) 1 : DMA Device on PCI Slot 2 DMA Channel 2 0 : DMA Device on ISA Slot(default) 1 : DMA Device on PCI Slot 1 DMA Channel 1 0 : DMA Device on ISA Slot(default) 1 : DMA Device on PCI Slot 0 DMA Channel 0 0 : DMA Device on ISA Slot(default) 1 : DMA Device on PCI Slot Register Index : 72h Register Name : USB IDSEL mux select Default Value : 00h Bit No. Bit Function 7 Routing table IRQ output synchronization enable/disable 0 : disable (bypass) 1 : enable (sync by PCICLK) 6 USB PWRENJ output via pins GPIO[7] enable/disable. 0 : disable 1 : enable 5 Repeat Serial IRQ continuous mode enable/disable. 0 : disable. 1 : enable. 4 Reserved. 3-2 PMU IDSEL Address select. 00 : A28 (default) 01 : A29 10 : A14 11 : A15 1-0 USB IDSEL Address when internal USB is enabled. 00 : A31 (default) 01 : A30 10 : A13 11 : A12 M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 50 M1543 Preliminary Data Sheet Register Index : 73h Register Name : Distributed DMA Base Address Default Value : 00h Bit No. 7-0 Bit Function Distributed DMA BASE Address Register Index : 74h Default Value : 00h Bit No. 7 6 5 4 3-0 Bit Function IOCHRDY driven case during DMA cycle. 0 : IOCHRDY will be driven during DMA cycle 1 : IOCHRDY will not be driven during DMA cycle M1543 ISA bridge Subsystem vendor ID and Subsystem ID (Offset 2F-2Ch). Read only control. 0 : Read/Write 1 : Read only Reserved. On-chip USB master INTAJ level to edge transform enable/disable. 0 : disable. (bypass) 1 : enable. (level -> edge) On-chip USB master INTAJ routing table D3-2-1-0 0 0 0 0 : Disable 0 0 0 1 : IRQ9 0 0 1 0 : IRQ3 0 0 1 1 : IRQ10 0 1 0 0 : IRQ4 0 1 0 1 : IRQ5 0 1 1 0 : IRQ7 0 1 1 1 : IRQ6 1 0 0 0 : IRQ1 1 0 0 1 : IRQ11 1 0 1 0 : reserved 1 0 1 1 : IRQ12 1 1 0 0 : reserved 1 1 0 1 : IRQ14 1 1 1 0 : reserved 1 1 1 1 : IRQ15 Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 51 M1543 Preliminary Data Sheet Register Index : 75h Default Value : 00h Bit No. 7-5 4 3-0 Bit Function Reserved. On-chip IDE master Secondary INTBJ level to edge transform enable/disable. 0 : disable. (bypass) 1 : enable. (level -> edge) On-chip IDE master Secondary INTBJ routing when native mode is enable. D3 -2 -1 -0 0 0 0 0 : Disable 0 0 0 1 : IRQ9 0 0 1 0 : IRQ3 0 0 1 1 : IRQ10 0 1 0 0 : IRQ4 0 1 0 1 : IRQ5 0 1 1 0 : IRQ7 0 1 1 1 : IRQ6 1 0 0 0 : IRQ1 1 0 0 1 : IRQ11 1 0 1 0 : reserved 1 0 1 1 : IRQ12 1 1 0 0 : reserved 1 1 0 1 : IRQ14 1 1 1 0 : reserved 1 1 1 1 : IRQ15 Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 52 M1543 Preliminary Data Sheet Register Index : 76h Default Value : 00h Bit No. 7-5 4 3-0 Bit Function Reserved. On-chip PMU system control interrupt(SCI) level to edge transform enable/disable. 0 : disable. (bypass) 1 : enable. (level -> edge) On-chip PMU system control interrupt(SCI) routing table D3 -2 -1 -0 0 0 0 0 : IRQ13 0 0 0 1 : IRQ9 0 0 1 0 : IRQ3 0 0 1 1 : IRQ10 0 1 0 0 : IRQ4 0 1 0 1 : IRQ5 0 1 1 0 : IRQ7 0 1 1 1 : IRQ6 1 0 0 0 : IRQ1 1 0 0 1 : IRQ11 1 0 1 0 : reserved 1 0 1 1 : IRQ12 1 1 0 0 : reserved 1 1 0 1 : IRQ14 1 1 1 0 : reserved 1 1 1 1 : IRQ15 Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 53 M1543 Preliminary Data Sheet Register Index : 77h Default Value : 00h Bit No. 7-5 4 3-0 Bit Function Reserved. On-chip SMB controller event interrupt level to edge transform enable/disable. 0 : disable. (bypass) 1 : enable. (level -> edge) On-chip Smart Battery Bus (SMB) controller event interrupt routing table. D3 -2 -1 -0 0 0 0 0 : disable 0 0 0 1 : IRQ9 0 0 1 0 : IRQ3 0 0 1 1 : IRQ10 0 1 0 0 : IRQ4 0 1 0 1 : IRQ5 0 1 1 0 : IRQ7 0 1 1 1 : IRQ6 1 0 0 0 : IRQ1 1 0 0 1 : IRQ11 1 0 1 0 : reserved 1 0 1 1 : IRQ12 1 1 0 0 : reserved 1 1 0 1 : IRQ14 1 1 1 0 : reserved 1 1 1 1 : IRQ15 Register Index : FF-78h Register Name : Reserved Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 54 M1543 Preliminary Data Sheet 4.1.2 IDE master configuration registers (IDSEL = AD27 (default) , AD26, AD25, AD24) Byte Index Definition R/W 1, 0 Vender ID R 3, 2 Device ID R 5, 4 Command R/W 7, 6 Status R/W 8 Revision ID R B, A, 9 Class Code R 0EH Header Type R 13H-10H Base Address Regs R/W 17H-14H Base Address Regs R/W 1BH-18H Base Address Regs R/W 1FH-1CH Base Address Regs R/W 23H-20H Base Address Regs R/W 2CH Subsystem Vendor ID R 3CH Interrupt Line R/W 3DH Interrupt Pin R/W 3EH Min_Gnt R 3FH Max_Lat R Expected Value 10B9H 5229H 0000H 0280H 20H 0101FAH 00H 000001F1H 000003F5H 00000171H 00000375H 0000F001H 00000000H 00000000H 00000001H 00000002H 00000004H Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 55 M1543 Preliminary Data Sheet Register Index : 4Dh Register Name : Configuration register Default Value : 00h Attribute : Read/Write Bit No. 7 6-0 Bit Function Read Programming Interface Index 09h Class code bit 4-6 R/W or Read only. 0 : Read/Write 1 : Read Only Reserved. Register Index : 4Fh Register Name : Configuration register Default Value : 00h Attribute : Read/Write Bit No. 5 4 3,1 Bit Function 0 : Default 1 : Master state machine resets when ATA command recommences. 0 : Default. 1 : FIFO reset when ATA command recommences. When set as (0,0) FIFO threshold 0~3 (0,1) FIFO threshold 4~7 (1,0) FIFO threshold 8~11 (1,1) FIFO threshold 12~15 Register Index : 50h Register Name : Configuration register Default Value : 00h Attribute : Read/Write Bit No. 7-6 5 4 3 2 1 0 Bit Function Reserved. Only decodes the third byte of BASE2 and BASE4 during native mode. 0 : All 4 bytes are master IDE's cycle. (default) 1 : Only the 3rd byte is master IDE's cycle. Reserved. CFG_BEJDEC. 0 : Decode 3F6H and 376H that only uses address. 1 : Use byte enable decoding. Reserved. Read programming interface Index 09h Class code bits 6-4. 0 : Programming interface bits 6-4 are reserved (always 0) 1 : Normal read (default) Enable internal IDE function. 0 : disable(default) 1 : enable Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 56 M1543 Preliminary Data Sheet Register Index : 51h Register Name : Reset and Testing register Default Value : 00h Attribute : Read/Write Bit No. 7 6 5 4 3 2 1 0 Bit Function CFG_CHIPRST, chip reset Writing a '1' to this bit will reset the whole chip as hardware reset. It generates a one cycle pulse only. CFG_SOFTRST, soft reset Writing a '1' to this bit will reset all the blocks except the configuration space. It generates a one cycle pulse only. CFG_RSTCH2, soft reset Writing a '1' to this bit will reset the ATASTATE and AUTOPOL2. It generates a one cycle pulse only. CFG_RSTCH1, soft reset Writing a '1' to this bit will reset the ATASTATE and AUTOPOL1. It generates a one cycle pulse only. Reserved. CFG_ATA_TEST, auto polling test mode enable 0 : disable(default) 1 : enable CFG_LATEST, latency timer test mode enable 0 : disable(default) 1 : enable CFG_FIFO_TEST, FIFO test mode enable 0 : disable(default) 1 : enable Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 57 M1543 Preliminary Data Sheet Register Index : 52h Register Name : CFG_USE_CMDT and Flexible Channel Setting Default Value : 00h Attribute : Read/Write Bit No. 7 6 5 4 3-0 Bit Function Exchange the two hard drives 0: Channel one is Master IDE and channel two is (Default) Slave IDE when configuring the two channels to the same channel. 1: Channel two is Master IDE and channel one is Slave IDE when configuring the two channels to the same channel. Configure the two channels to secondary channel 0: Supports two channel IDE controller (Default). One is primary channel and another is secondary channel. 1: The two channels belong to primary and each channel only supports one hard drive. One channel support Master drive and another is Slave drive. The two channels can be exchanged by Bit 7. Configure the two channels to primary channel 0: Support two channel IDE controller (Default). One is primary channel and another is secondary channel 1: The two channels belong to primary and each channel only supports one hard drive. One channel support Master drive and another is Slave drive. The two channels can be exchanged by Bit 7. Exchange the two channels 0: Channel one is primary channel (Default) and channel two is secondary channel. 1: Channel two is primary channel and channel one is secondary channel. CFG_USE_CMDT bit 0 forces the drive 0 of primary channel to use command block timing register for data transfer bit 1 forces the drive 1 of primary channel to use command block timing register for data transfer bit 2 forces the drive 0 of secondary channel to use command block timing register for data transfer bit 3 forces the drive 1 of secondary channel to use command block timing register for data transfer Register Index: 53h Attribute : Read/Write Bit Description 7 Sub_System Vendor ID accessible or not 0: Read/Write 1: Read Only 6-4 Reserved 3 Mask Base address during compatibility mode 0 : unmask 1 : mask (return to `00000000') 2 Reserved 1 Supports CD_ROM FIFO (PIO mode) 0: Disable (default) 1: Enable 0 Supports CD_ROM DMA mode 0: Disable (default) 1: Enable Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 58 M1543 Preliminary Data Sheet Register Index : 54h Register Name : FIFO threshold of primary channel drive 0 and drive 1 Default Value : 55h Default Value : Read/Write Bit No. Bit Function 7-6 Operation level. Defines the slave operation level of primary drive 1. 5-4 FIFO threshold register. Defines when to start master transaction of primary drive 1. 00 : 12 WORDs 01 : 13 WORDs 10 : 14 WORDs 11 : 15 WORDs 3-2 Operation level. Defines the slave operation level of primary drive 0. 1-0 FIFO threshold register. Defines when to start master transaction of primary drive 0. 00 : 12 WORDs 01 : 13 WORDs 10 : 14 WORDs 11 : 15 WORDs Register Index : 55h Register Name : FIFO threshold of secondary channel drive 0 and drive 1 Default Value : 55h Attribute : Read/Write Bit No. 7-6 5-4 3-2 1-0 Bit Function Operation level. Defines the slave operation level of secondary drive 1. FIFO threshold register. Defines when to start master transaction of secondary drive 1. 00 : 12 WORDs 01 : 13 WORDs 10 : 14 WORDs 11 : 15 WORDs Operation level. Defines the slave operation level of secondary drive 0. FIFO threshold register. Defines when to start master transaction of secondary drive 0. 00 : 12 WORDs 01 : 13 WORDs 10 : 14 WORDs 11 : 15 WORDs Note: Operation level defines the access mode of each device : 00 : Slave FIFO off mode 01 : Slave FIFO on mode 10 : Master DMA mode 11 : Master PIO mode Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 59 Register Index : 56h Register Name : Ultra DMA /33 setting for Primary drive 0 and drive 1 Default Value : 00h Attribute : Read/Write Bit No. 7 6-4 3 2-0 Bit Function Enable Primary Device 1 for Ultra DMA/33 1: Enable 0: Disable Ultra DMA/33 cycle time for Primary Device 1 000 : 8T 001 : 1.5T 010 : 2T 011 : 3T 100 : 4T 101 : 2.5T 110 : 6T 111 : 3.5T Enable Primary Device 0 for Ultra DMA/33 1: Enable 0: Disable Ultra DMA/33 cycle time for Primary Device 0 000 : 8T 001 : 1.5T 010 : 2T 011 : 3T 100 : 4T 101 : 2.5T 110 : 6T 111 : 3.5T M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 60 Register Index : 57h Register Name : Ultra DMA /33 setting for Secondary drive 0 and drive 1 Default Value : 00h Attribute : Read/Write Bit No. 7 6-4 3 2-0 Bit Function Enable Secondary Device 1 for Ultra DMA/33 1: Enable 0: Disable Ultra DMA/33 cycle time for Secondary Device 1 000 : 8T 001 : 1.5T 010 : 2T 011 : 3T 100 : 4T 101 : 2.5T 110 : 6T 111 : 3.5T Enable Secondary Device 0 for Ultra DMA/33 1: Enable 0: Disable Ultra DMA/33 cycle time for Secondary Device 0 000 : 8T 001 : 1.5T 010 : 2T 011 : 3T 100 : 4T 101 : 2.5T 110 : 6T 111 : 3.5T Register Index : 58h Register Name : Primary channel address setup timing register Default Value : 00h Attribute : Read/Write Bit No. 7-3 2-0 Bit Function Reserved Address setup count 000 : 8 clks (Default) 001 : 1 clks 010 : 2 clks 011 : 3 clks 100 : 4 clks 101 : 5 clks 110 : 6 clks 111 : 7 clks M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 61 Register Index : 59h Register Name : Primary channel command block timing register Default Value : 00h Attribute : Read/Write Bit No. 7 6-4 3-0 Bit Function Reserved Command active count 000 : 8 clks (Default) 001 : 1 clks 010 : 2 clks 011 : 3 clks 100 : 4 clks 101 : 5 clks 110 : 6 clks 111 : 7 clks Command recovery count 0000 : 16 clks (Default) 0001 : 1 clks 0010 : 2 clks 0011 : 3 clks 0100 : 4 clks 0101 : 5 clks 0110 : 6 clks 0111 : 7 clks 1000 : 8 clks 1001 : 9 clks 1010 : 10 clks 1011 : 11 clks 1100 : 12 clks 1101 : 13 clks 1110 : 14 clks 1111 : 15 clks M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 62 Register Index : 5Ah Register Name : Primary channel Drive 0 data read/write timing register Default Value : 00h Attribute : Read/Write Bit No. 7 6-4 3-0 Bit Function Reserved Data read/write active count 000 : 8 clks (Default) 001 : 1 clks 010 : 2 clks 011 : 3 clks 100 : 4 clks 101 : 5 clks 110 : 6 clks 111 : 7 clks Data read/write recovery count 0000 : 16 clks (Default) 0001 : 1 clks 0010 : 2 clks 0011 : 3 clks 0100 : 4 clks 0101 : 5 clks 0110 : 6 clks 0111 : 7 clks 1000 : 8 clks 1001 : 9 clks 1010 : 10 clks 1011 : 11 clks 1100 : 12 clks 1101 : 13 clks 1110 : 14 clks 1111 : 15 clks M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 63 Register Index : 5Bh Register Name : Primary channel Drive 1 data read/write timing register Default Value : 00h Attribute : Read/Write Bit No. 7 6-4 3-0 Bit Function Reserved Data read/write active count 000 : 8 clks (Default) 001 : 1 clks 010 : 2 clks 011 : 3 clks 100 : 4 clks 101 : 5 clks 110 : 6 clks 111 : 7 clks Data read/write recovery count 0000 : 16 clks (Default) 0001 : 1 clks 0010 : 2 clks 0011 : 3 clks 0100 : 4 clks 0101 : 5 clks 0110 : 6 clks 0111 : 7 clks 1000 : 8 clks 1001 : 9 clks 1010 : 10 clks 1011 : 11 clks 1100 : 12 clks 1101 : 13 clks 1110 : 14 clks 1111 : 15 clks M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 64 Register Index : 5Ch Register Name : Secondary channel address setup timing register Default Value : 00h Attribute : Read/Write Bit No. 7-3 2-0 Bit Function Reserved Address setup count 000 : 8 clks (Default) 001 : 1 clks 010 : 2 clks 011 : 3 clks 100 : 4 clks 101 : 5 clks 110 : 6 clks 111 : 7 clks Register Index : 5Dh Register Name : Secondary channel command block timing register Default Value : 00h Attribute : Read/Write Bit No. 7 6-4 3-0 Bit Function Reserved Command active count 000 : 8 clks (Default) 001 : 1 clks 010 : 2 clks 011 : 3 clks 100 : 4 clks 101 : 5 clks 110 : 6 clks 111 : 7 clks Command recovery count 0000 : 16 clks (Default) 0001 : 1 clks 0010 : 2 clks 0011 : 3 clks 0100 : 4 clks 0101 : 5 clks 0110 : 6 clks 0111 : 7 clks 1000 : 8 clks 1001 : 9 clks 1010 : 10 clks 1011 : 11 clks 1100 : 12 clks 1101 : 13 clks 1110 : 14 clks 1111 : 15 clks M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 65 Register Index : 5Eh Register Name : Secondary channel Drive 0 data read/write timing register Default Value : 00h Attribute : Read/Write Bit No. 7 6-4 3-0 Bit Function Reserved Data read/write active count 000 : 8 clks (Default) 001 : 1 clks 010 : 2 clks 011 : 3 clks 100 : 4 clks 101 : 5 clks 110 : 6 clks 111 : 7 clks Data read/write recovery count 0000 : 16 clks (Default) 0001 : 1 clks 0010 : 2 clks 0011 : 3 clks 0100 : 4 clks 0101 : 5 clks 0110 : 6 clks 0111 : 7 clks 1000 : 8 clks 1001 : 9 clks 1010 : 10 clks 1011 : 11 clks 1100 : 12 clks 1101 : 13 clks 1110 : 14 clks 1111 : 15 clks M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 66 Register Index : 5Fh Register Name : Secondary channel Drive 1 data read/write timing register Default Value : 00h Attribute : Read/Write Bit No. 7 6-4 3-0 Bit Function Reserved Data read/write active count 000 : 8 clks (Default) 001 : 1 clks 010 : 2 clks 011 : 3 clks 100 : 4 clks 101 : 5 clks 110 : 6 clks 111 : 7 clks Data read/write recovery count 0000 : 16 clks (Default) 0001 : 1 clks 0010 : 2 clks 0011 : 3 clks 0100 : 4 clks 0101 : 5 clks 0110 : 6 clks 0111 : 7 clks 1000 : 8 clks 1001 : 9 clks 1010 : 10 clks 1011 : 11 clks 1100 : 12 clks 1101 : 13 clks 1110 : 14 clks 1111 : 15 clks Register Index : Register Name: Default Value : Attribute : 60-61h Master byte counter for each PRD table entry 00h Read only Register Index : 62h Register Name : Latency timer of PCI interface Default Value : 00h Attribute : Read only Register Index : 63h Register Name : Latency timer expire indicator Default Value : 01h Attribute : Read only M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 67 Register Index : 64-65h Register Name : Byte counter for counting in ATA state machine Default Value : 0002h Attribute : Read only Register Index : 66h Register Name : Sector count counter for counting in ATA state machine Default Value : 00h Attribute : Read only Register Index : 67h Register Name : Block size counter for counting in ATA state machine Default Value : 01h Attribute : Read only Register Index : 68h Register Name : Block size register of device 0 on primary channel Default Value : 00h Attribute : read only Register Index : 69h Register Name : Block size register of device 1 on primary channel Default Value 00h Attribute : read only Register Index : 6Ah Register Name : Block size register of device 0 on secondary channel Default Value 00h Attribute : Read only Register Index : 6Bh Register Name : Block size register of device 1 on secondary channel Default Value 00h Attribute : Read only M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 68 Register Index : 6Ch Register Name : Primary channel sector count register This register is the duplicate of 1F2 Default Value : 00h Attribute : Read only Register Index : 6Dh Register Name : Secondary channel sector count register This register is the duplicate of 172 Default Value : 00h Attribute : Read only Register Index : 6Eh Register Name : Primary channel command register This register is the duplicate of 1F7 Default Value: 00h Attribute : Read only Register Index : 6Fh Register Name : Secondary channel command register This register is the duplicate of 177 Default Value : 00h Attribute : Read only Register Index : 70h Register Name : Primary channel byte count low register. This register is the duplicate of 1F4 Default Value : 00h Attribute : Read only Register Index : 71h Register Name : Primary channel byte count high register. This register is the duplicate of 1F5 Default value : 00h Attribute : Read only Register Index : 72h Register Name : Secondary channel byte count low register This register is the duplicate of 174 Default value : 00h Attribute : Read only Register Index : 73h Register Name : Secondary channel byte count high register This register is the duplicate of 175 Default Value : 00h Attribute : Read only M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 69 Register Index : 74h Default Value : 00h Attribute : Read only Bit No. 7 6 5-0 Bit Function FIFO_OVERRD '1' means error condition occurred that FIFO is over read. This bit must be cleared by reset. FIFO_OVERWR '1' means error condition occurred that FIFO is over written. This bit must be cleared by reset. FIFO_FLAG Indicates how many words are in FIFO currently. It is binary coded. Register Index : Default Value : Attribute : Bit No. 3 2 1 0 75h 00h Read only Bit Function Secondary channel drive select (the duplicate of 176 bit 4) 0 : select drive 2 1 : select drive 3 Primary channel drive select (the duplicate of 1F6 bit 4) 0 : select drive 0 1 : select drive 1 Secondary channel interrupt status 0 : no interrupt pending 1 : interrupt pending Primary channel interrupt status 0 : no interrupt pending 1 : interrupt pending Register Index : 76h Register Name : Default Value : 00h Attribute : Read only Bit No. Bit Function 6-4 Secondary channel's status D4 - error D5 - DRQ D6 - busy 2-0 Primary channel's status D0 - error D1 - DRQ D2 - busy Register Index : 78h Register Name : Default Value : 21h Attribute : Read/Write Bit No. Bit Function 7-0 IDE clock's frequency (default value is 33 = 21H) M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 70 M1543 Preliminary Data Sheet 4.1.3 USB PCI Configuration Register (IDSEL = AD31(default), AD30, AD13, AD12) Register Index : 01h-00h Register Name : Vendor ID Register Default Value : 10B9h Attribute : Read only Bit No. 15-0 Bit Function This is a 16-bit value assigned to Acer Labs Inc. This register is combined with 03h02h uniquely to identify any PCI device. Write to this register has no effect. Register Index : 03h-02h Register Name : Device ID Register Default Value : 5237h Attribute : Read only Bit No. 15-0 Bit Function This register holds a unique 16-bit value assigned to a device, and combined with the vendor ID, it identifies any PCI device. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 71 M1543 Preliminary Data Sheet Register Index 05h-04h Register Name : Command Register Default Value 0000h Attribute : Read/Write Bit No. 15-10(0h) 9(0b) 8(0b) 7(0b) 6(0b) 5(0b) 4(0b) 3(0b) 2(0b) 1(0b) 0(0b) Bit Function Reserved. These bits are always 0. Back to Back enable. M1543's USB only acts as a master to a single device, so this functionality is not needed. This bit is always 0. Enable the SERRJ driver When this bit is set, M1543's USB will enable SERRJ output driver. This bit is reset to 0 and will set to 1 when it detects an address parity error. SERRJ is not asserted if this bit is 0. Wait Cycle Control - M1543's USB does not need to insert a wait state between the address and data on the AD lines. This bit is always 0. Respond to Parity Errors If set to 1, M1543's USB will assert PERRJ when it is the agent receiving data AND it detects a data parity error. PERRJ is not asserted if this bit is 0. Enable VGA Palette Snooping This bit is always 0. Memory Write and Invalidate command If set to 1, M1543's USB is enabled to run Memory Write and Invalidate commands. The Memory Write and Invalidate Command will only occur if the cacheline size is set to 32 bytes and the memory write is exactly one cacheline. Enable Special Cycle M1543's USB does not run special cycles on PCI. This bit is always 0. Enable PCI Master If set to 1, M1543's USB is enabled to run PCI Master cycles. Enable Response to Memory Access If set to 1, M1543's USB is enabled to respond as a target to memory cycles. Enable Response to I/O Access If set to 1, M1543's USB is enabled to respond as a target to I/O cycles. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 72 M1543 Preliminary Data Sheet Register Index 07h-06h Register Name : Status Register Default Value : 0280h Attribute : Read only, Write clear Bit No. 15(0b) 14(0b) 13(0b) 12(0b) 11(0b) 10-9(01b) 8(0b) 7(1b) 6-0(0h) Bit Function Detected Parity Error. This bit is set by M1543's USB to 1 whenever it detects a parity error, even if the Respond to Parity Errors bit (command register, bit 6) is disabled. This bit is cleared (reset to 0) by writing a 1 to it. SERRJ Status. This bit is set by M1543's USB to 1 whenever it detects a PCI address parity error. This bit is cleared (reset to 0) by writing a 1 to it. Received Master Abort Status. This bit is set to 1 when M1543's USB, acting as a PCI master, aborts a PCI bus memory cycle. This bit is cleared (reset to 0) by writing a 1 to it. Received Target Abort Status. This bit is set to 1 when a M1543's USB generated PCI cycle (M1543's USB is the PCI master) is aborted by a PCI target. This bit is cleared (reset to 0) by writing a 1 to it. Sent Target Abort Status. This bit is set to 1 when M1543's USB signals target abort. This bit is cleared (reset to 0) by writing a 1 to it. DEVSELJ timing Read only bits indicating DEVSELJ timing when performing a positive decode. 00 : Fast 01 : Medium 10 : Slow Since DEVSELJ is asserted by M1543's USB to meet the medium timing, these bits are encoded as 01b. Data Parity Reported. Set to 1 if the Respond to Parity Error bit (Command Register bit 6) is set, and M1543's USB detects PERRJ asserted while acting as PCI master (whether PERRJ was driven by M1543's USB or not). Fast Back-to-Back Capable. M1543's USB does support fast back-to-back transactions when the transactions are not to the same agent. This bit is always 1. Reserved. These bits are always 0. Register Index : 08h Register Name : Revision ID Register Default Value : 03h Attribute : Read only Bit No. 7-0(03h) Bit Function Functional Revision Level (00000011b) Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 73 M1543 Preliminary Data Sheet Register Index 0B-09h Register Name : Class Code Register Default Value 0C0310h Attribute : Read only Bit No. 23-0 Bit Function This register identifies the generic function of M1543's USB the specific register level programming interface. The Base Class is 0Ch (Serial Bus Controller). The SubClass is 03h (Universal Serial Bus). The Programming Interface is 10h (OpenHCI). Register Index : 0Ch Register Name : Cache Line Size Default Value 00h Attribute : Read/Write Bit No. 7-0(0h) Bit Function This register identifies the system cacheline size in units of 32-bit words. M1543's USB will only store the value of bit 3 in this register since the cacheline size of 32 bytes is the only value applicable to the design. Any value other than 08h written to this register will be read back as 00h. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 74 M1543 Preliminary Data Sheet Register Index : 0Dh Register Name : Latency Timer Default Value : 00h Attribute : Read/Write Bit No. Bit Function 7-0(0h) This register identifies the value of latency timer in PCI clocks for PCI bus master cycles. Register Index : 0Eh Register Name : Header Type Register Default Value 00h Attribute : Read only Bit No. Bit Function 7-0(0h) This register identifies the type of predefined header in the configuration space. Since M1543's USB is a single function device and not a PCI-to-PCI bridge, this byte should be read as 00h. Register Index : 0Fh Register Name : BIST Default Value : 00h Attribute : Read only Bit No. Bit Function 7-0(0h) This register identifies the control and status of Built In Self Test. M1543's USB does not implement BIST, so this register is read only. Register Index : 13-10h Register Name : Base Address Register Default Value : 00000000h Attribute : Read/Write Bit No. Bit Function 31-12(0h) Base Address. POST writes the value of the memory base address to this register. 11-4(0h) Always 0. Indicates a 4K byte address range is requested 3(0b) Always 0. Indicates there is no support for prefetchable memory. 2-1(0h) Always 0. Indicates that the base register is 32-bit wide and can be placed anywhere in 32-bit memory space. 0(0b) Always 0. Indicates that the operational registers are mapped into memory space. Register Index: Register Name: Attribute: Default Value: Bit 15-0 2Dh-02Ch Subsystem Vendor ID Read/Write 0000h Bit Function If the Test Mode Register ( index 40h ) D20=0, then this register can Read/Write. Else, this register is Read-Only. Register Index : 2Fh-02Eh Register Name : Subsystem ID Attribute : Read/Write Default Value : 0000h Bit Description 15-0 If the Test Mode Register (index 40h) D20=0, then this register can be Read/Write. Else, this register is Read-Only. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 75 M1543 Preliminary Data Sheet Register Index : 3Ch Register Name : Interrupt Line Register Default Value : 00h Attribute : Read/Write Bit No. 7-0(0h) Bit Function This register identifies which of the system interrupt controllers the devices interrupt pin is connected to. The value of this register is used by device drivers and has no direct meaning to M1543's USB. Register Index : 3Dh Register Name : Interrupt Pin Register Default Value : 01h Attribute : Read only Bit No. 7-0(01h) Bit Function This register identifies which interrupt pin a device uses. Since M1543's USB uses INTAJ, this value is set to 01h. Register Index 3Eh Register Name : Min Gnt Register Default Value : 00h Attribute : Read only Bit No. 7-0(0h) Bit Function This register specifies the desired settings for how long a burst M1543's USB needs assuming a clock rate of 33 Mhz. The value specifies a period of time in units of 1/4 microsecond. Register Index 3Fh Register Name : Max Lat Register Default Value : 00h Attribute : Read only Bit No. 7-0(0h) Bit Function This register specifies the desired settings for how often M1543's USB needs access to the PCI bus assuming a clock rate of 33 Mhz. The value specifies a period of time in units of 1/4 microsecond. Register Index: Register Name: Attribute: Default Value: 43h-040h Test Mode Register Read/Write 00000000h Bit 31-21 20 19-0 Bit Function Reserved. Must always write 0's. Subsystem/Vendor ID ( index 2Fh-02Ch ) lock bit. 0 : Index 2Fh-02Ch can Read/Write. 1 : Index 2Fh-02Ch is Read-Only. Reserved. Must always write 0's. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 76 M1543 Preliminary Data Sheet 4.1.4 PMU Configuration Registers Description (IDSEL=AD28(default), AD29, AD14, AD15) All reserved bits are read as 0's Index-Offset Description Register Index : 01h-00h Register Name : Vendor ID Attribute : Read Only Default Value : 10B9h Register Index : 03h-02h Register Name : Device ID Attribute : Read Only Default Value : 7101h Register Index : 05h-004h Register Name : Command Byte Attribute : Read Only Default Value : 0000h Bit 15-5 4 3 2 1 0 Description Reserved. Read as 0's. Cacheing Command Enable (always '0'). Special cycle Enable (always '0'). Bus Master Enable (always '0'). Memory Space Enable (always '0'). I/O Space Enable (R/W). This bit controls the PMU I/O and SMB I/O space registers. The Base address I/O (CFG_10-17) must be programmed before this bit is set. Register Index : 07h-006h Register Name : Status Byte Bit Description 15 Detected Parity Error. Always '0'. 14 Signal System error. Always '0'. 13 Receive Master Abort When PMU as a master. (Not Implemented, always '0'). 12 Receive Target Abort When PMU as a master. (Not Implemented, always '0'). 11 Signal Target Abort When PMU as a slave. (Not Implemented, always '0'). 10-9 PMU DEVSELJ Timing. This status of DEVSELJ decode timing as PCI spec. PMU always generates DEVSELJ with medium timing Bit9='1', Bit10='0'. 8-0 Reserved. Read as 0's. Register Index : 08h Register Name : Revision ID. Attribute : Read Only Default Value : 00h Register Index : 0B-009h Register Name : Class code. TBD Attribute : Read Only Register Index : 0D-00Ch Register Name : Reserved Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 77 M1543 Preliminary Data Sheet Register Index : 0Eh Register Name : Device Type Attribute : Read Only Default Value : (00h) bit7=0 always single-function chip. Register Index : 13h-010h Register Name : Power Management I/O Base Address Default Value : 00000001h Bit Description 31-16 Reserved. Must be written as 0000h. 15-6 Corresponds to PMU I/O start address AD[15:6]. (64Bytes size). 5-1 Reserved. Read as 0's. 0 This bit is always '1', the PMU I/O base address in this register is indicated. Register Index : 17h-014h Register Name : SMB I/O Base Address Default Value : 00000001h Bit Description 31-16 Reserved. Must be written as 0000h. 15-5 Corresponds to SMB I/O start address AD[15:5]. (32Bytes size). 4-1 Reserved. Read as 0's. 0 This bit is always '1', the SMB I/O base address in this register is indicated. Register Index : 2Bh-00Fh Register Name : Reserved Register Index : 2Dh-02Ch Register Name : Subsystem Vendor ID Attribute : Read/Write Register Index : 2Fh-02Eh Register Name : Subsystem ID Attribute : Read/Write Register Index : 3Fh-030h Register Name : Reserved Note: There are common status bits for ACPI and Legacy. Including ACPI released SMI. Note: There are common enable/disable status bits for ACPI and Legacy. Including 4-resume GPSWs, HOTKEY, DOCK, COVSW, RTC, PWRBTN, RINGIN, USB, THERMJ, Thermal overide and BUS Master. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 78 Register Index : 41h-40h Register Name : SMI enable when ON to Green Attribute : Read/Write Default Value : 0000h Bit Description 15-13 Reserved. 12 Soft SMI, caused by writing IO port 0B1h. 11-5 Reserved. 4 APM timer A timeout SMI. 3 RTC SMI, caused by assertion of IRQ8I. 2 PWRBNJ (Power Button) SMI. 1 Display timer timeout SMI. 0 Standby timer timeout SMI. Register Index : 43h-042h Register Name : SMI status when ON to Green Attribute : Read/Write Default Value : 0000h Bit Description 15-13 Reserved. 12 Soft SMI, caused by writing IO port 0B1h. 11-5 Reserved. 4 APM timer A timeout SMI. 3 RTC SMI, caused by assertion of IRQ8I. 2 PWRBNJ (Power Button) SMI. 1 Display timer timeout SMI. 0 Standby timer timeout SMI. M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 79 Register Index : 46h-044h Register Name : SMI enable when Wake Up. Attribute : Read/Write Default Value : 200000h Bit 23-21 20 19 18-16 15 14-13 12 11 10 9 8 7 6 5 4 3 2 1 0 Description Reserved. SIRQ access SMI. SMB bus SMI. Reserved. I/O group C I/O access SMI. Reserved. Parallel Port I/O access SMI. Keyboard I/O access SMI. Serial I/O access SMI. Flopy I/O access SMI. Video I/O access SMI. Audio I/O access SMI. Secondary Driver I/O access SMI. Primary Driver I/O access SMI. Modem RING IN SMI. BUS_Master active SMI. USB access SMI. Display timeout activity SMI. Standby to ON SMI. Register Index : 47h Register Name : Reserved. M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 80 Register Index : 4Ah-048h Register Name : SMI status when Wake Up. Attribute : Read/Write Default Value : 000000h Bit Description 23-22 Reserved. 21 USB bus SMI status. This bit is set when USB needs CPU service. 20 SIRQ access status. 19 SMB bus status. 18-16 Reserved. 15 IO group C I/O access status. 14-13 Reserved. 12 Parallel Port I/O access status. 11 Keyboard I/O access status. 10 Serial I/O access status. 9 Flopy I/O access status. 8 Video I/O access status. 7 Audio I/O access status. 6 Secondary Driver I/O access status. 5 Primary Driver I/O access status. 4 Modem RING IN status. 3 BUS_Master status. 2 USB access status. This bit is set when USB bus is busy. 1 Display timeout activity status. 0 Standby to ON status. Register Index : 4Bh Register Name : Reserved. Register Index : 4Dh-04Ch Register Name : Enable of External Switch SMI. Attribute : Read/Write Default Value : 0000h Bit Description 15-9 Reserved. 8 THERMALJ high/low toggle SMI. 7-3 Reserved. 2 DOCKJ in/out SMI. 1 Reserved. 0 AC Power in/out SMI. M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 81 M1543 Preliminary Data Sheet Register Index : 4Fh-04Eh Attribute : Read/Write Default Value : 0000h Status of External Switches' SMI. Bit Description 15-9 Reserved. 8 THERMALJ high/low toggle status. 7-3 Reserved. 2 DOCKJ in/out status. 1 Reserved. 0 AC Power in/out status. Register Index : 51h-050h Register Name : Reserved Register Index : 53h-052h Register Name : Reserved Register Index : 54h Register Name : Standby timer. Default Value : 00h Attribute : Read/Write Generate Standby timer timeout SMI when it is timeout and be reset by the Standby monitor events. Generate Standby to On SMI when the Standby monitor events occurs after timeout. The monitored events are selected at offset 060h-063h. Bit Description 7-0 Count. (=0, when disabled)(timebase = 1min) Register Index : 55h Register Name : APM timer A Default Value : 00h Attribute : Read/Write Generate APM timer A timeout SMI and stop when timeout. If in repeat mode, timer will be reset to count again after timeout. Bit Description 7 Reserved 6 Repeat mode 5-4 Timebase of APM timer A. 00 : 1ms. 01 : 1sec. 10 : 1min. 11 : reserved. 3-0 Count. (=0, when disabled) Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 82 M1543 Preliminary Data Sheet Register Index : 56h Register Name : Reserved. Register Index : 57h Register Name : Reserved. Register Index : 58h Register Name : Reserved Register Index : 59h Register Name : Global Display timer. Default Value : 00h Attribute : Read/Write Generate Display timer timeout SMI when it is timeout and be reset by the Display monitor events. Generate Display timeout activity SMI when the Display monitor events occurs after timeout. The monitored events are selected at offset 064h-065h. Bit Description 7-5 Reserved. 4 Timebase of Display timer. 0 : 5sec. 1 : 1min. 3-0 Count. (=0, when disabled) Register Index : 5Ah Register Name : Reserved Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 83 Register Index : Bit No. 7 6 5 4 3 2 1 0 5Bh Description Reserved. Enable/disable break event reset throttle when clock is high. 0 : enable 1 : disable Select throttle period. 0 : Throttle period is 256 µs. 1 : Throttle period is 8 µs. Bit 31-5 of ACPI P_CNTRL register lock/unlock control 0 : unlock (can read/write) 1 : lock (cannot read/write) Enable/disable break event when throttle clock is low. 0 : enable 1 : disable. SMB I/O base address register control. 0 : Read/Write 1 : Read Only and always `0'. ACPI I/O base address register control. 0 : Read/Write 1 : Read Only and always `0'. Self Refresh during STPCLK mode enable/disable. 0 : enable 1 : disable Register Index : 5Fh-5Ch Register Name : Reserved Register Index : 063h-060h Register Name : Enable/disable systems events monitored by Standby timer. Default Value : 00000000h Attribute : Read/Write Bit Description 31-27 Reserved. 26 BUS_ACT detected. 25 PCI_REQJ or PHOLDJ asserted. 24 IRQ3-7, IRQ9-15, NMI, INIT or SMIJ asserted. 23 IRQ1 or IRQ12 asserted. 22 IRQ0. 21 PWRBTNJ (Power Button). 20 USB. 19-17 Reserved. 16 I/O group C. 15-13 Reserved. 12 Memory Group A. 11-10 Reserved. 9 Modem RING IN. 8 RTC. 7 Parallel Ports. 6 Keyboard. 5 Serial I/O. 4 Floppy. 3 Video. 2 Audio. 1 Secondary HDD. 0 Primary HDD. M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 84 Register Index : 65h-064h Register Name : Enable/disable Display events monitored by Display timer. Default Value : 0000h Attribute : Read/Write Bit 15-13 12 11-9 8 7 6 5 4 3 2 1 0 Description Reserved. I/O group C. Reserved. Memory Group A. Parallel Ports. Keyboard. Serial I/O. Floppy. Video. Audio. Secondary HDD. Primary HDD. Register Index : 67h-066h Default Value : Reserved Register Index : 68h Register Name : Activity Select. Default Value : 00h Attribute : Read/Write Select the IO ports of parallel port and FDD to be monitored. Bit Description 7-3 Reserved. 2-1 Select DRQ of Parallel Port event. 00 : DRQ0. 01 : DRQ1. 10 : DRQ3. 11 : reserved. 0 I/O port of FDD port 0 : 3F0h-3F7h. 1 : 370h-377h. Register Index : 6Bh-069h Register Name : Reserved M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 85 Register Index : 6Fh-06Ch Register Name : Enable/disable of event detected. (Part I) Default Value : 00000000h Attribute : Read/Write Bit 31-29 28 27 26 25 24 23 22 21 20 19 18 17 16 15-12 15 14 13 12 11-8 11 10 9 8 7-4 7 6 5 4 3 2 1 0 Description Reserved. Keyboard event detect IRQ12. Keyboard event detect IRQ1. Floppy event detect DRQ2. Video event detect Graphic IO. Video event detect VCSJ pin. Video event detect A-B pages. Reserved. Audio event detect DRQ7. Audio event detect DRQ6. Audio event detect DRQ5. Audio event detect DRQ3. Audio event detect DRQ1. Audio event detect DRQ0. I/O port of MS_Sound port. Audio event detect F40h-F47h. Audio event detect E80h-E87h. Audio event detect 604h-60Bh. Audio event detect 530h-537h. I/O port of SoundB-8/16 port. Audio event detect 280h-293h. Audio event detect 260h-273h. Audio event detect 240h-253h. Audio event detect 220h-233h. I/O port of MIDI port. Audio event detect 330h-333h. Audio event detect 320h-323h. Audio event detect 310h-313h. Audio event detect 300h-303h. Audio event detect ADLIB port, 338h-33Bh. Audio event detect GAME port, 200h-207h. Second drive event detect SDRQ. Primary drive event detect PDRQ. M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 86 Register Index : 071h-070h Register Name : Enable/disable of event detected. (Part II) Default Value : 0000h Attribute : Read/Write Bit 15-14 13-8 13 12 11 10 9 8 7-0 7 6 5 4 3 2 1 0 Description Reserved. Select I/O port for Parallel Port event. IOGPC detect I/O Group range C. IOGPC detect 62h, 66h. Parallel Port event detect DRQ0,1,3. Parallel Port event detect 3BCh-3BEh. Parallel Port event detect 278h-27Fh. Parallel Port event detect 378h-37Fh. Select I/O port for Serial port event. Serial Port event detect 338h-33Fh. Serial Port event detect 238h-23Fh. Serial Port event detect 228h-22Fh. Serial Port event detect 220h-227h. Serial Port event detect 2E8h-2EFh. Serial Port event detect 3E8h-3EFh. Serial Port event detect 2F8h-2FFh. Serial Port event detect 3F8h-3FFh. Register Index : 073h-072h Register Name : Enable/disable of event detected. (Part III) Default Value : 0000h Attribute : Read/Write Bit Description 15-4 Reserved. 3 Video detect GPI(3). 2 Audio detect GPI(2). 1 Reserved. 0 Primary HDD detect GPI(0). M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 87 M1543 Preliminary Data Sheet Register Index : 074h Register Name : System wake up status. Default Value : 00h Attribute : Read/Write The status is set when the occurrence of the corresponding event causes a StandBy to On SMI. Bit Description 7-6 Reserved. 5 System wake up by RTC(IRQ8J). 4 System wake up by PWRBNJ(Power Button). 3-2 Reserved. 1 System wake up by RING IN. 0 System wake up by DRQ2. Register Index : 075h Register Name : Time interval to measure Bus activity. Default Value : 00h Attribute : Read/Write Bit Description 7-0 Count. (timebase = PCICLK). Register Index : 076h Register Name : Threshold number of TRDYJ detected in the time interval Default Value : 00h Attribute : Read/Write If the detected number is larger than the threshold number in the time interval as set at offset 75h. Then, an BUS_ACT activi ty event will be generated. Bit Description 7 Reserved. 6 Enable/disable BUS_ACT 5-0 Threshold Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 88 M1543 Preliminary Data Sheet Register Index : 077h Register Name : SMI control register (SMI_CNTL) Default Value : 00h Attribute : Read/Write Note: Only level SMI is generated. Bit Description 7 Select ACPI mode or M7101 mode. 0 : ACPI mode, status bit is set as soon as event occurs no matter whether the SMI is enabled or not. 1 : M7101 mode, status bit is set if and only if both events occur and the SMI is enabled. 6 SMI acknowledge control 0 : SMIACK deasserted. 1 : SMIACK asserted. 5 Clear both ACPI and Legacy status. 0 : Clear status bits will reset both ACPI and Legacy status. 1 : Clear status bits only one side. 4 Read/write clear SMI. 0 : The status bit of all status registers can only be cleared by writing '1' to it. 1 : Reading the status registers will clear the registers also. 3 Enable/disable SMI. Decides whether to generate SMI or not. 2 Enable/disable delayed Soft SMI. 1-0 SMI delay time. For AC Power, EXTSW, Cover Switch, CRT, SETUP, HOTKEY, DOCK, EJECT and Soft SMI (option). When the above SMI events occurs, SMI will be generated after the delay timer's timeout. Any monitored events set in standby monitor event en/disable register will reset this timer and delay the SMI again. Refer to Index 0D8h. 00 : no delay. 01 : 125ms. 10 : 250ms. 11 : 500ms. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 89 M1543 Preliminary Data Sheet *Clock management Register Index : 079h-078h Register Name : PLL timer setting. Default Value : 0000h Attribute : Read/Write Bit Description 15-12 Reserved. 11-9 Selection of switching time of SUSPEND to NORMAL. When system switches from SUSPEND to NORMAL, the XSTPCLKJ control signal can not deassert until the refresh circuit is switched to normal refresh. 000 : 0 ms. 001 : 128 µs. 010 : 256 µs. 011 : 512 µs. 100 : 1 ms. 101 : 2 ms. 110 : 4 ms. 111 : 8 ms. 8-6 Selection of switching time of NORMAL to SUSPEND. When system switches from NORMAL to SUSPEND, the XOFF_PWR1 signal cannot assert until the refresh circuit is switched to suspend refresh. 000 : 0 ms. 001 : 128 µs. 010 : 256 µs. 011 : 512 µs. 100 : 1 ms. 101 : 2 ms. 110 : 4 ms. 111 : 8 ms. 5-3 Selection of CPU PLL time. When CPU is from STPCLK to STPGNT, XSTPCLKJ signal should delay for a period of time to deassert for the stability of internal clock of CPU. 000 : 0 ms. 001 : 0.25 ms. 010 : 0.50 ms. 011 : 1 ms. 100 : 2 ms. 101 : 4 ms. 110 : 8 ms. 111 : 16 ms. 2-0 Selection of clock generator PLL time. When clock generator changes from off to on, XCPU_STPJ and XPCI_STPJ signals should delay for a period of time to deassert for the stability of clock when resumed from SLEEP. 000 : 0 ms. 001 : 1 ms. 010 : 2 ms. 011 : 4 ms. 100 : 8 ms. 101 : 16 ms. 110 : 32 ms. 111 : 64 ms. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 90 M1543 Preliminary Data Sheet Register Index : 07Ah Register Name : Slowdown and AMSTATE control Default Value : 00h Attribute : Read/Write Transition of D0 will assert STPCLKJ first and then change SLOWDOWN after the STPGNT cycle is detected. STPCLKJ will deassert after the CPU PLL time. If D1 is set, AMSTATJ will assert after the HALT cycle detected. Note : SLOWDOWN and AMSTATJ always synchronize by rising edge of PCICLK. Bit Description 7-2 Reserved. 1 Enable/disable AMSTATE. 0 Reserved. Register Index : 07Bh Register Name : STPCLKJ control Default Value : 00h Attribute : Read/Write. Bit Description 7-6 Reserved. 5 Select High/Low active of Auto Thermal Throttle. 0 : high active. 1 : low active 4 Auto Thermal Throttle enabled. 3 En/disable STPCLK function. Select function when Soft STPCLK enabled(Read IO port 0B2h). 0 : STPGNT. 1 : STPCLK. 2 Software STPCLK enable/disable. 0 : disable 1 : enable 1 Enable/disable SLPJ output. 0 Enable/disable ZZ output. Note : When D4='1' THRMJ='0' for 2 seconds, THROTTLE function will be enabled automatically. Besides, if I/O port 10h D4 (THT_EN='1'), then THROTTLE function will be enabled, too. R_LVL2 R_LVL3 STPCLK_EN Soft_STPCLK STPGNT 1 0 X 0 0 0 0 1 STPCLK 0 1 X 0 0 0 1 1 Note: All the functions listed above runs only when I/O offset 13h-10h, D9 has enabled. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 91 Register Index : 07Ch Register Name : Break event for STPCLKJ. Default Value : 00h Attribute : Read/Write Bit Description 7 Enable/disable break event of PCI_Master. 6 Enable/disable break event of all devices. 5 Enable/disable break event of PWRBTNJ. 4 Enable/disable break event of INTR. 3 Enable/disable break event of IRQ1-7, IRQ9-15, NMI, INIT and SMI. 2 Enable/disable break event of IRQ8. 1 Enable/disable break event of IRQ0. 0 Enable/disable break event of PCI Access. Register Index : 07Dh Register Name : Direction control of GPIO[7:0]. Default Value : 00h Attribute : Read/Write 0 : GPIO[n] is a General purpose input pin. 1 : GPIO[n] is a General purpose output pin. Bit Description 7 Direction of GPIO[7]. 6 Direction of GPIO[6]. 5 Direction of GPIO[5]. 4 Direction of GPIO[4]. 3 Direction of GPIO[3]. 2 Direction of GPIO[2]. 1 Direction of GPIO[1]. 0 Direction of GPIO[0]. M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 92 M1543 Preliminary Data Sheet Register Index : 07Eh Register Name : Data output to GPIO[7:0] when pin GPIO[n] is set as general purpose output pin. Default Value : 00h Attribute : Read/Write Bit Description 7 Data of GPIO[7]. 6 Data of GPIO[6]. 5 Data of GPIO[5]. 4 Data of GPIO[4]. 3 Data of GPIO[3]. 2 Data of GPIO[2]. 1 Data of GPIO[1]. 0 Data of GPIO[0]. Register Index : Register Name: Default Value : Attribute : Bit 7 6 5 4 3 2 1 0 07Fh Data input from GPIO[7:0] when pin GPIO[n] is set as general purpose input pin. xxh Read Description Data input of GPIO[7]. Data input of GPIO[6]. Data input of GPIO[5]. Data input of GPIO[4]. Data input of GPIO[3]. Data input of GPIO[2]. Data input of GPIO[1]. Data input of GPIO[0]. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 93 *SWITCH control Register Index : 082h-080h Register Name : Control of external SWITCH. Default Value : 0000_x000_x000_x000_x000_x000b Attribute : Read/Write Bit Description 23-16 Reserved. 15 Status of pin THERMALJ. 14 Detects rising edge of THERMALJ. 13 Detects falling edge of THERMALJ. 12 Enable/disable debounce circuit of THERMALJ. 11-0 Reserved. Register Index : 083h Register Name : Reserved. Register Index : 084h Register Name : Reserved Register Index : 085h Register Name : Reserved Register Index : 086h Register Name : Reserved Register Index : 087h Register Name : Reserved Register Index : 088h Register Name : Reserved Register Index : 089h Register Name : Reserved Register Index : 08Ah Register Name : Reserved Register Index : 08Bh Register Name : Reserved M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 94 Register Index : 08Eh-08Ch Register Name : Control of External Switch. (resume) Default Value : x000_x000_x000_x000_x000_x000b Attribute : Read/Write Bit Description 23-12 Reserved. 11 Status of pin AC Power. 10 Detect rising edge of AC Power. 9 Detect falling edge of AC Power. 8 Enable/disable debounce circuit of AC Power. 7-4 Reserved. 3 Status of pin DOCKJ. 2 Detect rising edge of DOCKJ. 1 Detect falling edge of DOCKJ. 0 Enable/disable debounce circuit of DOCKJ. Register Index : 08Fh Register Name : Reserved Register Index : 090h Register Name : Control of General Purpose external SWITCH A. (resume) Default Value : 00x0_0000b Attribute : Read/Write Bit Description 7-1 Reserved. 0 Select PWRBTNJ mode. 0 : The falling edge of PWRBTNJ will generate XSMIJ first. If it is asserted over four seconds, a hardware Soft-Off proceeds automatically. 1 : Generating XSMIJ or proceeding Soft-Off are decided at the rising edge of PWRBTNJ. Register Index : 091h Register Name : Reserved Register Index : 092h Register Name : Reserved Register Index : 093h Register Name : Reserved M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 95 Register Index : 097h-094h Register Name : Memory Group A Default Value : 00000000h Attribute : Read/Write Bit Description 31-14 Address of A[31:14]. 13-4 Mask of address A[23:14]. 3-0 Reserved. Register Index : 09Bh-098h Register Name : Reserved Register Index : 09Fh-09Ch Register Name : Reserved Register Index : 0A1h-0A0h Register Name : Reserved Register Index : 0A3h-0A2h Register Name : Reserved Register Index : 0A5h-0A4h Register Name : IO Group C Default Value : 0000h Attribute : Read/Write Bit Description 15-2 Address of A[15:2]. 1-0 Mask of address A[3:2]. Register Index : 0A7h-0A6h Register Name : Reserved Register Index : 0A9h-0A8h Register Name : Reserved Register Index : 0ABh-0AAh Register Name : Reserved Register Index : 0AFh-0ACh Register Name : Reserved M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 96 Register Index : 0B1h-0B0h Register Name : Reserved Register Index : 0B2h Register Name : The current state Default Value : 00h Attribute : Read/Write Bit Description 7-1 Reserved. 0 0 : ON 1 : Standby Register Index : 0B3h Register Name : Speaker Control Default Value : 00h Attribute : Read/Write Bit Description 7 Reserved. 6 Enable/disable speak function. 0 : Disable speak function. 1 : Enable speak function. 5-4 Latency time of write beep function when writing 0CAh. 00 : 125 ms. 01 : 62.5 ms. 10 : 31.25 ms. 11 : 15.625 ms. 3-2 4-beep function control. 00 : disable 4-beep function. 01 : 4 beeps in 1 sec. 10 : 4 beeps in 2 sec. 11 : 4 beeps in 4 sec. 1-0 Interval time of periodic 4-beep function. 00 : 60 sec. 01 : 30 sec. 10 : 15 sec. 11 : reserved. M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 97 Register Index : Register Name: Default Value : Attribute : Bit 7 6-4 3 2 1-0 0B4h Suspend LED. (resume) 00h Read/Write Description Reserved. Debounce clock of debounce circuits of all external pins. 000 : 128 Hz 001 : 64 Hz 010 : 32 Hz 011 : 16 Hz 100 : 8 Hz 101 : 4 Hz 110 : 2 Hz 111 : 1 Hz Enable power saving of All resume switches. 0 : disable 1 : enable Power Botton Override Enable/Disable. 0 : enable 1 : disable Reserved. Register Index : 0B5h Register Name : LED control Default Value : 00h Attribute : Read/Write Bit Description 7-4 Reserved. 3-2 SQWO control. 00 : low. 01 : high. 10 : 1Hz. 11 : 2Hz. 1-0 SLED control. 00 : low. 01 : high. 10 : 1Hz. 11 : 2Hz. Register Index : 0B6h Register Name : Reserved M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 98 M1543 Preliminary Data Sheet Register Index : 0B7h Register Name : Ring counter Default Value : 00h Attribute : Read/Write Bit Description 7-4 Reserved. 3-0: Count. Register Index : 0B9h-0B8h Register Name: Reserved Register Index : 0BBh-0BAh Register Name : Reserved Register Index : 0BCh Register Name : Shadow register of IO port 70h. Default Value : 00h Attribute : Read/Write Bit Description 7-0 This register has the same value as IO port 70h. But, when in SMM, writing to port 70h does not change its value. And the value of port 70h will be updated as its value when exiting SMM. Register Index : 0BDh Default Value : 00h Attribute : Read/Write Bit Description 3 PMU Class Code Writable Enable /Disable. 0 : Enable. 1 : Disable. 2 Select 24/32 Bits PM Timer 0 : 24 Bits. 1 : 32 Bits. 1-0 ACPI 24/32 bits timer test mode select (for testing). Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 99 Register Index : 0BEh Register Name : Other Configuration. Default Value : 00h Bit Description 1 Enable power saving of all normal switches. 0 : disable. 1 : enable. 0 Disable internal USB SMIACKJ 0 : Enable. 1 : Disable. Register Index : 0BFh Register Name : Reserved. * GPO and GPI functions Register Index : 0C2h-0C0h Register Name : Data output to GPO pins. Default Value : 000000h Attribute : Read/Write Bit Description 23-21 Reserved. 20 GPO[20]. 19 GPO[19]. 18 GPO[18]. 17 Reserved. 16 Reserved. 15 Reserved. 14 Reserved. 13 Reserved. 12 GPO[12]. 11-10 Reserved. 9 GPO[9]. 8-4 Reserved. 3 GPO[3]. 2 GPO[2]. 1 GPO[1]. 0 GPO[0]. Register Index : 0C3h Register Name : Output data for GPO[23:21]. (resume) Default Value : 00h Attribute : Read/Write Bit Description 7-3 Reserved. 2 GPO[23]. 1 GPO[22]. 0 Reserved. M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 100 Register Index : 0C5h-0C4h Register Name : Input data of GPI[11:0]. Default Value : 0xxxh Attribute : Read Bit Description 15-12 Reserved. 11 GPI[11]. 10 GPI[10]. 9 GPI[9]. 8-4 Reserved. 3 GPI[3]. 2 GPI[2]. 1 Reserved. 0 GPI[0]. Register Index : 0C6h Register Name : Select Multifunctions in Resume block. (resume) Default Value : 00h Attribute : Read/Write Bit Description 7-3 Reserved. 2 OFF_PWR2/GPO[23] select. 0 : OFF_PWR2. 1 : GPO[23]. 1 OFF_PWR1/GPO[22] select. 0 : OFF_PWR1. 1 : GPO[22]. 0 Reserved. Register Index : 0C8h Register Name : Mask monitored events of all timers. Default Value : 00h Attribute : Read/Write 0 : Idle timers can be reset by its monitored event. 1 : Idle timers cannot be reset by its monitored event. M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 101 M1543 Preliminary Data Sheet Register Index : 0C9h Register Name : Lock read/write of all configure registers. Default Value : 00h Attribute : Read/Write 0 : All configuration register from offset 040h can be read/write 1 : All configuration registers from offset 040h cannot be read/write except offset 0C9h. Register Index : 0CAh Register Name : Write Beep Port. Write to this port will cause beep. Attribute : Write Only Register Index : 0CBh Register Name : Reserved Register Index : 0CCh Register Name : Reserved. Register Index : 0CDh Register Name : Reserved. Register Index : 0CFh-0CEh Register Name : Reserved. Register Index : 0D1h-0D0h Register Name : Reserved. Register Index : 0D4h Register Name : Suspend TEST Mode disable/enable. Default Value : 00h Attribute : Read/Write Bit Description 7-1 Reserved 0 0 : Disable. 1 : Enable. Register Index : 0D7h-0D5h Register Name : Reserved. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 102 M1543 Preliminary Data Sheet Register Index : 0D9h-0D8h Register Name : Dummy register. Default Value : 0000h Attribute : Read/Write Bit Description 15-8 Reserved. 7 Enable/Disable HDD monitored access of 1F0-1F7, 3F6, 170-177 and 376. 0 : Disable 1 : Enable 6 Enable/Disable of sleeping state stop external PCICLK. 0 : Disable 1 : Enable 5 Subsystem Vendor ID Writable Enable/Disable. 0 : Enable. 1 : Disable. 4 IRQ1/IRQ12 source select. 0 : IRQ1 & IRQ12. 1 : KBCLK & MSCLK. 3 Enable CPU_STPJ monitor PHOLDJ. 0 : Disable. 1 : Enable. CPU_STPJ will be inactive when PHOLDJ is asserted. 2 Enable delayed SMI of ACPWR and CRT. 0 : Disable. 1 : Enable. 1 Reserved. 0 Enable delayed SMI of all external switches. Except for the following four pins. 0 : Disable. 1 : Enable. Register Index : E0h Register Name : SMBus Host & Slave Interface Configuration Default Value : 00h Attribute : Read/Write Bit Description 7-2 Reserved. 1 Host Slave Interface Enable. 0 SMB Host Controller Interface Enable. Register Index : E1h Register Name : SMBus Host Slave Command Register : while host being a slave device on the SMBus and the register matches the receiving command data, host generates SMI or Interrupt event. Default Value : 00h Attribute : Read/Write Bit Description 7-0 SMB Host Slave Command port. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 103 M1543 Preliminary Data Sheet Register Index : E2h Register Name : SMBus Host Controller Base Clock Setting Default Value : 20h Bit Description 7-5 Base Clock Select [7:5] "clock" 000 OSC14M/6 : 2.39M 001 OSC14M/12 : 1.19M (default) 010 OSC14M/24 : 0.60M 100 OSC14M/4 : 3.58M 101 OSC14M/8 : 1.79M 110 OSC14M/16 : 0.89M 4-3 Idle delay setting [4:3] "idle time" 00 BaseClk*64 53.76 us ref. 1.19M base clock. (default) 01 BaseClk*32 10 BaseClk*128 2-0 Reserved. Register Index : E3h Register Name : Reserved 4.2 Other I/O and Memory Spaces 4.2.1 DMA Register Description. a. Command Register, the same as 82C37 b. DMA Channel Mode Register, the same as 82C37 c. DMA Channel Extended Mode Register, Channels 0-3 port address - 040Bh Channels 4-7 port address - 04D6h Bit No. Bit Name Bit function Def. [1-0] DMA 00 Channel 0(4) select XX Channel Select 01 Channel 1(5) select 10 Channel 2(6) select 11 Channel 3(7) select [3-2] Reserved 00 [5-4] DMA Cycle 00 Compatible Timing 00 Timing Mode 01 Compatible Timing 10 Compatible Timing 11 Type F [7-6] Reserved 00 Compatible Timing : runs at 9 SYSCLKs (1080 nsec/ single cycle) and 8 SYSCLKs (960 nsec/cycle) during the repeated portion of a BLOCK or DEMAND mode. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 104 M1543 Preliminary Data Sheet Type F Timing: runs at 3 SYSCLKs (360 nsec/single cycle) and 2 SYSCLKs (240 nsec/ cycle) during the repeated portion of a BLOCK or DEMAND mode. d. DMA Request Register, the same as 82C37 e. Mask Resistor-Write Single Mask Bit, the same as 82C37 f. Mask Registor-Write All Mask Register Bits, the same as 82C37 g. Status Register, the same as 82C37 h. DMA Base and Current Address Register 8237 Compatible Segment i. DMA Base and Current Byte/Word Count Register 8237 Compatible Segment j. DMA Memory Low/High Page Register DMA Memory Base Low Page Register DMA Channel 0 port address - 087h DMA Channel 1 port address - 083h DMA Channel 2 port address - 081h DMA Channel 3 port address - 082h DMA Channel 5 port address - 08Bh DMA Channel 6 port address - 089h DMA Channel 7 port address - 08Ah DMA Memory Base High Page Register (Before using 32-bit addressing, index 42h bit6 must be set to '1') DMA Channel 0 port address - 487h DMA Channel 1 port address - 483h DMA Channel 2 port address - 481h DMA Channel 3 port address - 482h DMA Channel 5 port address - 48Bh DMA Channel 6 port address - 489h DMA Channel 7 port address - 48Ah These bits form the full 32-bit address for a DMA transfer. k. Clear Byte Pointer Flip-Flop, the same as 82C37 l. Master Clear, the same as 82C37 m. Clear Mask Register, the same as 82C37 Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 105 M1543 Preliminary Data Sheet 4.2.1.2 TIMER UNIT Register Description a. Timer Control Word Register, the same as 82C54 b. Interval Timer Read Back Command, the same as 82C54 c. Interval Timer Status Byte Format, the same as 82C54 d. Counter Latch Command Register, the same as 82C54 e. Counter Access Ports, the same as 82C54 4.2.1.3 INTERRUPT UNIT Register Description Initialization Command Word 1 (ICW1): Port 020h (W/O) -- INT Controller 1 Port 0A0h (W/O) -- INT Controller 2 Bit No. 7-5 4 3 2 1 0 Bit Function Reserved Must be 1 0 : Edge triggered interrupts for all channels 1 : Level triggered interrupts for all channels Reserved 0 : Cascade Controller(M1543 must write 0) 1 : Single Controller 0 : No ICW4 needed 1 : ICW4 is needed (M1543 must write 1) Initialization Command Word 2 (ICW2): Port 021h (W/O) -- INT Controller 1 Port 0A1h (W/O) -- INT Controller 2 Bit No. 7-3 2-0 Bit Function Interrupt Vector Address Reserved Initialization Command Word 3 (ICW3): Port 021h (W/O) -- INT Controller 1 M1543 must be programmed to 04h, indicating INT of CTRL-2 is cascaded to IRQ[2] of CTRL-1. Bit No. 7-0 Bit Function 0 : IR Input does not have a slave 1 : IR Input has a slave Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 106 Port 0A1h (W/O) -- INT Controller 2 M1543 must be programmed to 02h, indicating CTRL-2 is cascaded to IRQ[2] of CTRL-1. Bit No. 7-3 2-0 Bit Function must be 0h Slave identification code Initialization Command Word 4 (ICW4): Port 021h (W/O) -- INT Controller 1 Port 0A1h (W/O) -- INT Controller 2 Bit No. 7-5 4 3-2 1 0 Bit Function must be 0h. 0 : Not Specially Fully Nested Mode 1 : Specially Fully Nested Mode 0x : Non Buffered Mode 10 : Buffer Mode/Slave 11 : Buffer Mode/Master 0 : Normal EOI 1 : Auto EOI 0 : MCS-80/85 Mode 1 : 80x86 Mode (M1543 must write 1) M1543 Preliminary Data Sheet Operation Command Word 1 (OCW1): Port 021h (R/W) -- INT Controller 1 Port 0A1h (R/W) -- INT Controller 2 Bit No. 7-0 Bit Function 0 : Reset IRQ mask 1 : Set IRQ mask Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 107 Operation Command Word 2 (OCW2): Port 020h (W/O) -- INT Controller 1 Port 0A0h (W/O) -- INT Controller 2 Bit No. 7-5 4-3 2-0 Bit Function EOI, SL, R 000 : Rotate in Auto EOI Command(Clear) 001 : Non Specific EOI Command 010 : Set Priority Command * L2-L0 are used 011 : * Specific EOI Command 100 : Rotate in Auto EOI Command(Set) 101 : Rotate Non Specific EOI Command 110 : * Set Priority Command 111 : * Rotate on Specific EOI Command Must be 00b to select OCW2 L2,L1,L0 - Interrupt Level Select 000 : IRQ<0(8)> select 001 : IRQ<1(9)> select 010 : IRQ<2(10)> select 011 : IRQ<3(11)> select 100 : IRQ<4(12)> select 101 : IRQ<5(13)> select 110 : IRQ<6(14)> select 111 : IRQ<7(15)> select Operation Command Word 3 (OCW3): Port 020h (R/W) -- INT Controller 1 Port 0A0h (R/W) -- INT Controller 2 Bit No. 7 6-5 4-3 2 1-0 Bit Function Reserved, must be 0b 0x : No Action 10 : Reset Special Mask Mode 11 : Set Special Mask Mode Must be 01b to select OCW3. 0 : No Poll Command 1 : Poll Command 0x : No Action 10 : Read IRQ Register 11 : Read IS Register M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 108 Interrupt Unit Edge/Level Control Register (ELCR): Port 04D0h (R/W) -- INT Controller 1 Port 04D1h (R/W) -- INT Controller 2 Bit No. 7 6 5 4 3 2 1 0 Bit Function 0 : IRQ<7(15)> Edge trigger 1 : IRQ<7(15)> Level trigger 0 : IRQ<6(14)> Edge trigger 1 : IRQ<6(14)> Level trigger 0 : IRQ<5(13)> Edge trigger 1 : IRQ<5(13)> Level trigger 0 : IRQ<4(12)> Edge trigger 1 : IRQ<4(12)> Level trigger 0 : IRQ<3(11)> Edge trigger 1 : IRQ<3(11)> Level trigger 0 : IRQ<2(10)> Edge trigger 1 : IRQ<2(10)> Level trigger 0 : IRQ<1(9)> Edge trigger 1 : IRQ<1(9)> Level trigger 0 : IRQ<0(8)> Edge trigger 1 : IRQ<0(8)> Level trigger M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 109 M1543 Preliminary Data Sheet 4.2.1.4 NMI Registers NMI Enable/Disable and RTC Address register: Port 70h, 72h Attribute : Default value : Write Only 0xxxxxxxb Bit No. Bit Function 7 0 : enable NMI interrupt 1 : disable all NMI sources 6-0 RTC Memory addressing Note : When I/O write port 70h or 72h, pin RTCAS will be active. Port 72h is used to support 256byte RTC. Port 71h, 73h Note : When I/O write port 71h or 73h, pin RTCRW will be active (low). When I/O read port 71h or 73h, pin RTCDS will be active (low). NMI Status and Control register(Port B): Port 61h Attribute : Default value : Read/Write 00h Bit No. 7 (R only) 6 (R only) 5 (R only) 4 (R only) 3 (R/W) 2 (R/W) 1 (R/W) 0 (R/W) Bit Function 0 : No SERRJ from System Board 1 : SERRJ active, NMI requested. To reset this interrupt, set bit 2 to 1. 0 : No NMI Interrupt from IOCHKJ 1 : IOCHKJ is active and NMI requested. To reset this interrupt, set bit 3 to 1. Timer Counter 2 OUT status. Toggled from 0 to 1 or 1 to 0 following every refresh cycle. 0 : IOCHKJ NMI enable 1 : IOCHKJ NMI disable and clear 0 : System board error enable 1 : System board error disable and clear 0 : Pin SPKR output is always '0'. 1 : Pin SPKR output is the Timer Counter 2 OUT signal value. 0 : Timer Counter 2 disable 1 : Timer Counter 2 enable Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 110 M1543 Preliminary Data Sheet 4.2.1.5 FAST RC/GATE-A20 Registers. Port 92h Default value : Attribute : 24h Read/Write Bit No. 7 6 5 4 3 2 1 0 Bit Function Reserved (must be read as a 0). Reserved (must be read as a 0). Reserved (must be read as a 1). Reserved (must be read as a 0). Reserved (must be read as a 0). Reserved (must be read as a 1). Directly reflects the A20MJ signal 0 : A20MJ is driven inactive (low) 1 : A20MJ is driven active (high) 0 : Allow FAST RC to be pulsed 1 : FAST RC is pulsed active 4.2.2 USB OpenHCI Registers Register Index 103h-100h Register Name : HceControl Register Default Value : 00000000h Attribute : Read/Write Bit No. 31-9(0h) 8(0) 7(0) 6(0) 5(0) 4(0) 3(0) 2(0) 1(0) 0(0) Bit Function Reserved. Read as 0. I/O data that is written to ports 60h and 64h is captured in this register when emulation is enabled. This register may be read or written directly by accessing it with its memory address in the Host Controller's operational register space. When accessed directly with a memory cycle, reads and writes of this register have no side effects. A20State. This bit indicates current state of Gate A20 on keyboard controller. This bit is used to compare against value written to 60h when GateA20Sequence is active. IRQ12Active. This bit indicates that a positive transition on IRQ12 from keyboard controller has occurred. Software may write a 1 to this bit to clear it (set it to 0). Software write of a 0 to this bit has no effect. IRQ1Active. Indicates that a positive transition on IRQ1 from keyboard controller has occurred. Software may write a 1 to this bit to clear it (set it to 0). Software write of a 0 to this bit has no effect. GateA20Sequence. Set by HC when a data value of D1h is written to I/O port 64h. Cleared by HC when a data value of FFh is written to I/O port 64h. ExternalIRQEn. When set to 1, IRQ1 and IRQ12 from the keyboard controller will cause an emulation interrupt. The function controlled by this bit is independent of the setting of the EmulationEnable bit in this register. IRQEn. When set the Host Controller will generate IRQ1 or IRQ12 as long as the OutputFull bit in HceStatus is set to 1. If the AuxOutputFull bit of HceStatus is 0, then IRQ1 is generated and if it is 1, then an IRQ12 is generated. CharacterPending. When set, an emulation interrupt will be generated when the OutputFull bit of the HceStatus register is set to 0. EmulationInterrupt (Read) This bit is a static decode of the emulation interrupt condition. EmulationEnable. When set to 1, the Host Controller will be enabled for legacy emulation. The Host Controller will decode accesses to I/O registers 60H and 64H and generate IRQ1 and/or IRQ12 when appropriate. Additionally, the host controller will generate an emulation interrupt at appropriate times to invoke the emulation software. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 111 M1543 Preliminary Data Sheet Register Index : 107h-104h Register Name : HceInput Register Default Value : 000000xxh Attribute : Read/Write Bit No. 31-8(000000h) 7-0(xxh) Bit Function Reserved. Read as 0. InputData. This register holds data that is written to I/O ports 60h and 64h. The data placed in this register by the emulation software is returned when I/O port 60h is read and emulation is enabled. On a read of this location, the OutputFull bit in HceStatus is set to 0. Register Index : 10Bh-108h Register Name : HceOutput Register Default Value : 000000xxh Attribute : Read/Write Bit No. 31-8(000000h) 7-0(xxh) Bit Function Reserved. Read as 0. The contents of the HceStatus Register is returned on an I/O Read of port 64h when emulation is enabled. Reads and writes of port 60h and writes to port 64h can cause changes in this register. Emulation software can directly access this register through its memory address in the Host Controller's operational register space. Access of this register through its memory address produces no side effects. OutputData. This register hosts data that is returned when an I/O read of port 60h is performed by application software. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 112 M1543 Preliminary Data Sheet Register Index : 10Fh-10Ch Register Name : HceStatus Register Default Value : 00000000h Attribute : Read/Write Bit No. 31-8(000000h) 7(0) 6(0) 5(0) 4(0) 3(0) 2(0) 1(0) 0(0) Bit Function Reserved. Read as 0. Parity. Indicates parity error on keyboard/mouse data. Timeout. This is used to indicate a time-out. AuxOutputFull. IRQ12 is asserted whenever this bit is set to 1 and OutputFull is set to 1 and the IRQEn bit is set. Inhibit Switch. This bit reflects the state of the keyboard inhibit switch and is set if the keyboard is NOT inhibited. CmdData. The HC will set this bit to 0 on an I/O write to port 60h and on an I/O write to port 64h, the HC will set this bit to 1. Flag. Nominally used as a system flag by software to indicate a warm or cold boot. InputFull. Except for the case of a Gate A20 sequence, this bit is set to 1 on an I/O write to address 60h or 64h. While this bit is set to 1 and emulation is enabled, an emulation interrupt condition exists. OutputFull. The HC will set this bit to 0 on a read of I/O port 60h. If IRQEn is set and AuxOutputFull is set to 0 then an IRQ1 is generated as long as this bit is set to 1. If IRQEn is set and AuxOutputFull is set to 1 then and IRQ12 will be generated as long as this bit is set to 1. While this bit is 0 and CharacterPending in HceControl is set to 1, an emulation interrupt condition exists. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 113 M1543 Preliminary Data Sheet 4.2.3 Power Management I/O Space Registers 4.2.3.1 ACPI I/O Registers The "Base" address is programmed in the PMU PCI DEVICE Configuration Space Offset 10-13h Register Index : 01h-00h Register Name : Power Management 1 Status Register(PM1_STS) Default Value : 0000h Attribute : Read/Write Bit No. Bit Function 15 Wakeup Status (WAK_STS) 0 : Cleared by write '1' to this position. 1 : An enabled resume event occurs when system is in the suspend state. 14-11 Reserved. Read as 0's 10 RTC Status (RTC_STS) 0 : Cleared by write '1' to this position. 1 : RTC generate an alarm.(IRQ8J Assert) 9 Reserved. Read as 0's 8 Power Button Status (PWRBTN_STS) 0 : Cleared by write '1' to this position or by Power Button Override condition. 1 : PWRBTNJ is asserted LOW. 7-6 Reserved. Read as 0's 5 Global Status (GBL_STS) 0 : Cleared by write '1' to this position. 1 : The BIOS wanting the attention of the SCI handler (by writing a `1' to the BIOS_RLS bit). 4 Bus Master Status (BM_STS) 0 : Cleared by write '1' to this position. 1 : Anytime a system bus master requests the system bus. 3-1 Reserved. Read as 0's 0 Power Management Timer Carry Status(PMTC_STS) 0 : Cleared by write '1' to this position. 1 : The 22nd (30th) bit of the 24-bit (32-bit) PM timer goes high to low. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 114 M1543 Preliminary Data Sheet Register Index : 03h-02h Register Name : Power Management 1 Enable Register(PM1_EN) Default Value : 0000h Attribute : Read/Write Bit No. 15-11 10 9 8 7-6 5 4-1 0 Bit Function Reserved. Read as 0's. RTC Enable (RTC_EN) 0 : When reset, then no event is generated. 1 : When set, then an SCI, SMI or RSM event is generated anytime the RTC_STS bit is set. Reserved. Read as 0's. Power Button Enable (PWRBTN_EN) 0 : When reset, then no event is generated. 1 : When set, then an SCI, SMI or RSM event is generated anytime the PWRBTN_STS bit is set. Reserved. Read as 0's. Global Enable (GBL_EN) 0 : When reset, then no SCI event is generated. 1 : When set, then an SCI event is generated anytime the GBL_STS bit is set. Reserved. Read as 0's. Power Management Timer Carry Enable (PMTC_EN) 0 : When reset, then no SCI event is generated. 1 : When set, then an SCI event is generated anytime the PMTC_STS bit is set. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 115 M1543 Preliminary Data Sheet Register Index : 05h-04h Register Name : Power Management 1 Control Register (PM1_CNTRL) Default Value : 1000h Attribute : Read/Write Bit No. 15-14 13 12-10 9-3 2 1 0 Bit Function Reserved. Read as 0's. Suspend Enable(SLP_EN) -- Writable and Read as 0's 0 : When reset, then no suspend mode is entering. 1 : When set, then causes the system to sequence into the suspend mode defined by the SLP_TYP field. Suspend Type(SLP_TYP) This 3-bit field defines the type of hardware suspend mode. The system should enter when SLP_EN bit is set. 100 : Working 011 : Sleeping 010 : Suspend To DRAM 001 : Suspend To DISK 000 : Soft Off other : reserved The SUS_TYP field is used by the BIOS and OS code to determine the suspend mode that system is resuming from. Before entering any low state(LVL2 or LVL3) this field should be programmed to the Working mode. Reserved. Read as 0's Global Release(GBL_RLS) 0 : The resource ownership for ACPI software is not released. 1 : Set by ACPI software to raise SMI event to inform BIOS software, the resource ownership is released. Bus Master Break Event Enable(BM_RLD) 0 : When reset, then bus master request does not affect the processor state. 1 : When set, then bus master request will transition processor from clock control state(C3) to normal state(C0). SCI Enable(SCI_EN) 0 : When reset, then these events will generate SMI interrupt. 1 : When set, then these events will generate SCI interrupt. Register Index : 07h-06h Register Name : Reserved Register Index : 0Bh-08h Register Name : Power Management 1 Timer Register(PM1_TMR) Attribute : Read Only Bit No. 31-24 23-0 Bit Function Extend Power Management Timer Value(E_PMT_VAL) Return the upper eight bits of a 32bits power management timer Power Management Timer Value(PMT_VAL) Return the running count of the power management timer currently. Register Index : 0Fh-0Ch Register Name : Reserved Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 116 M1543 Preliminary Data Sheet Register Index : 13h-10h Register Name : Processor Control Register(P_CNTRL) Default Value : 0000h Attribute : Read/Write Bit No. 31-18 17 16-14 13 12-10 9 8-5 4 3-1 0 Bit Function Reserved. Read as 0's Throttle Status(THRO_STS) -- R0 0 : The clock control state is exit throttling mode. 1 : The clock control state is in the throttling mode. Reserved. Read as 0's Clock Run Enable (CR_EN) 0 : Disable 1 : Enable the M1543 becomes a PCI CLKRUN host Programmable (IDLE CYCLE to stop PCI clock). Reserved. Read as 0's Clock Control Enable(CLK_EN) 0 : Disable the clock control function. 1 : Enable the clock control function, read to the LVL2 and LVL3 register will cause M1543 enter the enabled clock control mode. Reserved. Read as 0's Throttle Enable(THRO_EN) 0 : Disable the CPU clock throttling function. 1 : Enable the CPU clock throttling function. Throttle Dutysetting Values (THRO_DTY) This 3-bit duty width field (Dutyset) determines the performance of the processor by the following equation. %Performance = Dutyset/ 2 dutywidth x 100 % Dutyset : %Performance 000 : reserved 001 : 0-12.5% (about 1/8 high and 7/8 low per throttle period) 010 : 12.5-25%(about 2/8 high and 6/8 low per throttle period) 011 : 25-37.5%(about 3/8 high and 5/8 low per throttle period) 100 : 37.5-50%(about 4/8 high and 4/8 low per throttle period) 101 : 50-62.5%(about 5/8 high and 3/8 low per throttle period) 110 : 62.5-75%(about 6/8 high and 2/8 low per throttle period) 111 : 75-87.5%(about 7/8 high and 1/8 low per throttle period) Reserved. Read as 0's Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 117 M1543 Preliminary Data Sheet Register Index : 14h Register Name : Processor Level 2 Register (LVL2) Default Value : 00h Attribute : Read Only Bit No. 7-0 Bit Function Reads to this register generate a "enter a level 2 power state" to the clock control logic. Register Index : 15h Register Name : Processor Level 3 Register (LVL3) Default Value : 00h Attribute : Read Only Bit No. 7-0 Bit Function Reads to this register generate a "enter a level 3 power state" to the clock control logic. Register Index : 17h-16h Register Name : Reserved Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 118 M1543 Preliminary Data Sheet Register Index : 19h-18h Register Name : General Purpose Event0 Status Register (GPE0_STS) Default Value : 0000h Attribute : Read/Write Bit No. 15-12 11 10 9 8 7-3 2 1 0 Bit Function Reserved. Read as 0's RI Status(RING_STS) 0 : Cleared by write '1' to this position. 1 : Anytime the RIJ signal is asserted . ACPWR Status(ACPWR_STS) 0 : Cleared by write '1' to this position. 1 : The ACPWR signal is asserted. Reserved. Read as 0's. DOCKJ Status(DOCK_STS) 0 : Cleared by write '1' to this position. 1 : The DOCKJ signal is asserted . Reserved. Read as 0's. USB Event Status(USBE_STS) 0 : Cleared by write '1' to this position. 1 : Anytime the USB Event is actived. Thermal Override Status(THEROR_STS) 0 : Cleared by write '1' to this position. 1 : Anytime the THRMJ signal is driven active for greater than 2 seconds,and starts throttling the CPU's clock at the THTL_DTY ratio(when Auto Thermal Throttle Enabled) Thermal Status(THER_STS) 0 : Cleared by write '1' to this position. 1 : Anytime the THRMJ signal is driven active as defined by the THRM_POL bit. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 119 M1543 Preliminary Data Sheet Register Index : 1Bh-1Ah Register Name : General Purpose Event0 Enable Register (GPE0_EN) Default Value : 0000h Attribute : Read/Write Bit No. 15-12 11 10 9 8 7-3 2 1 0 Bit Function Reserved. Read as 0's. RI Enable (RING_EN) 0 : When reset, then no event is generated. 1 : When set, then an SCI,SMI or RSM event is generated anytime the RING_STS bit is set. ACPWR Enable (ACPWR_EN) 0 : When reset, then no event is generated. 1 : When set, then an SCI,SMI or RSM event is generated anytime the ACPWR_STS bit is set. Reserved. Read as 0's. DOCKJ Enable (DOCK_EN) 0 : When reset, then no event is generated. 1 : When set, then an SCI,SMI or RSM event is generated anytime the DOCK_STS bit is set. Reserved. Read as 0's. USB Event Enable (USBE_EN) 0 : When reset, then no event is generated. 1 : When set, then an SCI,SMI or RSM event is generated anytime the USBE_STS bit is set. Thermal Override Enable (THEROR_EN) 0 : When reset, then no event is generated. 1 : When set, then an SCI or SMI event is generated anytime the THEROR_STS bit is set. Thermal Enable (THER_EN) 0 : When reset, then no event is generated. 1 : When set, then an SCI or SMI event is generated anytime the THER_STS bit is set. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 120 M1543 Preliminary Data Sheet Register Index : 1Dh-1Ch Register Name : General Purpose Event1 Status Register (GPE1_STS) Default Value : 0000h Attribute : Read/Write Bit No. 15-12 11 10 9-1 0 Bit Function Reserved. Read as 0's. IRQ Resume Status (IRQ_RSM_STS) 0 : Cleared by writing '1' to this position. 1 : The IRQ(15-9,7-3,1) signal assert. IRQ0 Resume Status (IRQ0_RSM_STS) 0 : Cleared by writing '1' to this position. 1 : The IRQ0 signal assert. Reserved. Read as 0's BIOS Status(BIOS_STS) 0 : Cleared by writing '1' to this position. 1 : ACPI software requesting attention (by writing a '1' to the GBL_RLS bit). Register Index : 1Fh-1Eh Register Name : General Purpose Event1 Enable Register (GPE1_EN) Default Value : 0000h Attribute : Read/Write Bit No. 15-12 11 10 9-1 0 Bit Function Reserved. Read as 0's IRQ Resume Enable(IRQ_RSM_EN) 0 : When reset, then no event is generated. 1 : When set, then an RSM event is generated anytime the IRQ_RSM_STS is set. (Only in the Sleeping state) IRQ0 Resume Enable(IRQ0_RSM_EN) 0 : When reset, then no event is generated. 1 : When set, then an RSM event is generated anytime the IRQ0_RSM_STS is set.(Only in the Sleeping state) Reserved. Read as 0's. BIOS Enable(BIOS_EN) 0 : When reset, then no SMI is generated. 1 : When set, the SMI is generated anytime the BIOS_STS is set. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 121 M1543 Preliminary Data Sheet Register Index : 27h-20h Register Name : General Purpose Event1 Control Register (GPE1_CTL) Default Value : 0000_0000h Attribute : Read/Write Bit No. Bit Function 31-2 Reserved. Read as 0's 1 BIOS Release(BIOS_RLS) -- R:0 0 : The resource ownership for BIOS software is not released. 1 : Set by BIOS software to raise SCI event to inform ACPI software, the resource ownership is released. 0 Reserved. Read as 0's Register Index : 2Fh-28h Register Name : Reserved. Register Index : 30h Register Name : Power Management 2 Control Register(PM2_CNTRL) Default Value : 00h Attribute : Read/Write Bit No. Bit Function 7-1 Reserved. Read as 0's 0 Arbiter Disable(ARB_DIS) 0 : The arbiter is enabled. 1 : The arbiter is disabled and default CPU has ownership of the system. Register Index : 3Fh-31h Register Name : Reserved 4.2.3.2 Advanced Power Management Registers Register Index : B1h Register Name : Advances Power Management Access Port (I/O) Default Value : 00h Attribute : Read/Write Bit No. 7-0 Bit Function Write generates an SMI Register Index : B2h Register Name : Advances Power Management Access Port (I/O) Default Value : 00h Attribute : Read Only Bit No. 7-0 Bit Function Read causes the STPCLKJ signal to be asserted Register Index : B3h Register Name : Advances Power Management Status Port (I/O) Default Value : 00h Attribute : Read/Write Bit No. 7-0 Bit Function Pass status information between the OS and SMI handler Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 122 M1543 Preliminary Data Sheet 4.2.3.3 SMB I/O Space Registers The "Base" address is programmed in the PMU PCI DEVICE Configuration Space Offset 14-17h Register Index : 00h Register Name : SMBSTS : SMBus Host/Slave Status Register Default Value : 00h Attribute : (Read/Write, & write '1' clear) Bit Description 7 TERMINATE, "1" means the interrupt (or SMI) was caused by a terminated bus transaction in response to "ABORT". 6 BUS_COLLI, Bus Collision, "1" means the interrupt (or SMI) was caused by the collision of bus transaction. 5 DEVICE_ERR, Device Error, "1" means the interrupt (or SMI) was caused by the SMB controller or device due to the generation of an error. 4 SMI_I_STS, "1" means that the Interrupt (or SMI) was caused by the SMB controller after completing a command. (RO) 3 HST_BSY, Host Controller Busy, "1" means that the SMB host controller is going to complete a command.(RO) 2 IDL_STS, "1" means SMBus at Idle Status. (RO) 1 HSTSLV_STS, Host Slave Status, "1" means the interrupt (or SMI) was caused by the host SMB slave interface. 0 HSTSLV_BSY, Host Slave Busy, "1" means that SMB slave interface is going to receive a command. (RO) Register Index : 01h Register Name : SMBCMD : SMBus Host/Slave Command Default Value : 00h Attribute : Write Only Bit Description 7 SMB_BLK_CLR, SMB Block Register Pointer Reset, to reset block register's pointer.(WO) 6-4 SMB_COMMAND, SMB Command, indicates that which kind of command to be asked to perform. (R/W) [6:4] Command 000 Quick command 001 Send/Receive Byte 010 Write/Read Byte 011 Write/Read Word 100 Write/Read Block 3 T_OUT_CMD, like "Abort" command, it (WO) performs the Time Out condition on the SMBus to reset not only Host controller but also other devices on the SMBus. -->DEVICE_ERR 2 Abort, reset Host controller. --> TERMINATE (WO) 1-0 Reserved. Register Index : 02h Register Name : STRT_PRT : I/O Port to Start to generate the programmed cycle on the SMBus Default Value : 00h Attribute : Write Register Index : 03h Register Name : SMBus Address Register for Host Controller Default Value : 00h Attribute : Read/Write Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 123 Register Index : 04h Register Name : SMBus DataA Register for Host Controller Default Value : 00h Attribute : Read/Write Register Index : 05h Register Name : SMBus DataB Register for Host Controller Default Value : 00h Attribute : Read/Write Register Index : 06h Register Name : SMBus Block Register for Host Controller Default Value : 00h Attribute : Read/Write Register Index : 07h Register Name : SMBus Command Register for Host Controller Default Value : 00h Attribute : Read/Write Register Index : 08h ~ 1Eh Register Name : Reserved M1543 Preliminary Data Sheet 4.2.3.4 PCI IDE Controller I/O Space Registers Definition. The Primary and Secondary Channel can be disabled by setting Byte 09h. Byte 09h - D7 - Bus master IDE 0 : No, it is not a bus master IDE. 1 : Yes, it is a Bus master IDE. Byte 09h - D6 - Report IDE channel status 0 : No, this is the default zero value of PCI 2.1 specification. 1 : Yes, D4-5 can be queried to determine status of the IDE controller. Byte 09h - D5 - Primary Channel 0 : No, the Primary channel is disabled. 1 : Yes, the Primary channel is enabled. Byte 09h - D4 - Secondary Channel 0 : No, the Secondary channel is disabled. 1 : Yes, the Secondary channel is enabled. Byte 09h - D3 - Secondary channel support 0 : compatibility only 1 : both compatibility and native mode. Byte 09h - D2 - Operation of Secondary channel 0 : compatibility mode 1 : Native mode Byte 09h - D1 - Primary channel support 0 : compatibility only. 1 : both compatibility and native mode. Byte 09h - D0 - Operation of Primary channel 0 : compatibility mode 1 : Native mode Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 124 M1543 Preliminary Data Sheet 2. The PIO Mode IDE I/O Space Define. a. Compatibility Mode. Primary channel I/O space is from 1F0H to 1F7H and 3F6H. Secondary channel I/O space is from 170H to 177H and 376H. b. Native Mode. Primary Channel I/O space can be programmed at 10H and 14H. The I/O range is 8bytes that is descripted at 10H and1 byte is descripted at 14H. Secondary Channel I/O space can be programmed at 18H and 1CH. The I/O range is 8 bytes that is descripted at 18H and 1 byte is descripted at 1Ch. 3. Bus Master IDE Register Description. The Bus master IDE function uses 16 bytes of I/O space. All bus master IDE I/O space can be accessed as byte, word, or Dword quantities. The description of the 16 bytes of I/O registers are as follows : Offset from Base Address 00h 01h 02h 03h 04h-07h 08h 09h 0Ah 0Bh 0Ch-0Fh Register Bus Master IDE Command Register Primary Device Specific Bus Master IDE Status Register Primary Device Specific Bus Master IDE PRD Table Address Primary Bus Master IDE Command Register Secondary Device Specific Bus Master IDE Status Register Secondary Device Specific Bus Master IDE PRD Table Address Secondary Register Access R/W RWC R/W R/W RWC R/W a. Register Name: Bus Master IDE Command register Address Offset: Primary Channel - Base address defined in 20H + 00H Secondary Channel - Base address defined in 20H + 08H Base address : F001H Default Value : 00H Attribute : Read/Write Size : 8 bits Bit Description 7-4 Reserved. must be 0. 3 Read or Write Control. This bit sets the direction of the bus master transfer. 0 : PCI bus master read 1 : PCI bus master write. This bit must not be changed when the bus master function is active. 2-1 Reserved. must be 0. 0 Start/Stop Bus Master. Writing a `1' to this bit enables bus master operation of the controller. Bus Master operation begins when this bit is detected changing from a zero to a one. The controller will transfer data between the IDE device and memory only when this bit is set. Master operation can be halted by writing a `0' to this bit. All state information is lost when a `0' is written; Master mode operation cannot be stopped and then resumed. If this bit is reset while bus master operation is still active and the drive has not yet finished its data transfer, the bus master command is said to be aborted and data transfered from the drive maybe discarded before being written to system memory. This bit is intended to be reset after the data transfer is completed, as indicated by either the Bus Master IDE active bit or the interrupt bit of the Bus master IDE status register for that IDE channel being set, or both. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 125 M1543 Preliminary Data Sheet b. Register Name: Bus Master IDE Status Register Address Offset : Primary Channel - Base address defined in 20H + 02H Secondary Channel - Base address defined in 20H + 0AH Base Address : F001H Default Value: 00H Attribute: Read/Write Size: 8 bits Bit Description D7 Simplex Only. (RO) This bit indicates whether or not both bus master channels (primary and secondary) can be operated at the same time. 0 : channels operate independently and can be used at a time. 1 : only one channel can be used at a time. D6 Drive 1 DMA capable. (R/W) This bit is set by device dependent code (BIOS or device driver) to indicate that drive 1 for this channel is capable of DMA transfers, and that the controller has been initialized for optimum performance. D5 Drive 0 DMA capable. (R/W) This bit is set by device dependent code (BIOS or device driver) to indicate that drive 0 for this channel is capable of DMA transfers, and that the controller has been initialized for optimum performance. D4-D3 Reserved. must be 0. D2 Interrupt. This bit is set by the rising edge of the IDE interrupt line. This bit is cleared when a `1' is written to it by software. Software can use this bit to determine if an IDE device has asserted its interrupt line. When this bit is one, all data transferred from the drive is visible in system memory. D1 Error. This bit is set when the controller encounters an error in transferring data to/from memory. The exact error condition is bus specific and can be determined in a bus specific manner. This bit is cleared when a `1' is written to it by software. D0 Bus Master IDE active. This bit is set when the Start bit is written to the Command Register. This bit is cleared when the last transfer for a region is performed, where EOT for that region is set in the region descriptor. It is also cleared when the Start bit is cleared in the Command register. When this bit is read as a zero, all data transferred from the drive during the previous bus master command is visible in system memory, unless the bus master command was aborted. c. Register Name : Descriptor Table Pointer Register Primary Channel - Base address defined in 20H + 04H Secondary Channel - Base address defined in 20H + 0CH Base address : F001H Default Value : 00000000H Attribute : Read/Write Size : 32 bits Bit Description D31-2 Base address of Descriptor table. Corresponds to A[31:2] D1-0 Reserved. 4. The Physical Region Descriptor Table Before the controller starts a master transfer it is given a pointer to a Physical Region Descriptor Table. This table contains some number of Physical Region Descriptor (PRD) which describe areas of memory that are involved in the data transfer. The PRD table must be aligned on a 4 bytes boundary and the table cannot cross a 64K boundary in memory. The EOT is "END of TABLE". It means that this transaction is ending. Dword0 Dword1 | byte 3 | byte 2 | byte 1 | byte 0 | Memory Region Physical Base Address[31:1] 0 EOT Reserved Byte Count[15:1] 0 Memory Region Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 126 4.3 ISA Compatible Registers Summary: The ISA compatible registers of the M1543 are summarized as below: I/O Address 0000h 0001h 0002h 0003h 0004h 0005h 0006h 0007h 0008h 0009h 000Ah 000Bh 000Ch 000Dh 000Eh 000Fh 0020h 0021h 0040h 0041h 0042h 0043h 0060h 0060h 0061h 0064h 0070h 0071h 0081h 0082h 0083h 0087h 0089h 008Ah 008Bh 008Fh Attribute Read/Write Read/Write Read/Write Read/Write Read/Write Read/Write Read/Write Read/Write Read/Write Write-only Write-only Write-only Write-only Write-only Write-only Read/Write Read/Write Read/Write Read/Write Read/Write Read/Write Read/Write Read_access Read/Write Read/Write Read/Write Write-only Read/Write Read/Write Read/Write Read/Write Read/Write Read/Write Read/Write Read/Write Read/Write Register Name DMA1 (slave) CH0 Base and Current Address DMA1 (slave) CH0 Base and Current Count DMA1 (slave) CH1 Base and Current Address DMA1 (slave) CH1 Base and Current Count DMA1 (slave) CH2 Base and Current Address DMA1 (slave) CH2 Base and Current Count DMA1 (slave) CH3 Base and Current Address DMA1 (slave) CH3 Base and Current Count DMA1 (slave) Status(R)/Command(W) DMA1 (slave) Write Request DMA1 (slave) Write Single Mask Bit DMA1 (slave) Write Mode DMA1 (slave) Clear Byte Pointer DMA1 (slave) Master Clear DMA1 (slave) Clear Mask DMA1 (slave) Read/Write All Mask Register Bits INT_1 (master) Control Register INT_1 (master) Mask Register Timer Counter - Channel 0 Count Timer Counter - Channel 1 Count Timer Counter - Channel 2 Count Timer Counter Command Mode Register Clear IRQ12 (for PS2), IRQ1 Latched Status Keyboard Data Buffer NMI and Speaker Status and Control Keyboard Status(R)/Command(W) CMOS RAM Address Port and NMI Mask Register CMOS Data Register Port DMA Channel 2 Page Register DMA Channel 3 Page Register DMA Channel 1 Page Register DMA Channel 0 Page Register DMA Channel 6 Page Register DMA Channel 7 Page Register DMA Channel 5 Page Register Refresh Address Register for Address 23 to 17 M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 127 The ISA compatible registers of M1543 (continued) I/O Address 00A0h 00A1h 00C0h 00C2h 00C4h 00C6h 00C8h 00CAh 00CCh 00CEh 00D0h 00D2h 00D4h 00D6h 00D8h 00DAh 00DCh 00DEh 00F0h 040Bh 0481h 0482h 0483h 0487h 0489h 048Ah 048Bh 04D0h 04D1h 04D6h Attribute Read/Write Read/Write Read/Write Read/Write Read/Write Read/Write Read/Write Read/Write Read/Write Read/Write Read/Write Write-only Write-only Write-only Write-only Write-only Write-only Read/Write Write-only Write only Read/Write Read/Write Read/Write Read/Write Read/Write Read/Write Read/Write Read/Write Read/Write Write only Register Name INT_2 (slave) Control Register INT_2 (slave) Mask Register DMA2 (master) CH0 Base and Current Address DMA2 (master) CH0 Base and Current Count DMA2 (master) CH1 Base and Current Address DMA2 (master) CH1 Base and Current Count DMA2 (master) CH2 Base and Current Address DMA2 (master) CH2 Base and Current Count DMA2 (master) CH3 Base and Current Address DMA2 (master) CH3 Base and Current Count DMA2 (master) Status(R)/Command(W) DMA2 (master) Write Request DMA2 (master) Write Single Mask Bit DMA2 (master) Write Mode DMA2 (master) Clear Byte Pointer DMA2 (master) Master Clear DMA2 (master) Clear Mask DMA2 (master) Read/Write All Mask Register Bits Coprocessor Error Ignored Register DMA1 Extended Mode Register DMA CH2 High Page Register DMA CH3 High Page Register DMA CH1 High Page Register DMA CH0 High Page Register DMA CH6 High Page Register DMA CH7 High Page Register DMA CH5 High Page Register INT_1 (master) Edge/Level Control INT_2 (slave) Edge/Level Control DMA2 Extended Mode Register M1543 Preliminary Data Sheet Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 128 M1543 Preliminary Data Sheet 4.4 Super I/O Register Overview Table 4-4-1 I/O Address Decode Address Range Base + (0-5) and + (7) Base + (0-3) Base + (0-7) Base + (0-3), + (400-402) Base + (0-7), + (400-402) Base + (0-7) Base + (0-7) 0x60, 0x64 Block Name Floppy Disk Parallel port SPP EPP ECP ECP+EPP+SPP Serial Port COM1 Serial Port COM2 KBC Logical Device 0 3 Function 4 IR support 5 IR support 7 4.4.1 Configuration Description and Power Management Features 4.4.1.1 Configuration Port This configuration is based on the typical Plug-and-Play architecture and allows the BIOS to assign resources at POST. To assign M1543 with Built-in Super I/O a configuration key, <0x51, 0x23> must be written to CONFIG PORT to enter the CONFIGURE mode. Then follow the Plug-andPlay procedure to configure each device. A configuration key = < 0xBB > must be written to CONFIG PORT to exit the CONFIGURE mode and enter the RUN mode. After a hard reset or Power on reset, the M1543 with Builtin Super I/O is in the RUN mode with all logical devices disable except KBC. The hardware setting pins control the enable of the KBC after the hard reset. Then the normal configure procedure is also suitable for KBC. All logical devices may be configured through 2 standard Configuration I/O Ports ( INDEX and DATA ) by placing the M1543 with Built-in Super I/O into Configuration Mode. The BIOS uses these configuration ports to initialize the logical devices at POST. The INDEX and DATA ports are only valid when the M1543 with Built-in Super I/O is in Configuration Mode. A hardware setting pin CFG_PORT is latched to select the CFG_PORT as 3F0 or 370. Port Name CONFIG PORT INDEX PORT DATA PORT CFG_PORT=1 0x3F0 0x3F0 0x3F1 CFG_PORT=0 0x370 0x370 0x371 Type W W R/W Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 129 Programming Example ;------------------------------------; Enter Configuration mode, ;------------------------------------MOV DX,3F0H MOV AX,051H CLI OUT DX,AL MOV AX,023H OUT DX,AL ;----------------------------------------------------; Program register 0x60 of Logic Device 4 ;----------------------------------------------------MOV DX,3F0H MOV AL,07H OUT DX,AL ; Point to Device select register MOV DX,3F1H MOV AL,04H OUT DX,AL ; Point to Device 4 MOV DX,3F0H MOV AL,060H OUT DX,AL ; Point to register 60H MOV DX,3F1H MOV AL,02H OUT DX,AL ; Update content of register 60H ;------------------------------;Exit Configuration Mode ;------------------------------MOV DX,3F0H MOV AL,0BBH OUT DX,AL Note: The selected logic device number will keep its old value until the next new one is written. CHIP LEVEL REGISTERS Index name Hard reset, Soft reset default values Index 0x02h 0x00, 0x00 Bit 7-1 Reserved Bit 0 1 : Soft reset the configuration registers. This bit is automatically cleared after write. This register is write only. M1543 Preliminary Data Sheet Index 0x07h Bit 7-4 Bit 3-0 0x00, 0x00 Read as 0. Select the current logic device. This allows the access to each logical device's registers. Index 0x20h 0x43, 0x43 ALi defined device identification. Read only. Index 0x21h 0x15, 0x15 ALi defined device identification. Read only. Index 0x22h Bit 7-6 Bit 5 Bit 4 Bit 3 Bit 2-1 Bit 0 0x00, 0x00 Read as 0. Direct powerdown UART2 (Note 3) 0 : disable 1 : enable Direct powerdown UART1 (Note 3) 0 : disable 1 : enable Direct powerdown Parallel Port (Note 3) 0 : disable 1 : enable read as 0. Direct powerdown FDC (Note 3) 0 : disable 1 : enable Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 130 Index 0x23h Bit 7-6 Bit 5 Bit 4 Bit 3 Bit 2-0 0x00, N/A read as 0 Auto powerdown UART2. 0 : disable 1 : enable Auto powerdown UART1. 0 : disable 1 : enable Auto powerdown Parallel Port. 0 : disable 1 : enable read as 0. Index 0x2Dh Bit 7-0 0x20, N/A Reserved. Index 0x2Eh Bit 7-0 0x20, N/A Reserved. LOGICAL DEVICE 0 REGISTERS (FDC) Index 0x30h 0x00, 0x00 Bit 7-1 read as 0. Bit 0 FDC (Note 4) 0 : disable 1 : enable Index 0x60h Bit 7-2 Bit 1-0 0x03, 0x03 read as 0. The higher address of the FDC I/O base address. M1543 Preliminary Data Sheet Index 0x61h Bit 7-3 Bit 2-0 0xF0, 0xF0 The lower address of the FDC's I/O base address. set to 0. Index 0x70h Bit 7-4 Bit 3-0 0x06, 0x06 read as 0. Select IRQ channel used by FDC. 0000 : None 0001 : IRQ1 0010 : N/A 0011 : IRQ3 0100 : IRQ4 0101 : IRQ5 0110 : IRQ6 0111 : IRQ7 1000 : N/A 1001 : IRQ9 1010 : IRQ10 1011 : IRQ11 1100 : IRQ12 1101 : N/A 1110 : IRQ14 1111 : IRQ15 Index 0x74h Bit 7-3 Bit 2-0 0x02, 0x02 read as 0. Select DMA channel used by FDC 000 : DMA0 001 : DMA1 010 : DMA2 011 : DMA3 100 : None Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 131 Index 0xF0h Bit 7-5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Index 0xF1h Bit 7-6 Bit 5-4 Bit 3-2 Bit 1-0 0x08, N/A read as 0. 0 : No swap. 1 : Swap Drive 0 and Drive 1 0 : PS2 mode 1 : AT mode read as 0. 0 : Burst DMA mode. 1 : Non-burst DMA mode 0 : Normal mode 1 : Enhanced OS2 mode 0x00, N/A Boot Floppy. 00 : FDD 0 01 : FDD 1 10 : FDD 2 11 : FDD 3 Media ID[1-0] polarity. 0 : normal 1 : inverted Density Select. 0x : Normal 10 : force to 1 11 : force to 0 External Floppy Select. 0x : internal FDC 10 : external FDC 11 : Drive A internal, Drive B external Index 0xF2h Bit 7-6 Bit 5-4 Bit 3-2 Bit 1-0 0xFF, N/A Floppy Drive D type Floppy Drive C type Floppy Drive B type. Floppy Drive A type. M1543 Preliminary Data Sheet Index 0xF4h 0x00, N/A Bit 2, 7-5 read as 0. Bit 4-3 Bit 1-0 Data Rate Table Select (refer to Table 3-3). DRVDEN[1-0] signal definition (refer to Table 3-4). LOGICAL DEVICE 3 REGISTERS (Parallel Port) Index 0x30h 0x00, 0x00 Bit 7-1 read as 0. Bit 0 Activate Parallel Port. (Note 4) 0 : disable 1 : enable Index 0x60h 0x03, 0x03 Bit 7-2 read as 0. Bit 1-0 The higher address of the Parallel Port's I/O base address. Index 0x61h 0x78, 0x78 Bit 7-2 The lower address of the Parallel Port's I/O base address. Bit 1-0 set to 0. Note : An 8-byte boundary is required if EPP is available Index 0x70h 0x05, 0x05 Bit 7-4 Bit 3-0 Port. read as 0. Select IRQ channel used by Parallel 0000 : None 0001 : IRQ1 0010 : N/A 0011 : IRQ3 0100 : IRQ4 0101 : IRQ5 0110 : IRQ6 0111 : IRQ7 1000 : N/A 1001 : IRQ9 1010 : IRQ10 1011 : IRQ11 1100 : IRQ12 1101 : N/A 1110 : IRQ14 1111 : IRQ15 Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 132 Index 0x74h Bit 7-3 Bit 2-0 0x04, 0x04 read as 0. Select DMA channel used by Parallel Port. 000 : DMA0 001 : DMA1 010 : DMA2 011 : DMA3 100 : None Index 0xF0h Bit 7 Bit 6-3 Bit 2-0 0x0C, N/A read as 0. ECP FIFO threshold value. Default is 0001. EPP Compatible mode. 000 : PS2 001 : EPP 1.9 010 : ECP 011 : ECP+EPP1.9 100 : SPP (default) 101 : EPP 1.7 111 : ECP+EPP 1.7 Index 0xF1h Bit 7 Bit 6-3 Bit 2 Bit 1 Bit 0 0x05, N/A Output Type 0 : Open Drain 1 : Force Driving read as 0. PP operation clock. 0 : 24Mhz. 1 : 12Mhz EPP time-out interrupt. 0 : disable 1 : enable 0 : Non-burst DMA mode. 1 : Burst DMA transfer mode in ECP M1543 Preliminary Data Sheet LOGICAL DEVICE 4 REGISTERS (UART1) Index 0x30h 0x00, 0x00 Bit 7-1 Bit 0 read as 0. UART1 (Note 4) 0 : disable 1 : enable Index 0x60h Bit 7-2 Bit 1-0 0x03, 0x03 read as 0. The higher address of the UART1's I/O base address. Index 0x61h Bit 7-3 Bit 2-0 Index 0x70h Bit 7-4 Bit 3-0 Index 0xF0h Bit 7-3 Bit 2 Bit 1 Bit 0 0xF8, 0xF8 The lower address of the UART1's I/O base address. set to 0. 0x04, 0x04 read as 0. Select IRQ used by UART1. 0000 : None 0001 : IRQ1 0010 : N/A 0011 : IRQ3 0100 : IRQ4 0101 : IRQ5 0110 : IRQ6 0111 : IRQ7 1000 : N/A 1001 : IRQ9 1010 : IRQ10 1011 : IRQ11 1100 : IRQ12 1101 : N/A 1110 : IRQ14 1111 : IRQ15 0x00, N/A read as 0. 0 : Normal 1 : 8Mhz clock source for UART1 High speed mode 0 : disable 1 : enable MIDI support 0 : disable 1 : enable Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 133 Index 0xF1h Bit 7-5 Bit 4-3 Bit 2 Bit 1 Bit 0 0x02, N/A read as 0. IR mode. 00 : Normal 01 : IrDA 10 : ASK IR 11 : Normal 0 : Full duplex in IR 1 : Half duplex in IR IR transmit polarity. 0 : active high 1 : active low IR receive polarity. 0 : active high 1 : active low Index 0xF2h Bit 7-5 Bit 4-3 Bit 2 Bit 1 Bit 0 0x0C, N/A read as 0. IR half-duplex time-out time control 00: 41-bit time for TR, 39-bit time for RX 01: 42-bit time for TR, 39-bit time for RX 1x: 40-bit time for TR and RX IR half-duplex Rx-to-Tx time-out timer. 0 : disable 1 : enable IR half-duplex Tx-to-Rx time-out timer. 0 : disable 1 : enable Baud Rate output on RI1. 0 : disable 1 : enable M1543 Preliminary Data Sheet LOGICAL DEVICE 5 REGISTERS (UART2) Index 0x30h 0x00, 0x00 Bit 7-1 read as 0. Bit 0 UART2 (Note 4) 0 : disable 1 : enable Index 0x60h Bit 7-2 Bit 1-0 0x02, 0x02 read as 0. The higher address of the UART2's I/O base address. Index 0x61h Bit 7-3 Bit 2-0 0xF8, 0xF8 The lower address of the UART2's I/O base address. set to 0. Index 0x70h Bit 7-4 Bit 3-0 0x03, 0x03 read as 0. Select IRQ channel used by UART2. 0000 : None 0001 : IRQ1 0010 : N/A 0011 : IRQ3 0100 : IRQ4 0101 : IRQ5 0110 : IRQ6 0111 : IRQ7 1000 : N/A 1001 : IRQ9 1010 : IRQ10 1011 : IRQ11 1100 : IRQ12 1101 : N/A 1110 : IRQ14 1111 : IRQ15 Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 134 Index 0xF0h Bit 7-3 Bit 2 Bit 1 Bit 0 0x00, N/A read as 0. 1 : 8Mhz clock source for UART2 0 : Normal High speed mode 0 : disable 1 : enable MIDI support 0 : disable 1 : enable Index 0xF1h Bit 7, 5 Bit 6 Bit 4-3 Bit 2 Bit 1 Bit 0 Index 0xF2h Bit 7-5 Bit 4-3 Bit 2 Bit 1 Bit 0 0x02, N/A read as 0. IR input source. 0 : use SIN2 and SOUT2 1 : use IRRX2 and IRTX2 IR mode. 00 : Normal 01 : IrDA 10 : ASK IR 11 : Normal 1 : Half duplex in IR 0 : Full duplex in IR. IR transmit polarity. 0: active high 1: active low IR receive polarity. 0 : active high 1 : active low 0x0C, N/A read as 0. IR half-duplex time-out time control. 1x : 40-bit time for TR and RX 01 : 42-bit time for TR, 39-bit time for RX 00 : 41-bit time for TR, 39-bit time for RX. IR half-duplex Rx-to-Tx time-out timer 0 : disable 1 : enable IR half-duplex Tx-to-Rx time-out timer. 0 : disable 1 : enable Baud Rate output on RI2 0 : disable 1 : enable M1543 Preliminary Data Sheet LOGICAL DEVICE 7 REGISTERS (KEYBOARD) Index 0x30h 0x00, 0x00 Bit 7-1 read as 0. Bit 0 Keyboard controller. This is a hardware setting bit by RTS2J. (Note 4) 0 : disable 1 : enable Index 0x70h Bit 7-4 Bit 3-0 0x01, 0x01 read as 0. Select IRQ channel used by Keyboard. 0000 : None 0001 : IRQ1 0010 : N/A 0011 : IRQ3 0100 : IRQ4 0101 : IRQ5 0110 : IRQ6 0111 : IRQ7 1000 : N/A 1001 : IRQ9 1010 : IRQ10 1011 : IRQ11 1100 : IRQ12 1101 : N/A 1110 : IRQ14 1111 : IRQ15 Index 0x72h Bit 7-4 Bit 3-0 Mouse. 0x00, 0x00 read as 0. Select IRQ channel used by PS/2 0000 : None 0001 : IRQ1 0010 : N/A 0011 : IRQ3 0100 : IRQ4 0101 : IRQ5 0110 : IRQ6 0111 : IRQ7 1000 : N/A 1001 : IRQ9 1010 : IRQ10 1011 : IRQ11 1100 : IRQ12 1101 : N/A 1110 : IRQ14 1111 : IRQ15 Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 135 Index 0xF0h Bit 7,5-4 Bit 6 keyboard Bit 2-0 N/A, N/A read as 0. Read only. Indicates the type of 0 : PS2. 1 : AT read as 0. M1543 Preliminary Data Sheet Table 4-4-2 M1543 with Super I/O Hardware Setting Configuration Pin Name RTS1J 0 1 RTS2J 0 1 DTR2J 0 1 Function CFG_PORT 0x370 0x3F0 KBC_EN disable enable PS2_ATJ (KBC) AT mode PS2 mode Table 4-4-3 Drive Option 1 and 2 Data Rate KB/sec 1000 500 300 250 1000 500 500 250 Register Settings (3F7) Drate Sel 1 Drate Sel 0 1 1 0 0 0 1 1 0 1 1 0 0 0 1 1 0 FDC 0xF4[4:3]* Drate Opt1 Drate Opt0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 Densel (1) 1 1 0 0 1 1 0 0 Note: *Drive Table 00 = Regular drives and 2.88MB 01 = 3-mode drive Table 4-4-4 Drvden Output Mapping for Drive Type Table 0xF4 [1:0] Drvden Signal Definition DT1 DT0 DRVDEN1 DENSEL 0 0 DRATE0 Densel 1 0 DRATE0 DRATE1 0 1 DRATE0 nDensel 1 1 DRATE1 DRATE0 4.4.1.2 Power Management Features The M1543 with Built-In Super I/O contains power management features that makes it ideal for design of green personal computers. 4.4.1.3 Part Power Management This section deals with the power management of the chip. This part shows how powerdown modes and wake up modes are activated. 4.4.1.3.1 Powerdown Modes of FDC The FDC is powered down in two ways: direct powerdown and automatic powerdown. Direct powerdown results in immediate powerdown of the part without regard to the current state of the part. Automatic powerdown results when certain conditions become true within the part. A. Direct Powerdown Direct powerdown is conducted via the powerdown bit in the DSR register (bit 6) or FDC_PWD bit in 0X22. Programming this bit high will powerdown M1543 with Built-in Super I/O after the part is internally reset. All current status is lost if this type of powerdown mode is used. The part can exit powerdown from this mode via any hardware or software reset. This type of powerdown will override the automatic powerdown. If the part is in automatic powerdown when the DSR powerdown is issued, then all the previous status of the part will be lost, and the M1543 with Built-in Super I/O will be reset to its default values. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 136 B. Auto Powerdown Automatic powerdown is conducted via a "Set Powerdown Mode" command. There are four conditions required before the part will enter powerdown. All these conditions must be true for the part to initiate the powerdown sequence. These conditions are listed as follows : 1. The motor enable pins ME[0:3] must be inactive, 2. The part must be idle; this is indicated by MSR = 80H and INT = 0 (INT may be high even if MSR = 80H due to polling interrupt), 3. The head unload timer must have expired, and 4. The auto powerdown timer must have timed out. The command can be used to enable powerdown by setting the AUTOPD bit in the command to high. The command also provides a capability of programming a minimum power-up time via the MIN DLY bit in the command. The minimum power-up time refers to a minimum amount of time the part will remain powered-up after being awakened or reset. An internal timer is initiated as soon as the auto powerdown command is enabled. The part is then powered down provided all the remaining conditions are met. Any software reset will reinitialize the timer. Changing of data rate extends the auto powerdown timer by up to 10 ms, but only if the data rate is changed during the countdown. Disabling the auto powerdown mode cancels the timers and holds the M1543 with Built-in Super I/O out of auto powerdown. 4.4.1.3.2 Powerdown Mode of UART and Printer UART1, UART2 and printer can enter direct powerdown or auto powerdown respectively by setting their relative powerdown bit in the 0X22 and 0x23. 4.4.1.3.3 WAKE UP MODES of FDC This section describes the conditions for awakening the FDC from both direct and automatic powerdown. Power conservation of battery life is the main reason power management is required. This means that the M1543 with Built-in Super I/O must be kept in powerdown state as long as possible and should be powered up as late as possible without compromising software transparency. To keep the part in powerdown mode as late as possible implies that the part should wake-up as fast as possible. However, some amount of time is required for the part to exit powerdown state and prepare the internal microcontroller to accept commands. Application software is very sensitive to such a delay and in order to maintain software transparency, the recovery time of the wake-up process must be carefully controlled by the system software. M1543 Preliminary Data Sheet A. Wake Up from DSR Powerdown If the M1543 with Built-In Super I/O enters powerdown through the DSR powerdown bit, it must be reset to exit. Any form of software or hardware reset will serve, although DSR is recommended. No other register access will awaken the part, including writing to the DOR's motor enable (ME[0:3]) bits. If DSR powerdown is used when the part is in auto powerdown, the DSR powerdown will override the auto powerdown. However, when the part is awakened by a software reset, the auto powerdown command (including the minimum delay timer) will again become effective as previously programmed. If the part is awakened via a hardware reset, the auto powerdown is disabled. After reset, the part will go through a normal sequence. The drive status will be initialized. The FIFO mode will be set to default mode on a hardware reset or on a software reset if the LOCK command is not blocking it. Finally, after a delay, the polling interrupt will be issued. B. Wake Up from Auto Powerdown If the part enters the powerdown state through the auto powerdown mode, then the part can be awakened by reset or by appropriate access to certain registers. If a hardware or software reset is used, then the part goes through the normal reset sequence. If the access is through the selected registers, then the M1543 with Built-in Super I/O resumes operation as though it was never in powerdown. Besides activating the RESET pin or one of the software reset bits in the DOR or DSR, the following register accesses will wake-up the part: 1. Enabling any one of the motor enable bits in the DOR register (reading the DOR does not wake-up the part) 2. A read from the MSR register 3. A read or write to the FIFO register Any of these actions will wake-up the part. Once awake, M1543 with Built-in Super I/O will initiate the auto powerdown time for 10 ms or 0.5 sec. (Depending on the MIN DLY bit the auto powerdown command). The part will powerdown again when all the powerdown conditions stated in the Auto Powerdown section are satisfied. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 137 M1543 Preliminary Data Sheet 4.4.2 Floppy Disk Controller 4.4.2.1 Register Overview The integrated FDC of the M1543 with Built-in Super I/O part is register- and hardware-level compatible with the industry standard 765A and 82077SL standards. Table 4-1 lists the I/O address map of the FDC controller. Table 4-2 is the summary of FDC register hardware reset. Table 4-4-5 FDC Controller I/O Address Map A2 A1 A0 R/W 0 0 0 R 0 0 1 R 0 1 0 R/W 0 1 1 R/W 1 0 0 R 1 0 0 W 1 0 1 R/W 1 1 0 - 1 1 1 R 1 1 1 W Register SRA (PS/2 mode only) SRB (PS/2 mode only) Digital Output Register DOR Tape Drive Register TDR Main Status Register MSR Data Rate Select Register DSR Data (First In First Out) FIFO Reserved Digital Inout Register DIR Configuration Control Register CCR * When this location is accessed, only bit 7 is driving, all other bits are held tristate. Table 4-4-6 Summary of FDC Register Hardware Reset and Powerdown State Register Map DOR(R/W) Bits State H/W Reset State 7 6 5 4 3 2 1 0 0 0 0 0 0 0 0 0 TDR(R/W) H/W Reset State _ _ _ _ _ _ 0 0 MSR(R) H/W Reset State 0 X X X X X X X DSR(W) H/W Reset State 0 0 0 0 0 0 1 0 DIR(R) H/W Reset State na _ _ _ _ _ _ _ CCR(W) H/W Reset State _ _ _ _ _ _ 1 0 SRA(R) H/W Reset State 0 na 0 na 0 na na 0 SRB(R) H/W Reset State 1 1 0 0 0 0 0 0 I/O Address 3F2 3F3 3F4 3F4 3F7 3F7 3F0 3F1 Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 138 4.4.2.2 Register Description This section describes the register bits for all the registers that are directly accessible to the CPU. 4.4.2.2.1 Status Register A (SRA) Address 3F0 Read only This register is read-only and monitors the state of the IRQ6 pin and several disk interface pins in PS/2 modes. The SRA can be accessed at any time when it is in PS/2 mode. In the PC/AT mode, the data bus pins D0-D7 are held in a high impedance state for a read of address 3F0. PS/2 mode Bit Name 7 Int Pending 6 DRV2J 5 STEP 4 TRK0J 3 HDSEL 2 INDXJ 1 WPJ 0 DIR Bit 7 Interrupt Pending : The state of the Floppy Disk Interrupt output (active high). Bit 6 DRV2J : DRV2 disk interface input pin, indicates that a second drive has been installed. Bit 5 Bit 4 (active Step : Step output disk interface output pin (active high) Track 0 : TRK0 disk interface input low) Bit 3 input. Head Select : HDSEL disk interface A logic "1" selects side 1 and a logic "0" selects side 0. Bit 2 Index : Index disk interface input (active low) Bit 1 Bit 0 Write Protect : Write protect disk interface input. A logic "0" indicates that the disk is write protected. Direction : The direction of head movement (active high). A logic "1" indicates inward direction a logic "0" outward. 4.4.2.2.2 Status Register B (SRB) M1543 Preliminary Data Sheet Address 3F1 Read only This register is read-only and monitors the state of several disk interface pins, in PS/2 modes. The SRB can be accessed at any time when in PS/2 mode. In the PC/AT mode, the data bus pins D0-D7 are held in a high impedance state for a read of address 3F1. PS/2 mode Bit Name 7 1 6 1 5 Drive Sel0 4 Wdata Toggle 3 Rdata Toggle 2 Wgate 1 MOTEN1 0 MOTEN0 Bit 7 Reserved : Always read as a logic "1" Bit 6 Reserved : Always read as a logic "1" Bit 5 the bit Drive Select 0 : Reflects the status of Drive Select bit 0 of DOR (address 3F2 0). This bit is cleared after a hardware reset, it is unaffected by a software reset. Bit 4 WDATA Write Data Toggle : This bit changes state at every inactive edge of the Bit 3 Read Data Toggle : Every inactive edge of the RDATA input causes this bit to change state. Bit 2 Write Gate : The WGATE disk interface output (active high) Bit 1 interface Motor Enable 1 : The MTR1 disk output pin. This bit is low after a hardware reset and unaffected by a software reset. Bit 0 interface Motor Enable 0 : The MTR0 disk output pin. This bit is low after a hardware reset and unaffected by a software reset. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 139 M1543 Preliminary Data Sheet 4.4.2.2.3 Digital Output Register (R/W) Address 3F2 R/W Table 4-4-7 Digital Output Register Description Bit Description 7 Motor Enable 3: This controls the Motor for drive 3, MTR3. The output is high when it is inactive, and low when it is active. This bit and DOR bit 6 provide information that control the MTR1 and 0 pins, respectively when bit 7 of the configuration register is set. 6 Motor Enable 2: Same function as D7 except for drive 2's motor. Note that this signal is not brought out to a pin. 5 Motor Enable 1: This bit controls the Motor for drive 1's motor. When this bit is 0, the MTR1 output is high. 4 Motor Enable 0: Same as D5 except for drive 0's motor. 3 DMA Enable: When set to a 1, this enables the DRQ, DAK, and INT pins. A zero disables these signals. 2 Reset Controller: This bit resets the controller when 0 and enables normal operation when it is a 1. It does not affect the drive control or data rate registers which are reset only by a hardware reset. 1-0 Drive Select: These two pins are encoded for the four drive select, and are gated with the motor enable lines, so that only one drive is selected when its motor enable is active. Table 4-4-8 Internal 4 Drive Decode - Normal Digital Output Register D7 D6 D5 D4 D1 D0 x x x 1 0 0 x x 1 x 0 1 x 1 x x 1 0 1x x x 1 1 00 0 0 x x Drive Select Outputs DS1J DS0J 1 0 0 1 1 1 1 1 1 1 Motor on Outputs MTR1J MTR0J /D5 /D4 /D5 /D4 /D5 /D4 /D5 /D4 /D5 /D4 Table 4-4-9 Internal 4 Drive Decode - Drives 0 and 1 Swapped Digital Output Register D7 D6 D5 D4 D1 D0 x x x 1 0 0 x x 1 x 0 1 x 1 x x 1 0 1x x x 1 1 00 0 0 x x Drive Select Outputs DS1J DS0J 0 1 1 0 1 1 1 1 1 1 Motor on Outputs MTR1J MTR0J /D4 /D5 /D4 /D5 /D4 /D5 /D4 /D5 /D4 /D5 Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 140 M1543 Preliminary Data Sheet 4.4.2.2.4 Tape Drive Register (TDR) Address 3F3 R/W This register is included for 82077 software compatibility. The robust data separator used in the M1543 with Built-in Super I/O does not require its characteristics modified for tape support. The contents of this register are not used internally to the device. The TDR is unaffected by a software reset. Bits 2-7 are tri-stated when read in this mode. Normal Floppy mode Normal mode. Register 3F3 contains only bits 0 and 1. When this register is read, bits 2- 7 are at high impedance. REG 3F3 DB7 Tri-state DB6 Tri-state DB5 DB4 DB3 DB2 Tri-state Tri-state Tri-state Tri-state DB1 tapesel 1 DB0 tapesel 0 Enhanced Floppy mode 2 (OS2) Register 3F3 for Enhanced Floppy mode 2 operation REG 3F3 DB7 DB6 DB5 DB4 Media ID1 Media ID0 Drive type ID DB3 DB2 Floppy boot drive DB1 DB0 tapesel1 tapesel0 Bit 7 Media ID 1 Read only (pin 1) see table next page Bit 6 Media ID 0 Read only (pin 100) see table next page Bits 5 and 4 Drive Type ID - These bits reflect two of the bits of FDC 0XF2 configuration register (see next page for more detail). Bits 3 and 2 Floppy Boot Drive. These bits show the value of FDC 0xF1 configuration register bits. Bits 1 and 0 - Tape Drive Select (R/W). Same as in Normal and Enhanced Floppy mode 1. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 141 M1543 Preliminary Data Sheet Media ID1 Drate1 pin 1 0 1 Media ID1 FDC 0xF1-db5=0 0 1 FDC 0xF1-db5=1 1 0 Media ID0 Drate0 pin 100 0 1 Media ID0 FDC 0xF1-db4=0 0 1 FDC 0xF1-db4=1 1 0 Drive type ID Digital Output Register bit 1 bit 0 0 0 0 1 1 0 1 1 Register 3F3 - drive type ID bit 5 bit 4 FDC FDC 0xF2 - bit 1 0xF2 - bit 0 FDC FDC 0xF2 - bit 3 0xF2 - bit 2 FDC FDC 0xF2 - bit 5 0xF2 - bit 4 FDC FDC 0xF2 - bit 7 0xF2 - bit 6 4.4.2.2.5 Main Status Register Address 3F4h Read only The read-only main status register indicates the current status of the disk controller. It is always available to be read. One of its functions is to control the flow of data to and from the data register. It also indicates when the disk controller is ready to send or receive data. It should be read before each byte is transferred to or from the data register except during a DMA transfer. No delay is required when reading this register after a data transfer. Main Status Register Description Bit Description 7 Request for Master: Indicates that the data register is ready to send or receive data from the CPU. This bit is cleared immediately after a byte transfer, and is set again as soon as the disk controller is ready for the next byte. 6 Data Direction: Indicates whether the controller is expecting a byte to be written to or read from the data register. 5 Non-DMA Execution: If this bit is set, the multiple byte data transfer (in the execution phase) must be monitored by the CPU either through interrupts, or software polling as described in the processor software interface section. 4 Command in Progress: Bit is set after the first byte of the command phase is written. Bit is cleared after the last byte of the result phase is read. If there is no result phase in a command, the bit is cleared after the last byte of the command phase is written. 3~0 Drives 3~0 Seeking: Set after the last byte of the command phase of a seek or recalibrate command is issued for drives 3~0, respectively. Cleared after reading the first byte in the result phase of the sense interrupt command for this drive. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 142 M1543 Preliminary Data Sheet 4.4.2.2.6 Data Rate Select Register (DSR) Address 3F4 Write only Table 4-4-11 Datarate Select Register Description Bit Description 7 S/W RESET behaves the same as DOR RESET except that this reset is self clearing. 6 POWERDOWN bit implements direct powerdown. Setting this bit high puts the FDC into the powerdown state regardless of the state of the part. The part is reset internally and then put into powerdown. No status is saved and any operation in progress is aborted. This powerdown mode does not turn off the internal oscillator. Any hardware or software reset will exit the M1543 with Built- in Super I/O from this powerdown state. 5 Reserved. 4~2 PRECOMP 0-2 adjusts the WRDATA output to the and disk to compensate for magnetic media phenomena known as bit shifting. The data patterns that are susceptible to bit shifting are well understood and the M1543 with Built-in Super I/O compensates the data pattern as it is written to the disk. The amount of precompensation depends upon the drive and media but in most cases the default value is acceptable. The M1543 with Built-in Super I/O starts precompensating the data pattern starting on Track 0. The CONFIGURE command can change the starting track for precompensation. Table below lists the precompensation values that can be selected and a table lists the default precompensation values. The default value is selected if the three bits are zeros. 1~0 DRATE 0-1 select one of the four data rates as listed in table next page. The default value is 250 Kbps upon a chip ("Hardware") reset. Other ("Software") Resets do not affect the DRATE or PRECOMP bits. Precompensation Delay Values PRECOMP 432 bits 111 001 010 011 100 101 110 000 Precompensation Delay-DISABLED 0.00ns 41.67ns 83.34ns 125.00ns 166.67ns 208.33ns 250.00ns DEFAULT Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 143 M1543 Preliminary Data Sheet Default Precompensation Delay Values Data Rate 1 Mbps 500 Kbps 300 Kbps 250 Kbps Precompensation Delay 41.67ns 125ns 125ns 125ns Data Rates DRATESEL 1 1 0 0 0 1 1 0 Data Rate MFM 1 Mbps 500 Kbps 300 Kbps 250 Kbps FM Illegal 250 Kbps 150 Kbps 125 Kbps 4.4.2.2.7 Data Register (R/W) Address 3F5 R/W This is the location through which all commands, data, and status flow between the CPU and the FDC. During the command phase, the CPU loads the controller's commands into this register based on the status register request for master and data direction bits. The result phase transfers the status registers and header information to the CPU in the same fashion. All command parameter information and disk data transfers go through the FIFO. The 16-byte FIFO has programmable threshold values. Data transfers are generated by the RQM and DIO bits in the Main Status Register. The FIFO defaults to an M5105 compatible mode after a "Hardware" reset (Reset via pin 1). "Software" Resets (Reset via DOR or DSR register) can also place the M1543 with Built-in Super I/O into M5105-compatible mode if the LOCK bit is set to "0". This maintains PC-AT hardware compatibility. The default values can be changed through the CONFIGURE command (enable full FIFO operation with threshold control). The advantage of the FIFO is that it allows the system a larger DMA latency without causing disk error. Table 4-13 gives several examples of the delays with a FIFO. The data is based upon the following formula: Threshold# * 1/DATA RATE * 8 - 1.5us = DELAY Table 4-4-15 FIFO Service Delay FIFO Threshold Examples 1 byte 2 bytes 8 bytes 15 bytes Maximum Delay to Servicing at 1 Mbps Data Rate 1 * 8us - 1.5us = 6.5us 2 * 8us - 1.5us = 14.5us 8 * 8us - 1.5us = 62.5us 15 * 8us - 1.5us = 118.5us FIFO Threshold Examples Rate 1 byte 2 bytes 8 bytes 15 bytes Maximum Delay to Servicing at 500 Mbps Data 1 * 16us - 1.5us = 14.5us 2 * 16us - 1.5us = 30.5us 8 * 16us - 1.5us = 126.5us 15 * 16us - 1.5us = 238.5us Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 144 At the start of a command, the FIFO action is always disabled and command parameters must be sent based upon the RQM and DIO bit settings. As the M1543 with Built-in Super I/O enters the command execution phase, it clears the FIFO of any data to ensure that invalid data is not transferred. An overrun or underrun will terminate the current command and the transfer of data. Disk writes will complete the current sector by generating a 00 pattern and valid CRC. 4.4.2.2.8 Configuration Control Register (CCR, PC-AT Modes) Address 3F7 Write only Table 4-4-16 Configuration Control Register Description Bit Description 7~2 Not used. 1, 0 Data Rate Select: These bits set the data- rate and write-precompensation values for the disk controller. After a hardware reset, these bits are set to 1, 0 (250 Kbps). (please refer to table 4-12) M1543 Preliminary Data Sheet 4.4.2.2.9 Digital Input Register (DIR, Read) Address 3F7 Read only Table 4-4-17a Digital Input Register Description (PC/AT mode) Bit Description 7 DSKCHG monitors the pin of the same name and reflects the opposite value seen on the disk cable, regardless of the value of /INVERT/. The DSKCHG bit is forced inactive along with all the inputs from the FDD. All the other bits remain tri- stated. 6~0 These bits are reserved for use by the hard disk controller, thus during a read of this register, these bits are in high impedance state. Table 4-4-17b Digital Input Register (PS/2 mode) Bit Description 7 DSKCHG monitors the pin of the same name and reflects the opposite value seen on the disk cable. 6~3 undefined, always read as logic "1". 2~1 Data rate select. These bits control the data rate of the floppy controller. These bits are unaffected by a software reset, and are set to 250 kbps after a hardware reset. 0 High density. This bit is low whenever the 500 kbps or 1 Mbps data rates are selected, and high when 250 kbps and 300 kbps are selected. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 145 M1543 Preliminary Data Sheet 4.4.2.3 Result Phase Status Registers The result phase of a command contains bytes that hold status information. The format of these bytes are described in the following sections. Do not confuse these register bytes with the main status register which is a read-only register that is always available. The result phase status registers are read from the data register only during the result phase. 4.4.2.3.1 Status Register 0 (ST0) Table 4-4-18 Status Register 0 Description Bit Description 7~6 Interrupt Code : 00 = Normal termination of command. 01 = Abnormal termination of command. Command was executed, but not successfully completed. 10 = Invalid command issue. Command issued was not recognized as a valid command. 11 = Ready changed state during the polling mode. 5 Seek End : This bit is set after a seek or recalibrate command is completed by the controller. Used during sense interrupt command. 4 Equipment Check : This bit is set after a recalibrate command track 0 signal failed to occur. Used during sense interrupt command. 3 Not Used : 0 2 Head Number : At end of execution phase. 1, 0 Drive Select : At end of execution phase. 00 = Drive 0 selected 01 = Drive 1 selected 10 = Drive 2 selected 11 = Drive 3 selected 4.4.2.3.2 Status Register 1 (ST1) Table 4-4-19 Status Register 1 Description Bit Description 7 End of Track : This bit is set when the controller has transferred the last byte of the last sector without the TC pin becoming active. The last sector is the end-of-track sector number programmed in the command phase. 6, 3 Not Used : 0 5 CRC Error : If this bit is set and bit 5 of ST2 is clear, then there was a CRC error in the address field of the correct sector. If bit 5 of ST2 is set, then there was a CRC error in the data field. 4 Over Run : This bit is set when the controller was not serviced by the CPU soon enough during a data transfer in the execution phase. Table 4-18 shows the time values. 2 No Data : This bit is set for any three possible problems : 1. Controller cannot find the sector specified in the command phase during the execution of a read, write, or scan command. An address mark was found even if it is not a blank disk. 2. Controller cannot read any address fields without a CRC error during read ID command. 3. Controller cannot find the starting sector during execution of read a track command. 1 Not Writable : Set if the write protect pin is active when a write or format command is issued. 0 Missing Address Mark : If this bit is set and bit 0 of ST2 is clear then the disk controller cannot detect any address field address mark after two disk revolutions. If bit 0 of ST2 is set, then the disk controller cannot detect the data field address mark. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 146 M1543 Preliminary Data Sheet Table 4-4-20 Maximum Time Allowed to Service an Interrupt or Acknowledge a DMA Request in Execution Phase Data Rate 125 250 500 125 Time to Service 62.0 us 30.0 us 14.0 us 6.0 us 4.4.2.3.3 Status Register 2 (ST2) Table 4-4-21 Status Register 2 Description Bit Description 7 Not Used : 0 6 Control Mark : This bit is set if the controller tried to read a sector which contained a deleted data address mark during execution of read-data or scan commands. Or, if a read-deleted-data command was executed, a regular address mark was detected. 5 CRC Error in Data Field : This bit is set if the controller detected a CRC error in the data field. Bit 5 of ST1 is also set. 4 Wrong Track : This bit is only set if the desired sector is not found, and the track number recorded on any sector of the current track is different from that stored in the track register. 3 Scan Equal Hit : This bit is only set if the equal condition is satisfied during any scan command. 2 Scan Not Satisfied : This bit is set if the controller cannot find a sector on the track number recorded on any sector on the track which meets the desired condition during scan command. 1 Bad Track : This bit is only set if the desired sector is not found, and the track number recorded on any sector on the track is different from that stored in the track register and the recorded track number is FF. 0 Missing Address Mark in Data Field : This bit is set if the controller cannot find the data field address mark during read/scan command. Bit 0 of ST1 is also set. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 147 M1543 Preliminary Data Sheet 4.4.2.3.4 Status Register 3 (ST3) Table 4-4-22 Status Register 3 Description Bit Description 7 Not Used : 0 6 Write Protect Status : This bit is the complement of the associated FDC interface pin for the drive selected in DCR. 5 Not Used : 1 4 Track 0 Status : This bit is the complement of the associated FDC interface pin for the drive selected in the DCR. 3 Not Used : 0 2 Head Select Status : This bit shows the status of the associated bit in the sense-drive-status command phase. 1, 0 Drive Selected : These bits show the status of the associated bits in the sense-drive-status command phase. These bits show the same status as ST0 bits 1, 0. 00 = Drive 0 selected 01 = Drive 1 selected 10 = Drive 2 selected 11 = Drive 3 selected 4.4.2.4 Processor Software Interface Bytes are transferred to and from the disk controller in different ways for the different phases in a command. 4.4.2.4.1 Command Sequence The disk controller can perform various disk transfers and head movement commands. Most commands involve three separate phases. Command Phase: The CPU writes a series of bytes to the data register. These bytes indicate the command desired and the particular parameters required for the command. All the bytes must be written in the order specified in the command description table. The execution phase starts immediately after the last byte in the command phase is written. Set the drive-control and datarate registers before performing the command phase. Execution Phase: The disk controller performs the desired command. Some commands require the CPU to read or write data to or from the data register during this phase. Reading data from a disk is an example of this. Result Phase: The CPU reads a series of bytes from the data register. These bytes indicate whether the command executed properly, and other pertinent information. The bytes are read in the order specified in the command description table. Initiate a new command by writing the command phase bytes after the last byte required from the result phase have been read. Update the drive control and data rate registers if the next command requires selecting a different drive or changing the data rate. If the command is the last command, then the software should deselect the drive. As a general rule, the operation of the controller core is independent of how the CPU updates the drive control and data rate registers. The software must ensure that manipulation of these registers is coordinated with the controller operation. During the command phase and the result phase, bytes are transferred to and from the data register. The main status register is monitored by the software to determine when a data transfer can take place. Bit 6 of the main status register must be clear and bit 7 must be set before a byte can be written to the data register during the command phase. Bits 6 and 7 of the main status register must both be set before a byte can be read from the data register during the result phase. There are three methods for transferring information during the execution phase. The DMA mode is used if the system has a DMA controller. This allows the CPU to do other things during the execution phase data transfer. If DMA is not used, an interrupt can be issued for each byte transferred during the execution phase. If interrupts are not used, the Main status register can be polled to indicate when a byte transfer is required. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 148 4.4.2.4.2 DMA Mode If the DMA mode is selected, a DMA request is generated in the execution phase when each byte is ready to be transferred. To enable DMA operations during the execution phase, the DMA mode bit in the specify command must be enabled, and the DMA signals must be enabled in the drive control register. The DMA controller responds to the DMA request with a DMA-acknowledge and a read- or write-strobe. The DMA request is cleared by the active edge of the DMA-acknowledge and a read-or write-strobe. The DMA request is cleared by the active edge of the DMA-acknowledge. After the last byte is transferred, an interrupt is generated, indicating the beginning of the result phase. During DMA operations, the chip select input must be held high. TC is asserted to terminate an operation. Due to internal gating, TC is only recognized when the -DAK input is low. 4.4.2.4.3 Interrupt Mode If the non-DMA mode is selected, an interrupt is generated in the execution phase when each byte is ready to be transferred. The main status register should be read to verify that the interrupt is for a data transfer. Bits 5 and 7 of the main status register is set. The interrupt is cleared when the byte is transferred to or from the data register. The CPU should transfer the byte within the time allotted by Table 4-18. If the byte is not transferred within the time allotted, an overrun error is indicated in the result phase when the command terminates at the end of the current sector. An interrupt is also generated after the last byte is transferred. This indicates the beginning of the result phase. Bits 7 and 6 of the main status register are set, and bit 5 is cleared. This interrupt is cleared by reading the first byte in the result phase. M1543 Preliminary Data Sheet 4.4.2.4.4 Software Polling If the non-DMA mode is selected and interrupts are not suitable, the CPU can poll the main status register during the execution phase to determine when a byte is ready to be transferred. In the non-DMA mode, bit 7 of the main status register reflects the state of the interrupt pin. Otherwise, the data transfer is similar to the interrupt mode described above. 4.4.2.5 Command Set Descriptions Commands can be written whenever the M1543 with Builtin Super I/O is in the command phase. Each command has a unique set of needed parameters and status results. The M1543 with Built-in Super I/O checks to see that the first byte is a valid command and, if valid, proceeds with the command. If it is valid, the next time the RQM bit in the MSR register is a "1", the DIO and CB bits will also be "1" indicating the FIFO must be read. A result byte of 80H will be read out of the FIFO, indicating an invalid command was issued. After reading the result byte from the FIFO, the M1543 with Built-in Super I/O returns to the command phase. Table 4-23 lists the summary of the command set. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 149 Table 4-4-23 M1543 with Built-in Super I/O FDC Command Set READ DATA Command Phase MT MFM SK 0 0 1 1 0 IPS 0 0 0 0 HD DR1 DR0 Track Number Drive Head Number Sector Number Bytes per Sector End of Track Sector Number Intersector Gap Number Data Length Execution Phase: Data read from disk drive is transferred to system via DMA or Non-DMA modes. Result Phase Status Register 0 Status Register 1 Status Register 2 Track Number Head Number Sector Number Bytes per Sector READ DELETED DATA Command Phase MT MFM SK 0 1 1 0 0 IPS 0 0 0 0 HD DR1 DR0 Track Number Drive Head Number Sector Number Bytes per Sector End of Track Sector Number Intersector Gap Number Data Length Execution Phase: Data read from disk drive is transferred to system via DMA or Non-DMA modes. Result Phase Status Register 0 Status Register 1 Status Register 2 Track Number Head Number Sector Number Bytes per Sector M1543 Preliminary Data Sheet READ A TRACK Command Phase 0 MFM 0 0 0 0 1 0 IPS 0 0 0 0 HD DR1 DR0 Track Number Drive Head Number Sector Number Bytes per Sector End of Track Sector Number Intersector Gap Number Data Length Execution Phase: Data read from disk drive is transferred to system via DMA or Non-DMA modes. Result Phase Status Register 0 Status Register 1 Status Register 2 Track Number Head Number Sector Number Bytes per Sector READ ID Command Phase 0 MFM 0 0 1 0 1 0 0 0 0 0 0 HD DR1 DR0 Execution Phase: Controller reads first ID Field header bytes it can find and reports these bytes to the system in the result bytes Result Phase Status Register 0 Status Register 1 Status Register 2 Track Number Head Number Sector Number Bytes per Sector Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 150 M1543 Preliminary Data Sheet M1543 FDC Command Set (continued) WRITE DATA Command Phase MT MFM 0 0 0 1 0 1 IPS 0 0 0 0 HD DR1 DR0 Track Number Drive Head Number Sector Number Bytes per Sector End of Track Sector Number Intersector Gap Number Data Length Execution Phase: Data is transferred form the system to the controller via DMA or Non-DMA modes and written to the disk. Result Phase Status Register 0 Status Register 1 Status Register 2 Track Number Head Number Sector Number Bytes per Sector WRITE DELETED DATA Command Phase MT MFM 0 0 1 0 0 1 IPS 0 0 0 0 HD DR1 DR0 Track Number Drive Head Number Sector Number Bytes per Sector End of Track Sector Number Intersector Gap Number Data Length Execution Phase: Data is transferred form the system to the controller via DMA or Non-DMA modes and written to the disk. Result Phase Status Register 0 Status Register 1 Status Register 2 Track Number Head Number Sector Number Bytes per Sector FORMAT A TRACK Command Phase 0 MFM 0 0 1 1 0 1 0 0 0 0 0 HD DR1 DR0 Bytes per Sector Sector per Track Format Gap Data Pattern Execution Phase: System transfers four ID bytes per sector to the floppy controller via DMA or Non-DMA modes. The entire track is formatted. The data block in the Data Field of each sector is filled with the data pattern byte Result Phase Status Register 0 Status Register 1 Status Register 2 Undefined Undefined Undefined Undefined SCAN EQUAL Command Phase MT MFM SK 1 0 0 0 1 IPS 0 0 0 0 HD DR1 DR0 Track Number Drive Head Number Sector Number Bytes per Sector End of Track Sector Number Intersector Gap Number Data Length Execution Phase: Data transfer from system to controller is compared to data read from disk Result Phase Status Register 0 Status Register 1 Status Register 2 Track Number Head Number Sector Number Bytes per Sector Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 151 M1543 Preliminary Data Sheet M1543 FDC Command Set (continued) SCAN HIGH OR EQUAL Command Phase MT MFM SK 1 1 1 0 1 IPS 0 0 0 0 HD DR1 DR0 Track Number Drive Head Number Sector Number Bytes per Sector End of Track Sector Number Intersector Gap Number Data Length Execution Phase: Data transfer from system to controller is compared to data read from disk Result Phase Status Register 0 Status Register 1 Status Register 2 Track Number Head Number Sector Number Bytes per Sector SCAN LOW OR EQUAL Command Phase MT MFM SK 1 0 0 0 1 IPS 0 0 0 0 HD DR1 DR0 Track Number Drive Head Number Sector Number Bytes per Sector End of Track Sector Number Intersector Gap Number Data Length Execution Phase: Data transfer from system to controller is compared to data read from disk Result Phase Status Register 0 Status Register 1 Status Register 2 Track Number Head Number Sector Number Bytes per Sector VERIFY Command Phase MT MFM SK 1 0 1 1 0 0 0 0 0 HD DR1 Track Number Drive Head Number Sector Number Bytes per Sector End of Track Sector Number Intersector Gap Number Data Length Execution Phase: Data is read from disk but not transferred to the system. Result Phase Status Register 0 Status Register 1 Status Register 2 Track Number Head Number Sector Number Bytes per Sector 0 DR0 DUMPREG Command Phase 0 0 0 0 1 1 1 0 Execution Phase: Internal registers read Result Phase Present Track Number on Drive 0 Present Track Number on Drive 1 Present Track Number on Drive 2 Present Track Number on Drive 3 Step Rate Time Motor Off Time Motor On Time DMA Sector per Track/End of Track LOCK 0 D3 D2 D1 D0 GAP WG 0 EIS FIFO POLL FIFOTHR PRETRK PERPENDICULAR MODE Command Phase 0 0 0 1 0 0 1 0 OW 0 D3 D2 D1 D0 GAP WG Execution Phase: Internal registers are written. No Result Phase. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 152 M1543 Preliminary Data Sheet M1543 FDC Command Set (continued) CONFIGURE Command Phase 0 0 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 EIS FIFO POLL FIFOTHR PRETRK Execution Phase: Internal registers are written. No Result Phase RECALIBRATE Command Phase 0 0 0 0 0 1 1 1 0 0 0 0 0 0 DR1 DR0 Execution Phase: Disk drive head is stepped out to Track 0. No Result Phase RELATIVE SEEK Command Phase 1 DIR 0 0 1 1 1 1 0 0 0 0 0 HD DR1 DR0 Relative Track Number Execution Phase: Disk drive head stepped in or out a programmable number of tracks. No Result Phase SEEK Command Phase 0 0 0 0 1 1 1 1 0 0 0 0 0 HD DR1 DR0 New Track Number Execution Phase: Disk drive head is stepped in or out to a desired track. No Result Phase SENSE DRIVE STATUS Command Phase 0 0 0 0 0 1 0 0 0 0 0 0 HD DR1 Execution Phase: Disk drive status information is detected and reported. Result Phase Status Register 3 0 DR0 SENSE INTERRUPT Command Phase 0 0 0 0 1 0 0 0 Execution Phase: Status of interrupt is reported Result Phase Status Register 0 Present Track Number SPECIFY Command Phase 0 0 0 0 0 0 1 1 Step Rate Time Motor Off Time Motor On Time DMA Execution Phase: Internal registers are written. No Result Phase POWERDOWN MODE Command Phase 0 0 0 1 0 1 1 0 0 0 0 0 0 DLY Execution Phase: Internal registers are written Result Phase 0 0 0 0 0 0 DLY 1 APD APD VERSION Command Phase 0 0 0 1 0 0 0 0 Result Phase 1 0 0 1 0 0 0 0 LOCK Command Phase LOCK 0 0 1 0 1 0 0 Execution Phase: Internal registers are written. Result Phase 0 0 0 LOCK 0 0 0 0 INVALID Command Phase Invalid Codes Result Phase Status Register 0 (80H) Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 153 M1543 Preliminary Data Sheet Table 4-4-24 Symbol AUTOPD C D0, D1 D DIR DS0, DS1 DTL EC EFIFO EIS EOT GAP Parameter Abbreviations Description Auto Powerdown Control. If this bit is 0, the automatic powerdown is disabled. If it is set to 1, the automatic powerdown is enabled. Cylinder Address. This is the currently selected cylinder address. Valid values are from 0 ~ 255. Drive Select 0 ~ 3. This bit designates which drives are perpendicular. A `1' indicates D2,D3 perpendicular drive. Data Pattern. This bit sets the pattern to be written in each sector data field during formatting. Direction Control. If this bit is 0, the head steps out from the spindle during a relative seek. If set to a 1, the head steps in toward the spindle. Disk Drive Select. DS1 DS0 0 0 drive 0 0 1 drive 1 1 0 drive 2 1 1 drive 3 Special Sector Size. When N is zero (00), DTL controls the number of bytes transferred in disk read/write commands. The sector size (N = 0) is set to 128. If the actual sector (on the diskette) is larger than DTL, the remainder of the actual sector is read but not passed to the host during read commands. During write commands, the remainder of the actual sector is written with all zero bytes. The CRC check code is calculated with the actual sector. When N is not zero, DTL has no meaning and should be set to FF HEX. Enable Count. When this bit is 1, the DTL parameter of the Verify command becomes SC (number of sectors per track). Enable FIFO. When this bit is 0, FIFO is enabled. A 1 puts the M1543 with Built-in Super I/O in the 8272Acompatible mode where the FIFO is disabled. Enable Implied Seek. When set, M1543 with Built-in Super I/O performs a seek operation before executing any read or write command that requires the C parameter in the command phase. A 0 disables the implied seek. End of Track. The final sector number of the current track. This bit alters Gap 2 length when using perpendicular mode. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 154 M1543 Preliminary Data Sheet Table 4-4-24 Symbol GPL H/HDS HLT Lock MFM MIN DLY MT N NCN ND OW PCN POLL PRETRK R RCN SC Parameter Abbreviations (continued) Description Gap Length. The gap 3 size. Gap 3 is the space between sectors excluding the VCO synchronization field. Head Address. Selected address: 0 or 1 (disk side 0 or 1) as encoded in the sector ID field. Head Load Time. The time interval that M1543 with Built-in Super I/O waits after loading the head and before initiating a read or write operation. Refer to the Specify command for actual delays. Lock defines whether EFIFO, FIFOTHR, and PRETRK parameters of the Configure command can be reset to their default values by a software reset. MFM/FM mode selector. 1 selects the double density (MFM) mode. 0 selects single-density (FM) mode. Minimum Power-Up time Control. This bit is active only if AUTO PD bit is enabled. Set this bit to 0 to assign a 10-ms minimum power-up time. Set this bit to 1 to assign a 0.5-second minimum power-up time. Multitrack selector. When set, this flag selects the multitrack operating mode. In this mode, the M1543 with Built-in Super I/O treats a complete cylinder, under head 0 and 1, as a single track. The M1543 with Built-in Super I/O operates as if this expanded track started at the first sector under head 0 and ended at the last sector under head 1. With this flag set, a multitrack read or write operation automatically continues to the first sector under head 1 when the M1543 with Built-in Super I/O finishes operating on the last sector under head 0. Sector Size Decode. This specifies the number of bytes in a sector. If this parameter is 00, the sector size is 128-bytes. The number of bytes transferred is determined by the DTL parameter. Otherwise, the sector size is (2 raised to the Nth power) times 128. All values up to 07 hex are allowable. 07h equals a sector size of 16K. N Sector Size 00 128 bytes 01 256 bytes 02 512 bytes 03 1024 bytes 04 2048 bytes 05 4096 bytes 06 8192 bytes 07 16 Kbytes New Cylinder Number. The desired cylinder number. Non-DMA Mode Flag. When set to 1, indicates that the M1543 with Built-in Super I/O is to operate in the non-DMA mode. In this mode, the host is interrupted for each data transfer. When set to 0, the M1543 with Built-in Super I/O operates in DMA mode, interfacing to a DMA controller by means of the DRQ and DACKJ signals. These bits, denoted by D0, D1, D2 and D3 of the Perpendicular Mode command can only be overwritten when the OW bit is set to 1. Present Cylinder Number. The current position of the head at the completion of the Sense Interrupt Status command. Polling Disabled. When set, the internal polling routine is disabled, when clear, polling is enabled. Precompensation Start Track Number. Programmable from track 00 to FFH. Sector Address. The sector number to be read or written. In multi-sector transfers, this parameter specifies the sector number of the first sector to be read or written. Relative Cylinder Number. Relative cylinder offset from present cylinder as used by the relative seek command. Number of Sectors. The number of sectors to be initialized by the Format command. The number of sectors to be verified during a Verify command when EC is set. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 155 M1543 Preliminary Data Sheet Table 4-4-24 Symbol SK SRT ST0, ST1 WGATE Parameter Abbreviations (continued) Description Skip flag. When set to 1, sectors containing a deleted data address mark will automatically be skipped during the execution of Read Data. If Read Deleted is executed, only sectors with a deleted address mark will be accessed. When set to 0, the sector is read or written the same as the read and write commands. Step Rate Interval. The time interval between step pulses issued by the M1543 with Built-in Super I/O. It is programmable from 0.5 ~ 8 milliseconds, in increments of 0.5 ms at the 1-Mbit data rate. Status register 0 ~ 3. Registers within the M1543 with Built-in Super I/O that store status information after a command has been executed. This status information is available to the host during the result phase after command execution. Write Gate. This bit alters the WE timing to allow for pre-erase loads in perpendicular drives. 4.4.2.5.1 Floppy Disk Controller (FDC) The FDC is a microcontroller PD765A software-compatible with additional hardware and software enhancements. It has logic circuitry required for an IBM PC, XT, AT, and 386/486 design. This controller has write-precompensation circuitry. Its shift register allows a fixed 125 ns early-late precompensation for all tracks at 500/300/250 Kb/s (83 ns for 1 mb/s), or a precompensation value that scales with the data rate, 250/208/125/83 ns for data rates of 250/300/500 Kb/s and 1.0 Mb/s, respectively. It includes address decode for the A0 ~ A2 address lines, the motor/drive-select register, data-rate register for selecting 250/300/500 kb/s and 1Mb/s, disk-change status, dual-speed spindle motor control, and DMA interrupt logic. It can be connected directly to the disk drive via internal high-drive outputs, and Schmitt inputs. It has 1.0 Mb/s data rate, extended track range to 4096, implied seek, working scan commands, motor control timing, both IBM formats as well as Sony 3.5-inch (ISO) formats, and other enhancements. 4.4.2.5.1.1 765A Compatible Micro-Engine This section describes the basic architectural features of the FDC. The core of the FDC is a PD765A-compatible microcoded engine. This engine consists of a sequencer, program ROM, and disk/misc registers. This core is clocked by either a 4-MHz, 4.8-MHz or 8-MHz clock selected in the data-rate register. All of these core including the data separator and write -precompensation logic comprise the glue logic used to implement a PC-XT, AT, or PS/2 floppy controller. The FDC takes commands and returns data and status through the data register in a byte serial fashion. Handshake for command/status I/O is provided via the main status register. All of the PD765A commands are supported, as are many other enhanced commands. The FDC controls the entire operation of the chip including: · coordination of data transfer with the CPU · control of the drive controls · performance of the algorithm associated with reading (for the data separator) and writing data to/from the disk. 4.4.2.5.1.2 PC/XT and PC/AT Logic Blocks This section describes the major functional blocks of the PC logic that have been integrated on the controller. DMA Enable Logic: This is a gating logic that disables the DMA lines and the Interrupt output, under the control of the DMA enable bit in the drive control register. When the DMA enable bit is 0 then the INT, and DRQ are held tristate, and -DAK is disabled. Drive Output Buffers/Input Receivers: The drive interface output pins can drive 150 ± 10% terminate resistors. This enables connection to a standard floppy drive. All drive interface inputs are TTL-compatible, Schmitt-trigger inputs with typically 250 mV of hysteresis. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 156 4.4.2.6 Command Description Table 4.4.2.6.1 Read Data The read data op-code is written to the data register followed by 8 bytes as specified in the command description table. After the last byte is written, the controller starts looking for the correct sector header. Once the controller is found, the controller sends data to the CPU. After one sector is finished, the sector number is incremented by one and this new sector is searched for. If MT (multi-track) is set, both sides of one track can be read. Starting on side zero, the sectors are read until the sector number specified by end of track sector number is reached. Then, side one is read by starting with sector number one. In DMA mode, the read-data command continues to read until the TC pin is set. This means that the DMA controller should be programmed to transfer the correct number of bytes. TC should be controlled by the CPU and be asserted when enough bytes are received. An alternative to these methods of stopping the read-data command is to program the end of track sector number as the last sector number that to be read. The controller stops reading the disk with an error message indicating that it tried to access a sector number beyond the end of the track. The number of data bytes per sector parameter is defined in Table 4-27. If this is set to zero, the data length parameter defines the number of bytes that the controller transfers to the CPU. If the data length specified is smaller than 128, the controller still reads the entire 128 byte sector and checks the CRC, though only the number of bytes specified by the data length parameter are transferred to the CPU. Data length parameter should not be set to zero. If the number of bytes per sector parameter is not zero, the data length parameter has no meaning and should be set to FFh. Table 4-4-25 Sector Size Selection Bytes/Sector Code 0 1 2 3 4 5 6 Number of Bytes in Data Field 128 256 512 1024 2048 4096 8192 M1543 Preliminary Data Sheet If the implied seek mode is enabled by both the mode command and the IPS bit in this command, a seek is performed to the track number specified in the command phase. The controller also waits for the head-settle-time if the implied seek is enabled. After all these conditions are met, the controller searches for the specified sector by comparing the track number, head number, sector number, and number of bytes/sector given in the command phase with the appropriate bytes read off the disk in the address fields. If the correct sector is found, but there is a CRC error in the address field, bit 5 of ST1 (CRC error) is set and an abnormal termination is indicated. If the correct sector is not found, bit 2 of ST1 (no data) is set and an abnormal termination is indicated. In addition to this, if any address field track number is FF, bit 1 of ST2 (bad track) is set or, if any address field track number is different from that specified in the command phase, bit 4 of ST2 (wrong track) is set. After finding the correct sector, the controller reads that data field. If a deleted data mark is found and the SK bit is set, the sector is not read, bit 6 of ST2 (control mark) is set, and the next sector is searched for. If a deleted data mark is found and the SK bit is not set, the sector is read, bit 6 of ST2 (control mark) is set, and the read terminates with a normal termination. If a CRC error is detected in the data field, bit 5 is set to both ST1 and ST2 (CRC error) and an abnormal termination is indicated. If no problems occur in the read command, the read continues from one sector to the next in logical order (not physical order) until either TC is set or an error occurs. If a disk has not been inserted into the disk drive, there are many opportunities for the controller to hang. It does this if it is waiting for a certain number of disk revolutions. If this occurs, the controller can be forced to abort the command by writing a byte to the data register. An interrupt is generated when an execution phase of the read data command terminates. Table 4-28 shows the values that are read back in the result phase. If an error occurs, the result bytes indicate the sector being read when the error occurred. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 157 M1543 Preliminary Data Sheet Table 4-4-26 Result Phase Termination Values with No Error Last MT 0 0 0 0 1 1 1 1 ID Information at Result Phase HD Sector Track Head Sector B/S 0 < EOT NC NC S+1 NC 0 = EOT T+1 NC 1 NC 1 < EOT NC NC S+1 NC 1 = EOT T+1 NC 1 NC 0 < EOT NC NC S+1 NC 0 = EOT NC 1 1 NC 1 < EOT NC NC S+1 NC 1 = EOT T+1 0 1 NC EOT = End of track sector number from command phase S = Sector number last operated on by controller NC = No change in value T = Track number programmed in command phase 4.4.2.6.2 Read-Deleted-Data This command is the same as the read-data command except for how it handles a deleted data mark. If a deleted data mark is read, the sector is read normally. If a regular data mark is found and the SK bit is set, the sector is not read, bit 6 of ST2 (control mark) is set, and the next sector is searched for. If a regular data mark is found and the SK bit is not set, the sector is read, bit 6 of ST2 (control mark) is set, and the read terminates with a normal termination. 4.4.2.6.3 Write-Data The write-data command is very similar to the read-data command except that data is transferred from the CPU to the disk rather than the other way around. If the controller detects the write-protect signal, bit 1 of ST1 (not writable) is set and an abnormal termination is indicated. 4.4.2.6.4 Write-Deleted-Data This command is the same as the write-data command except that a deleted-data mark is written at the beginning of the data field instead of the normal data mark. 4.4.2.6.5 Read a Track This command is similar to the read-data command except for the following: the controller starts at the index hole and reads the sectors in their physical order, not their logical order. Even though the controller reads sectors in their physical order, it still compares the header ID bytes with the data programmed in the command phase. The exception to this is the sector number. Internally, this is set to one, then incremented for each successive sector read. Whether or not the programmed address field matches that read from the disk, the sectors are still read in their physical order. If a header ID comparison fails, bit 2 of ST1 (No data) is set, but the operation continues. If there is a CRC error in the address or data field, the read also continues. The command terminates when it has read the number of sectors programmed in the EOT parameter. 4.4.2.6.6 Read ID This command causes the controller to read the first address field it finds. The result phase contains the header bytes that are read. There is no data transfer during the execution phase of this command. An interrupt is generated when the execution phase is completed. 4.4.2.6.7 Format-a-Track This command formats one track on the disk. After the index hole is detected, data patterns are written on the disk including all gaps, address marks, address fields, and data fields. The exact details of the number of bytes for each field is controlled by the parameters given in the format-atrack command, and the IAF (Index Address Field) bit in the mode command. The data field consists of the fill-byte specified in the command, repeated to fill the entire sector. To allow for floppy formatting, the CPU must supply the four address field bytes (track, head, sector, number of bytes) for each sector formatted during the execution phase. In other words, as the controller formats each sector, it requests four bytes through either DMA requests or interrupts. This allows for non-sequential sector interleaving. Table 4-29 shows some typical values for the programmable gap size. The format command terminates when the index hole is detected a second time, at which point an interrupt is generated. Only the first three status bytes in the result phase are significant. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 158 M1543 Preliminary Data Sheet Table 4-4-27A Gap Length for Various Sector Sizes and Disk Types Mode FM MFM FM MFM FM MFM Sector Size (Dec) Sector Code (Dec) EOT (Hex) Sector Gap (Hex) 8-inch Drives (360 RPM, 500 kb/s) 128 00 1A 07 256 01 0F 0E 512 02 08 1B 1024 03 04 47 2048 04 02 C8 4096 05 01 C8 256 01 0F 0E 512 02 0F 1B 1024 03 08 35 2048 04 04 99 4096 05 02 C8 8192 06 01 C8 5.25-inch Drives (300 RPM, 250 kb/s) 128 00 12 07 128 00 10 10 256 01 08 18 512 02 04 46 1024 03 02 C8 2048 04 01 C8 256 01 12 0A 256 01 10 20 512 02 08 2A 1024 03 04 80 2048 04 02 C8 4096 05 01 C8 3.5-inch Drives (300 RPM, 250 kb/s) 128 00 0F 07 256 01 09 0E 512 02 05 1B 256 01 0F 0E 512 02 09 1B 1024 03 05 35 Format* Gap (Hex) 1B 2A 3A 8A FF FF 36 54 74 FF FF FF 09 19 30 87 FF FF 0C 32 50 F0 FF FF 1B 2A 3A 36 54 74 Table 4-4-27B Format Table for PC-Compatible Diskette Media Media Type 360 K 1.2 M 720 M 1.44 M 2.88 M Sector Size (Dec) 512 512 512 512 512 Sector Code (Hex) 02 02 02 02 02 EOT (Hex) 09 0F 09 12 24 Sector Gap (Hex) 2A 1B 1B 1B 1b Format* Gap (Hex) 50 54 50 6C 54 * Format gap is the gap length used only for the format command. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 159 M1543 Preliminary Data Sheet Index pulse Gap0 Sync IAM Gap1 Sync AM T Perpendicular MFM 80 of FF 12 of 00 3 of F 50 of 4E 12 of R 00 3 of F A format C2* C A1* E C K H Se # C E c t Byt R A D or es C Gap2 Sync AM 41 of 12 of 4E 00 3 FB of or A1 F8 * Data C Gap3 R Prog GAP4 ram C mabl e IBM format Gap0 Sync IAM Gap1 Sync AM T 80 of 12 of 50 of 12 of R 4E MFM 00 3 of F 4E C2* C 00 3 of F A A1* E C K H Se # C E c t Byt R A D or es C Gap2 22 of 4E Sync 12 of 00 AM 3 FB of or A1 F8 * Index address field Address field Repeated for each sector Data C Gap3 R Prog GAP4 ram C mabl e Data field ISO format MFM Gap1 Sync AM T H S e # C Gap2 Sync AM 32 of 4E 12 of R 00 3 of F A A1* E C K E A D c t Byt o r es R C 22 of 4E 12 of 00 3 FB of or A1 F8 * Data C Gap3 R Prog GAP4 ram C mabl e Figure 4-4-1 IBM and ISO Formats Supported by the Format Command 4.4.2.6.8 Scan Commands The scan commands allow data read from the disk to be compared against data sent from the CPU. There are three scan commands to choose from: Scan equal Scan less than or equal Scan greater than or equal Disk data = CPU data Disk data < CPU data Disk data > CPU data Each sector is interpreted with the most significant byte first. If the wildcard mode is enabled from the mode command, an FFh from either the disk or CPU is used as a "don't care" byte that always matches equal. If each sector is read, the desired condition has not been met, and the next sector is read. The next sector is defined as the current sector number plus the sector step-size specified. The scan command continues until the scan condition has been met, or the end of track sector number has been reached, or if TC is asserted. If the SK bit is set, sectors with deleted data marks are ignored. If all sectors read are skipped, the command terminates with D3 of ST2 set (scan equal hit). Table 4-30 shows the result phase of the command. Table 4-4-28 Scan Command Termination Values Status Register Command Scan equal Scan low or equal Scan high or equal D2 D3 01 10 01 00 10 01 00 10 Conditions Disk = CPU Disk <> CPU Disk = CPU Disk < CPU Disk > CPU Disk = CPU Disk < CPU Disk > CPU 4.4.2.6.9 Seek There are two ways to move the disk drive head to the desired track number. The first method is to enable the implied seek mode. This way, each individual read or write command automatically moves the head to the track specified in the command. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 160 The second method is by using the seek command. During the execution phase of the seek command, the track number to seek for is compared with the present track number, and a step pulse is produced to move the head one track closer to the desired track number. This is repeated at the rate specified by the specify command until the head reaches the correct track. At this point, an interrupt is generated and a sense-interrupt command is required to clear the interrupt. During the execution phase of the seek command, the only indication via software that a seek command is in progress is bits 0~3 (drive busy) of the main status register. Bit 4 of the main status register (command in progress) is not set. While the internal micro-engine is capable of multiple seeks on two or more drives at the same time since the drives are selected via the drive-control register in software, software should ensure that only one drive performs the seek command at one time. No other command except the sense-interrupt command is issued while a seek command is in progress. If the extended track range mode is enabled, write a fourth byte in the command phase to indicate the four most significant bits of the desired track number. Otherwise, write only three bytes. 4.4.2.6.10 Relative Seek The Relative Seek command steps the selected drive in or out a given number of steps. This command will step the read/write head an incremental number of tracks from the current track number, contrasting to step it to the desired track number as Seek command. The Relative Seek parameters are defined as follows: DIR: Read/Write Head Step Direction Control 0=Step Head Out, 1=Step Head In RTN: Relative Track Number. This value will determine how many incremental tracks to step the head in or out from the current track number. 4.4.2.6.11 Recalibrate The recalibrate command is very similar to the seek command. It is used to step a drive head out to track zero. Step pulses are produced until the track zero signal from the drive becomes true. If the track zero signal does not go true before 77 step pulses are issued, an error is generated. If the extended track range mode is enabled, an error is not generated until 3,917 pulses are issued. Recalibrations on more than one drive at a time should not be issued for the same reason as explained in the seek command. No other command except the sense-interrupt command should be issued while a recalibrate command is in progress. M1543 Preliminary Data Sheet 4.4.2.6.11 Sense-Interrupt Status An interrupt is generated by the controller when any of the following conditions occur: 1. Upon entering the result phase of: a. Read-data command b. Read-deleted-data command c. Write-data command d. Write-deleted-data command e. Read-a-track command f. Read-ID command g. Format command h. Scan commands 2. During data transfers in the execution phase while in the non-DMA mode 3. Internal ready signal changes state (only occurs immediately after a hardware or software reset). 4. Seek or recalibrate command termination An interrupt generated for reasons 1 and 2 above occurs during normal command operations and are easily recognized by the CPU. During an execution phase in non-DMA mode, bit 5 (execution mode) in the MSR is set to 1. Upon entering result phase, this bit is set to 0. Reasons 1 and 2 do not require the sense interrupt status command. The interrupt is cleared by reading or writing information to the data register. Interrupts caused by reasons 3 and 4 are identified with the aid of the sense interrupt status command. This command resets the interrupt when the command byte is written. Table 4-31 shows how to identify the cause of the interrupt by using bits 5, 6 and 7 of ST0. Issuing a sense-interrupt status command without an interrupt pending is treated as an invalid command. If the extended track range mode is enabled, a third byte should be read in the result phase which indicates the four most significant bits of the present track number. Otherwise, only two bytes should be read. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 161 M1543 Preliminary Data Sheet 4.4.2.6.12 Specify The specify command sets the initial values for each of the three internal timers. Table 4-32 shows the timer programming values. The head-load and head-unload timers are artifacts of the UPD765A. These timers determine the delay from loading the head until a read or write command is started, and unloading the head sometime after the command was completed. Since the M1543 with Built-in Super I/O headload signal is now the software-controlled motor lines in the drive-control register, these timers only provide some delay from the initialization of a command until it is actually started. Similar to the DP8474, extend these timers setting the TMR bit in the mode command. The step-rate time defines the time interval between adjacent step pulses during a seek, implied-seek, or recalibrate command. The times stated in Table 4-32 are affected by the data rate. These values are for 500 kb/s MFM (250 Kb/s FM) and 1 Mb/s MFM (500 Kb/s FM). For 300 kb/s MFM data rate (150 Kb/s FM), these values, multiply by 1.6667, and for 250 Kb/s MFM (125 Kb/s FM) double these values. The choice of DMA or non-DMA operation is made by the non-DMA bit. When this bit is 1, the non-DMA mode is selected, and when this bit is 0, DMA mode is selected. This command does not generate an interrupt. Table 4-4-29 Status Register 0 Termination Codes Interrupt Code D7 D6 D5 1 1 0 0 0 1 0 1 1 Seek End Cause Internal ready went true Normal seek termination Abnormal seek termination Table 4-4-30 Step, Head, Load and Unload Timer Definitions (500 kb/s MFM) Timer Step Rate Head Unload Head Load Mode 1 Value (16 - N) N x 16 Nx2 Range 1~16 0~240 0~254 Mode 2 Value (16 - N) N x 512 N x 32 Range 1~16 0~7680 0~4064 Unit ms ms ms 4.4.2.6.13 Sense Drive Status This two-byte command obtains the status of a disk drive. Status register 3 is returned in the result phase and contains the drive status. This command does not generate an interrupt. 4.4.2.6.14 Verify The VERIFY command is used to verify the data stored on a disk. This command acts exactly like a READ DATA command except that no data is transferred to the host. Data is read from the disk and CRC is computed and checked against the previously stored value. 4.4.2.6.15 Version The Version command can be used to determine the floppy controller being used. The result phase uniquely identifies the floppy controller version. The FDC returns a value of 90h in order to be compatible with the 82077. For older version compatible with NEC765 controller a value of 80h (invalid command) will return. 4.4.2.6.16 Dumpreg The DUMPREG command is designed to support system run-time diagnostics and application software development and debug. The command returns important information regarding the status of many of the programmed field in the FDC. This can be used to verify the values initialized in the FDC. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 162 M1543 Preliminary Data Sheet 4.4.2.6.17 Configure The Configure command controls some operation modes of the controller. It should be issued during the initialization of the FDC after power up. These bits are set to their default values after a hardware reset. EIS: Enable implied seek. When EIS=1, the FDC will perform a SEEK operation before executing a read/write command. The default value is 0 (no implied seek). EFIFO: Enable FIFO. When EFIFO=1, the FIFO is disabled (NEC765A compatible mode). This means data is transferred on a byte by byte basis. The default value is 1 (FIFO disable). POLL: Disable Polling. When POLL=1, polling of the drives is disabled. POLL defaults to 0 (polling enable). When enabled, a single interrupt is generated after reset. FIFOTHR: The FIFO threshold in the execution phase of a read/write command. This is programmable from 1 to 16 bytes. FIFOTHR defaults to 00. A 00h selects one byte and 0Fh selects 16 bytes. PRETRK: Precompensation start track number. Programmable from track 0 to 255. PRETRK defaults to track 0. A 00h selects track 0 and a FFh selects track 255. 4.4.2.6.18 Powerdown Mode The Powerdown mode command allows the automatic power management. The use of the command can extend the battery life in portable PC applications. To enable auto powerdown the command may be issued during the BIOS power on self test (POST). DLY: Minimum powerup timer. This bit is active only if APD bit is enabled. Set this bit to 0 assigns a 10msec timer, and to 1 assigns a 0.5sec timer. The timer will be re-initialized after a command execution is finished (idle state) and start to countdown. When the timer is expired, the FDC will enter the powerdown state automatically. APD: Enable auto powerdown. When set to 1, the auto powerdown is enabled. Table 4-4 Effects of WG and GAP bits 4.4.2.6.19 Lock The Lock command allows the user full control of the FIFO parameters after a software reset. If the LOCK bit is set to 1, then the EFIFO, FIFOTHR and PRETRK bits in the Configure command are not affected by a software reset. After the command byte is written, the result byte must be read before continuing to the next command. 4.4.2.6.20 Invalid If an invalid command (illegal Opcode byte in the command phase) is received by the controller, the controller responds with ST0 in the Result Phase. The controller does not generate an interrupt during this condition. The system reads an 80h from ST0 indicating an invalid command was received. 4.4.2.6.21 Perpendicular Mode The Perpendicular Mode command is designed to support the Perpendicular Recording disk drives (4Mbytes unformatted capacity). The Perpendicular Mode command configures each of the four logical drives as a perpendicular or conventional disk drive. Configuration of the four logical disk drives is done via the D3-D0 bits, or with the GAP and WG control bits. This command should be issued during the initialization of the floppy controller. A 0 written to Dn sets drive n to conventional mode, and a 1 sets drive n to perpendicular mode. Also, the OW bit offers additional control. When OW=1, changing the values of D3-D0 is enabled. When OW=0, the internal values of D3-D0 are unaffected, regardless of what is written to D3-D0. The function of the Dn bits must also be qualified by setting both WG and GAP to 0. If WG and GAP are not set to 00, they override whatever is programmed in the Dn bits. Table 4-4 below indicates the operation of the FDC based on the values of GAP and WG. D3-D0 are unaffected by a software reset, but WG and GAP are both cleared to 0 after a software reset. A hardware reset resets all the bits to zero. GAP WG 0 0 0 1 1 0 1 1 Mode Conventional Perpendicular (500kbps) Reserved (Conventional) Perpendicular (1Mbps) GAP2 Length during Format 22 Bytes 22 Bytes Portion of GAP2 re-written by Write Data Command 0 Bytes 19 Bytes 22 Bytes 0 Bytes 41 Bytes 38 Bytes Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 163 M1543 Preliminary Data Sheet 4.4.2.6.22 Parallel Port FDC In this mode, the floppy disk control signals are available on the parallel port pins. When this mode is selected, the parallel port is not available. There are four modes of operation. These modes can be selected in configuration register 0xF1. 0xF1[1:0] 0 0 0 1 1 0 1 1 Parallel port function printer printer FDC(drive 0 or 1) FDC(drive 1) The FDC signals are multiplexed onto the Parallel port pins as shown in table below. Conn Pin no. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Chip pin no. 65 59 58 57 56 50 49 48 47 54 53 52 51 64 63 62 61 SPP Type FDC mode mode Pin direction STBJ I/O PD0 I/O PD1 I/O PD2 I/O PD3 I/O PD4 I/O PD5 I/O PD6 I/O PD7 I/O ACKJ I BUSY I PE I SLCT I AFDJ I/O ERRJ I INITJ I/O SLINJ I/O DS0J O INDEXJ I TRK0J I WPJ I RDATAJ I DSKCHG I J MTR0J O DS1J O MTR1J O WDATAJ O WGATEJ O DENSEL O HDSELJ O DIRJ O STEPJ O 4.4.3 Serial Port Registers Each of the serial ports function as data input/output interface in a microcomputer system. The system software determines the functional configuration of the UARTs via a tri-state 8-bit bi-directional data bus. The UARTs are completely independent and perform serial-to-parallel conversion on data characters received from a peripheral device or a modem, and parallel-to-serial conversion on data characters received from the CPU. The CPU can read the complete status of any of the UARTs at any time during the functional operation. Status information reported includes the type and condition of the transfer operations performed by the UART, as well as any error conditions (parity, overrun, framing, or break interrupt). The UARTs have programmable baud rate generator capable of dividing the timing reference clock input by divisors of 1 to (216 - 1), and producing a 16 X clock for driving the internal transmitter logic. Provisions are also included to use this 16 X clock to drive the receiver logic. The UARTs have complete modem-control capability and a processor-interrupt system. Interrupts can be programmed to the user's requirements, minimizing the computing required to handle communications link. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 164 M1543 Preliminary Data Sheet Table 4-4-31 lists the register addresses A2 ~ A0 (AEN is equal to zero). DLAB is the divisor latch access bit. Table 4-4-31 Serial Port Registers Register Address Base + 0h 0h 0h 1h 1h 2h 2h 3h 4h 5h 6h 7h Access (AEN=0) DLAB 0 0 1 1 0 - Abbreviation Register Name THR RBR DLL DLM IER IIR FCR LCR MCR LSR MSR SCR Transmit Holding Register Receiver Buffer Register Divisor Latch LSB Divisor Latch MSB Interrupt Enable Register Interrupt Identification Register FIFO Control Register Line Control Register Modem Control Register Line Status Register Modem Status Register Scratch Pad Register Access W R R/W R/W R/W R W R/W R/W R R R/W Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 165 M1543 Preliminary Data Sheet Table 4-4-32 Register Summary for Each UART Channel Bit no. 0 DLAB=0 0 DLAB=0 1 DLAB=0 2 2 3 4 5 6 7 0 DLAB=1 1 DLAB=1 Receiver Buffer Register (Read only) Transmitter Holding Register (Write only) Interrupt Enable Register Interrupt Ident. Register (Read only) FIFO control register (write only) Line control register 0 R Data bit 0 B (note 1) R T Data bit 0 H R I Enable E received R data available interrupt (ERDAI) I `0' if I interrupt R pending F FIFO C enable R L Word C length R select bit 0 (WLS0) 1 Data bit 1 Data bit 1 Enable Transmitter Holding Register Empty Interrupt (ETHREI) Interrupt ID bit RCVR FIFO Reset Word Length Select bit 1 (WLS1) Modem control register Line status register M Data C Terminal R Ready (DTR) L Data S ready R (DR) Request to send (RTS) Overrun error (OE) Modem status register Scratch register Divisor latch (LS) Divisor latch (MS) M Delta S Clear to R Send (DCTS) S Bit 0 C R D Bit 0 L L D Bit 8 L M Delta Data Set Ready (DDSR) Bit 1 Bit 1 Bit 9 2 Data bit 2 Data bit 2 Enable Receiver Line Status Interrupt (ELSI) Interrupt ID bit Xmit FIFO reset Number of Stop Bits (STB) Out 1 (Note 2) Parity Error (PE) Trailing Edge Ring Indicator (TERI) Bit 2 Bit 2 Bit 10 3 Data bit 3 Data bit 3 Enable Modem Status Interrupt (EMSI) 0 reserved Parity Enable (PEN) IRQ Enable (Note 2) Framing Error (FE) Delta Data Carrier Detect (DDCD) Bit 3 Bit 3 Bit 11 4 Data bit 4 Data bit 4 0 5 Data bit 5 Data bit 5 0 6 Data bit 6 Data bit 6 0 0 0 reserved reserved Even Parity Select (EPS) Loop Stick Parity 0 FIFO enable RCVR Trigger (LSB) Set Break 0 Break Interrupt (BI) Clear to Send (CTS) Transmit ter Holding Register (THRE) Data Set Ready (DSR) Transmit ter Empty (TEMT) Ring Indicator (RI) Bit 4 Bit 5 Bit 6 Bit 4 Bit 5 Bit 6 Bit 12 Bit 13 Bit 14 7 Data bit 7 Data bit 7 0 FIFO enable RCVR Trigger (MSB) Divisor Latch Access Bit (DLAB) 0 Error in RCVR FIFO Data Carrier Detect (DCD) Bit 7 Bit 7 Bit 15 Note 1. Bit 0 is the least significant bit. It is the first bit serially transmitted or received. 2. This bit no longer has a pin associated with it. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 166 M1543 Preliminary Data Sheet 4.4.3.1 Line Control Register (LCR) The system programmer uses this read/write register to specify the format of the asynchronous data communications exchange and set the divisor latch access bit. Table 4-4-33 LCR Registers Bit 7 6 in 5 4 3 2 0-1 Function Divisor latch access bit (DLAB). 1 = To access divisor latches of the baud generator or the alternate function register during a read or write operation. 0 = To access any other register. Break control bit. This bit causes a break condition to be transmitted to the receiving UART. 1 = Serial output (SOUT) is forced to the spacing logic 0 = Break is disabled This bit acts only on SOUT and has no effect on transmitter logic. This enables the CPU to alert a terminal a computer communications system. If the following sequence is followed, no erroneous or extraneous characters are transmitted because of the break: 1. Load all 0s, pad character in response to THRE. 2. Set break after the next THRE. 3. Wait for the transmitter to be idle, (TEMT = 1), and clear break when normal transmission has to be restored. During the break, the transmitter can be used as a character timer to accurately establish the break duration. Stick parity bit. When parity is enabled, it is used in conjunction with bit 4 to select, mark or space parity. 1 = Enable stick parity 0 = Disable stick parity Parity select bit. Selects either an odd or even number of 1's to be transmitted/checked in the data word bit and parity bit. 0 = Odd number of 1's (parity bit is a logic 1, mark parity) 1 = Even number of 1's (parity bit is a logic 0, space parity) Parity enable bit. The parity bit is used to produce an even or odd number of 1's when the data bits and the parity bit are summed. A parity bit is generated (transmit data) or checked (received data) between the last data bit and the stop bit of the serial data. 0 = Parity bit is not generated/checked 1 = Parity bit is generated/checked Specifies the number of stop bits transmitted with each serial character. The receiver checks the first stop bit only, regardless of the number of stop bits selected. 0 = 1 stop bit 1 = 1.5 stop bits, when a 5-bit data length is selected 1 = 2 stop bits, when 6-, 7-, or 8-bit data length is selected Specify the number of data bits (data length) in each transmitted or received serial character. The following are the bit values: 00 = 5 bits 01 = 6 bits 10 = 7 bits 11 = 8 bits Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 167 M1543 Preliminary Data Sheet 4.4.3.2 Programmable Baud Generator The UART contains two independently programmable baud generators. The 24-MHz crystal oscillator frequency input is divided by 13, resulting in a frequency of 1.8462MHz. This is sent to each baud generator and divided by the divisor for the associated UART. The output frequency of the baud generator is 16 X the baud rate, [divisor # = (frequency input) / (baud rate x 16)]. The output of each baud generator drives the transmitter and receiver sections of the associated serial channel. Two 8-bit latches per channel store the divisor in a 16-bit binary format. These divisor latches must be loaded during initialization to ensure proper operation of the baud generator. Upon loading either of the divisor latches, a 16-bit baud counter is loaded. Table 5-5 provides decimal divisors to use with crystal frequencies of 24-MHz. The oscillator input to the chip should always be 24-MHz to ensure that the FDC timing is accurate and that the UART divisors are compatible with existing software. Using a divisor of zero is not recommended. 4.4.3.3 Line Status Register (LSR) This register provides status information to the CPU concerning the data transfer. LSR is intended for read operations only. Writing to this register is not recommended as this operation is only used for factory testing. Table 4-4-34 Bit 7 6 5 4 3 2 1 0 Line Status Register Function Definition Function In FIFO off mode, this bit is set to 0. In FIFO, LSR7 is set when there is at least one parity error, framing error or break indication in the FIFO. LSR7 is cleared when the CPU read the LSR, if there are no subsequent errors in the FIFO. Transmitter empty (TEMT) indicator. It is set to 1 whenever the transmitter holding register (THR) and the transmitter shift register (TSR) are both empty. It is reset to 0 whenever either the THR or TSR contains a data character. Transmitter holding register empty (THRE) indicator. It indicates that the UART is ready to accept a new character for transmission. It also causes the UART to issue an interrupt to the CPU when the THRE interrupt enable is set high. It is set to 1 when a character is transferred from the THRE into TSR. It is reset to 0 whenever the CPU loads the THRE. Break interrupt (BI) indicator. It is set to 1 when the received data input is held in the spacing (logic 0) state for longer than a full word transmission time (that is, the total time of start bit data bits parity stop bits). It is reset whenever the CPU reads the contents of the LSR. Restarting after a break is received requires the SIN pin to be logical 1 for at least 1/2-bit time. Framing error (FE) indicator. This bit indicates that the received character did not have a valid stop bit. It is set to 1 whenever the stop bit following the last data bit or parity bit is a logic 0 (spacing level). The FE indicator is reset whenever the CPU reads the contents of LSR. The UART tries to resynchronize after a framing error. To do this, it assumes that the FE was due at the next start bit, so it samples this start bit twice and then takes in the data. Parity error (PE) indicator. This bit indicates that the received data character does not have the correct even or odd parity, as selected by the even-parity-select bit. It is set to 1 upon detection of a parity error and reset to 0 whenever the CPU reads the contents of the LSR. Overrun error (OE) indicator. It indicates that data in the RBR was not read by the CPU before the next data was transferred into the RBR, thereby destroying the previous data. It is set to 1 upon detection of an overrun condition and reset to 0 whenever the CPU reads the contents of the LSR. Receive data ready (DR) indicator. It is set to 1 whenever a complete incoming character has been received and transferred into the RBR. It is reset to 0 by reading the data in the RBR. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 168 M1543 Preliminary Data Sheet Table 4-4-35 Baud rates using 1.8462 MHz Clock (24 MHz/13) Desired baud rate 50 75 110 134.5 150 300 600 1200 1800 2000 2400 3600 4800 7200 9600 19200 38400 57600 115200 230400 460800 Divisor used to generate 16x clock 2304 1536 1047 857 768 384 192 96 64 58 48 32 24 16 12 6 3 2 1 32770 32769 C 0.001 - 0.004 - 0.005 - 0.030 0.16 0.16 0.16 0.16 Bit 1 in 0xF0 of LDN4 or 5 X X X X X X X X X X X X X X X X X X X 1 1 Note: C refers to % Error Difference between desired and actual, except where shown otherwise, is 0.2 %. 4.4.3.4 Interrupt Identification Register (IIR) This register keeps a record of the four interrupts prioritized by the UART to reduce software overhead during data transfers. The four levels of interrupt conditions in order of priority are: receiver-line-status, received-data-ready, transmitter-holding-register-empty, and modem-status. When the CPU accesses the IIR, the UART freezes all interrupts and indicates the highest priority pending interrupt to the CPU. While this CPU access is occurring, the UART records new interrupts, but does not change its current indication until the access is complete. Table 4-4-36 Interrupt Identification Register Bit Function 7~6 These two bits are set when the FIFO control register bit 0 equals 1. 5~4 Always '0'. 3 ln non-FIFO mode, this bit is a logic 0. In FIFO mode, this bit is set along with bit 2 when a timeout interrupt is pending. 2~1 Identifies the highest interrupt pending. 0 Used in an interrupt environment to indicate whether an interrupt condition is pending. If yes, the IIR contents may be used as a pointer to the appropriate interrupt service routine. 0 = Interrupt pending 1 = No interrupt pending Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 169 M1543 Preliminary Data Sheet Table 4-4-37 Interrupt Control Table FIFO mode only D3 0 0 0 1 0 0 Interrupt ID. register D2-D1-D0 0- 0- 1 1- 1- 0 1- 0- 0 1- 0- 0 0- 1- 0 0- 0- 0 Interrupt Set and Reset Functions Priority level highest Interrupt type None Receiver line status second second Received data available Character timeout Indication third fourth Transmitter holding register empty MODEM status Interrupt source Interrupt Reset control None Overrun error, Parity error, Framing error Break interrupt Received data available No characters have been removed from or input to the RCVR FIFO during the last 4 Char times and there is at least 1 char in it during this time. Transmitter Holding Register Empty Reading the line status register Read receiver buffer or the FIFO drops below the trigger level Reading the Receiver Buffer Register Reading the IIR Register or writing the transmitter holding register Delta Reading the Modem status register 4.4.3.5 Interrupt Enable Register (IER) This register enables the four types of UART interrupts. Each interrupt can individually activate the UR2IRQ or UR1IRQ output signal. Resetting bits 0 ~ 3 of the IER disables the interrupt system. Similarly, setting bits of this register to 1 enables the selected interrupts. Disabling an interrupt prevents it from being indicated as active in the IIR and from activating the interrupt output signal. All other system functions operate in their normal manner, including the setting of the line status and modem status registers. Table 4-4-38 Interrupt Enable Register Bit Function 0 Enables the received-data-available interrupt 1 Enables the THRE interrupt 2 Enables the receiver-line-status interrupt 3 Enables the modem-status interrupt 4-7 Always 0 4.4.3.6 FIFO Control Register This is a write only register at the same location as the IIR (the IIR is a read only register). This register is used to enable the FIFOs, clear the FIFOs, set the RCVR FIFO trigger level. Bit 0: Writing a 1 to FCR0 enables both the XMIT and RCVR FIFOs. Resetting FCR0 will clear all bytes in both FIFOs. When changing from FIFO mode to non-FIFO mode and vice versa, data is automatically cleared from the FIFOs. This bit must be a 1 when other FCR bits are written to or they will not be programmed. Bit 1: Writing a 1 to FCR1 clears all bytes in the RCVR FIFO and resets its counter logic to 0. The shift register is not cleared. The 1 that is written to this bit position is selfclearing. Bit 2: Writing a 1 to FCR2 clears all bytes in the XMIT FIFO and resets its counter logic to 0. The shift register is not cleared. The 1 that is written to this bit position is selfclearing. Bit 3: Reserved. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 170 Bit 4, 5: FCR4 to FCR5 are reserved for future use. Bit 6, 7: FCR6 and FCR7 are used to set the trigger level for the RCVR FIFO interrupt. M1543 Preliminary Data Sheet 7 6 RCVR FIFO Trigger Level (Bytes) 00 01 01 04 10 08 11 14 4.4.3.7 Modem Control Register (MCR) This register controls the interface with the modem or data set (or a peripheral emulating a modem). Table 4-4-39 Modem Control Register Bit Function 7~5 Set to logic 0. 4 This bit provides a local loopback feature for the UART diagnostic testing. When set to 1, the following occurs: the transmitter serial output (SOUT) is set to the marking (1) state; the receiver serial input (SIN) is disconnected; the output of the transmitter shift register is looped back into the receiver shift register input; the four modem control inputs (DSRJ, CTSJ, RIJ, and DCDJ) are disconnected; and the DTR, RTS, OUT1, IRQ enable bits in MCR respectively. The modem control output pins are forced to their high (inactive) states. In the diagnostic mode, data that is transmitted is immediately received. This feature allows the processor to verify the transmit-and-receive data paths of the serial port. In the diagnostic mode, UARTIRQs are not operational. The modem status interrupts are operational, but the interrupt's sources are the lower four bits of MCR instead of the four modem control inputs. Writing a 1 to any of them causes an interrupt. The interrupts are still controlled by the IER. 3 This bit enables the interrupt when set. In local loopback mode, this bit controls bit 7 of the MSR. 2 This is the OUT1 bit. It does not have an output pin associated with it. It can be written to and read by the CPU. In local loopback mode, this bit controls bit 6 of the MSR. 1 Controls the RTSJ output. In local loopback mode, this bit controls bit 4 of the MSR. 1 = DTRJ output is forced to 0 0 = DTRJ output is forced to 1 0 Controls the DTRJ output. In local loopback mode, this bit controls bit 5 of the MSR. 1 = DTRJ output is forced to 0 0 = DTRJ output is forced to 1 Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 171 M1543 Preliminary Data Sheet 4.4.3.8 Modem Status Register (MSR) This register gives the current state of the control lines from the modem to the CPU. The bits 3-0 are set to 1 whenever a control input from the modem changes state, and set to 0 when CPU reads the MSR. Table 4-4-40 Bit 7 6 5 4 3 2 1 0 Modem Status Register Function Complement of the DCDJ input. If bit 4 (loopback) of the MCR is set to 1, this bit is equivalent to IRQ enable in the MCR. Complement of the RIJ input. If bit 4 (loopback) of the MCR is set to 1, this bit is equivalent to OUT1 in the MCR. Complement of the DSRJ input. If bit 4 (loopback) of the MCR is set to 1, this bit is equivalent to DTR in the MCR. Complement of the CTSJ input. If bit 4 (loopback) of the MCR is set to 1, this bit is equivalent to RTS in the MCR. Delta data carrier detect (DDCD) indicator indicates that the DCDJ input to the chip has changed state. Whenever bit 0, 1, 2 or 3 is set to 1, a modem status interrupt is generated. Trailing edge of ring indicator (TERI) detector indicates that the RIJ input of the chip has changed from a low to high state. Delta data set ready (DDSR) indicator indicates that the DSRJ input to the chip has changed its state since the last time it was read by the CPU. Delta clear to send (DCTS) indicator indicates that CTSJ input to the chip has changed its state since the last time it was read by CPU. 4.4.3.9 Scratchpad Register (SCR) The 8-bit read/write register does not control the UART in any way. It is intended as a scratchpad register to be used by the programmer to hold data temporarily. 4.4.3.10 Infrared Interface The M1543 with Built-in Super I/O's infrared interface provides a two-way wireless communications port using infrared as a transmission medium. Two infrared implementations have been provided in the IrDA and Amplitude Shift Keyed IR. IrDA allows serial communication at baud rates up to 115K baud. Each word is sent serially beginning with a zero value start bit. A zero is signalled by sending a single infrared pulse at the beginning of the serial bit time. A one is signalled by sending no infrared pulse during the bit time. The Amplitude Shift Keyed infrared allows serial communication at baud rates up to 19.2K baud. Each word is sent serially beginning with a zero value start bit. A zero is signalled by sending a 500 KHz waveform for the duration of the serial bit time. A one is signalled by sending no transmission at bit time. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 172 M1543 Preliminary Data Sheet 4.4.5 Parallel Port 4.4.5.1 Parallel Port Interface The M1543 with Built-in Super I/O incorporates one IBM XT/AT compatible parallel port. The M1543 with Built-in Super I/O supports the optional PS/2 type bi-directional parallel port (SPP), the Enhanced Parallel Port (EPP) and the Extended Capabilities Port (ECP) parallel port modes. Please refer to the Configuration Description (Section 4) for information on disabling, powerdown, changing the base address of the parallel port, and selecting the mode of operation. The M1543 with Built-in Super I/O also incorporates a pad protective circuitry, which prevents possible damage to the parallel port due to printer power-up. The functionality of the Parallel Port is achieved through the use of eight addressable ports with their associated registers and control gating. The control and data ports are read/write by the CPU, the status port is read/write in the EPP mode. The address map of the Parallel Port is shown below : DATA PORT BASE ADDRESS + 00H STATUS PORT BASE ADDRESS + 01H CONTROL PORTBASE ADDRESS + 02H EPP ADDR PORT BASE ADDRESS + 03H EPP DATA PORT 0 BASE ADDRESS + 04H EPP DATA PORT 1 BASE ADDRESS + 05H EPP DATA PORT 2 BASE ADDRESS + 06H EPP DATA PORT 3 BASE ADDRESS + 07H The bit map of these registers : Table 4-4-41 Bit Mapped Registers Data Port D0 D1 PD0 PD1 Status Port TMOUT 0 Control Port STROBE AUTOFD EPP ADDR PD0 PD1 Port EPP DATA PD0 PD1 Port 0 EPP DATA PD0 PD1 Port 1 EPP DATA PD0 PD1 Port 2 EPP DATA PD0 PD1 Port 3 D2 PD2 OSLC INITJ PD2 PD2 PD2 PD2 PD2 D3 PD3 ERRJ SLC PD3 DP3 PD3 PD3 PD3 D4 PD4 SLCT IRQE PD4 PD4 PD4 PD4 PD4 D5 PD5 PE PCD PD5 PD5 PD5 PD5 PD5 Note 1: These registers are available in all modes. 2: These registers are only available in EPP mode. 3: For EPP mode, IOCHRDY must be connected to the ISA bus. D6 PD6 ACKJ 0 PD6 PD6 PD6 PD6 PD6 D7 PD7 BUSYJ Note 1 1 0 1 PD7 2, 3 PD7 2, 3 PD7 2, 3 PD7 2, 3 PD7 2, 3 Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 173 M1543 Preliminary Data Sheet Table 4-4-42 Parallel Port Connector HOST Connector STANDARD EPP ECP 1 StrobeJ WriteJ StrobeJ 2-9 PData <0:7> PData PData<0:7> <0:7> 10 AckJ Intr Ack 11 Busy WaitJ Busy,PeriphAck(3) 12 PE (NU) PError, nAckReverse(3) 13 Select (NU) Select 14 AutofdJ DSTRBJ AutoFd, HostAck(3) 15 ErrorJ (NU) Fault(1) PeriphRequest(3) 16 InitJ (NU) Init(1) ReverseRqst(3) 17 SelectinJ AstrbJ Selectin(1,3) (1) = compatible Mode (3) = High Speed Mode Note: For the cable interconnection required for ECP support and the Slave Connector pin numbers, please refer to the IEEE 1284 Extended Capabilities Port Protocol and ISA Standard, Rev. 1.09, Jan. 7, 1993. This document is available from Microsoft. 4.4.5.2 IBM XT/AT Compatible, Bi-Directional and EPP Modes DATA PORT Address Offset = 00H The Data Port is located at an offset of '00H' from the base address. The data register is cleared at initialization by RESET. During a WRITE operation, the Data Register latches the contents of the data bus with the rising edge of the IOWJ input. The contents of this register are buffered (non inverting) and output onto the PD0 -PD7 ports. During a READ operation in SPP mode, PD0 - PD7 ports are buffered (not latched) and output to the host CPU. STATUS PORT Address Offset = 01H The Status Port is located at an offset of '01H' from the base address. The contents of this register are latched for the duration of an IORJ read cycle. The bits of the Status Port are defined as follows: BIT 0 TMOUT - TIME OUT This bit is valid in EPP mode only and indicates that a 10 µsec time out has occurred on the EPP bus. A logic 0 means that no time out error has occurred; a logic 1 means that a time out error has been detected. This bit is cleared by a RESET. Writing a one to this bit clears the time out status bit. On a write, this bit is self clearing and does not require a write of a zero. Writing a zero to this bit has no effect. BIT 3 ERRJ - ERRORJ The level on the ERRORJ input is read by the CPU as bit 3 of the Printer Status Register. A logic 0 means an error has been detected; a logic 1 means no error has been detected. BIT 4 SLCT - PRINTER SELECTED STATUS The level on the SLCT input is read by the CPU as bit 4 of the Printer Status Register. A logic 1 means the printer is on line; a logic 0 means it is not selected. BIT 5 PE - PAPER END The level on the PE input is read by the CPU as bit 5 of the Printer Status Register. A logic 1 indicates a paper end; a logic 0 indicates the presence of paper. BIT 6 ACKJ - ACKNOWLEDGEJ The level on the ACKJ input is read by the CPU as bit 6 of the Printer Status Register. A logic 0 means that the Printer has received a character and can now accept another. A logic 1 means that it is still processing the last character or has not received the data. BIT 7 BUSYJ - BUSYJ The complement of the level on the BUSY input is read by the CPU as bit 7 of the Printer Status Register. A logic 0 in this bit means that the printer is busy and cannot accept a new character. A logic 1 means that it is ready to accept the next character. BITS 1, 2 - are not implemented as register bits. During a read of the Printer Status Register, these bits are at low level. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 174 CONTROL PORT Address Offset = 02H The Control Port is located at an offset of `02H' from the base address. The Control Register is initialized by the RESET input, bits 0 to 5 only being affected; bits 6 and 7 are hard wired low. BIT 0 STROBE - STROBE This bit is inverted and output onto the STROBEJ output. BIT 1 AUTOFD - AUTOFEED This bit is inverted and output onto the AUTOFDJ output. A logic 1 causes the printer to generate a line feed after each line is printed. A logic 0 means no autofeed. BIT 2 INITJ - INITIATE OUTPUTJ This bit is output onto the INITJ output without inversion. BIT 3 SLCTIN - PRINTER SELECT INPUT This bit is inverted and output onto the SLCTINJ output. A logic 1 on this bit selects the printer; a logic 0 means the printer is not selected. BIT 4 IRQE - INTERRUPT REQUEST ENABLE The interrupt request enable bit when set to a high level may be used to enable interrupt requests from the Parallel Port to the CPU. An interrupt request is generated on the IRQ port by a positive going ACKJ input. When the IRQE bit is programmed low the IRQ is disabled. BIT 5 PCD - PARALLEL CONTROL DIRECTION Parallel Control Direction is valid in extended mode only (PS2, EPP and ECP). In printer mode, the direction is always out regardless of the state of this bit. In bidirectional mode, a logic 0 means that the printer port is in output mode (write); a logic 1 means that the printer port is in input mode (read). Bits 6 and 7 during a read are a low level, and cannot be written. EPP ADDRESS PORT Address Offset = 03H The EPP Address Port is located at an offset of `03H' from the base address. The address register is cleared at initialization by RESET. During a WRITE operation, the contents of DB0-DB7 are buffered (non inverting) and output onto the PDO - PD7 ports, the leading edge of IOWJ causes an EPP Address WRITE cycle to be performed, the trailing edge of IOW latches the data for the duration of the EPP Write cycle. During a READ operation, PDO -PD7 ports are read, the leading edge of IOR causes an EPP ADDRESS READ cycle to be performed and the data output to the host CPU, the deassertion of ADDRSTB latches the Pdata for the duration of the IOR cycle. This register is only available in EPP mode. M1543 Preliminary Data Sheet EPP DATA PORT 0 Address Offset = 04H The EPP Data Port 0 is located at an offset of `04H' from the base address. The data register is cleared at initialization by RESET. During a WRITE operation, the contents of DB0-DB7 are buffered (non-inverting) and output onto the PD0 - PD7 ports, the leading edge of IOWJ causes an EPP DATA WRITE cycle to be performed, the trailing edge of IOW latches the data for the duration of the EPP write cycle. During a READ operation, PD0- PD7 ports are read, the leading edge of IOR causes an EPP READ cycle to be performed and the data output to the host CPU, the deassertion of DATASTB latches the Pdata for the duration of the IOR cycle. This register is only available in EPP mode. To maintain compatibility with Intel's 82360SL device that has 32-bit Host bus interface, four consecutive byte address locations (data port 0~4) are provided for transferring data. EPP DATA PORT 1 Address Offset = 05H The EPP Data Port 1 is located at an offset of `05H' from the base address. Please refer to EPP DATA PORT 0 for a description of operation. This register is only available in EPP mode. EPP DATA PORT 2 Address Offset = 06H The EPP Data Port 2 is located at an offset of `06H' from the base address. Please refer to EPP DATA PORT 0 for a description of operation. This register is only available in EPP mode. EPP DATA PORT 3 Address Offset = 07H The EPP Data Port 3 is located at an offset of `07H' from the base address. Please refer to EPP DATA PORT 0 for a description of operation. This register is only available in EPP mode. EPP Operation When the EPP mode is selected in the configuration register, the standard and bi-directional modes are also available. If no EPP Read, Write or Address cycle is currently executing, then the PDx bus is in the standard or bi-directional mode, and all output signals (STROBE, AUTOFD, INIT) are as set by the SPP Control Port and direction is controlled by PCD of the Control port. In EPP mode, the system timing is closely coupled to the EPP timing. For this reason, a watchdog timer is required to prevent system lockup. The timer indicates if more than 10 usec have elapsed from the start of the EPP cycle (IORJ or IOWJ asserted) WAITJ will be deasserted. If a time-out occurs, the current EPP cycle is aborted and the time-out condition is indicated in Status bit 0. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 175 EPP mode version 1.7 Timing SD7-0 WRJ RDJ WRITEJ DSTRBJ or ASTRBJ PD7-0 WAITJ IOCHRDY EPP WRITE CYCLE EPP READ CYCLE M1543 Preliminary Data Sheet The timing for a Write/Read EPP 1.7 operation is shown in timing diagram above The sequence of operation is: EPP 1.7 Data/Address Write 1. The host writes a byte to Data (Address) port. WRJ goes low to drive data to PD7-0. 2. The EPP pulls WRITEJ low to indicate it's a write cycle. 3. The EPP pulls DSTRBJ (ASTRBJ) low to signal that data is valid. 4. If WAITJ goes low during the cycle, IOCHRDY is pulled low. 5. When WAITJ goes high, the EPP pulls IOCHRDY high and then WRJ will go high 6. When WRJ goes high, it pulls WRITEJ & DSTRBJ(ASTRBJ) high, and then the EPP can change PD7-0 EPP 1.7 Data/Address Read 1. The host reads a byte from Data (Address) port. RDJ goes low to input data from PD7-0. 2. The EPP keeps WRITEJ high to indicate it's a read cycle. 3. The EPP pulls DSTRBJ (ASTRBJ) low to indicate that peripheral have to start sending data. 4. If WAITJ is low during the cycle, IOCHRDY is pulled low. 5. When WAITJ goes high, the EPP pulls IOCHRDY high and then RDJ will go high 6. When RDJ goes high, it pulls DSTRBJ(ASTRBJ) high, and then the peripheral can tri-state PD7-0 Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 176 EPP mode version 1.9 Timing SD7-0 WRJ RDJ WRITEJ DSTRBJ or ASTRBJ PD7-0 WAITJ IOCHRDY EPP WRITE CYCLE EPP READ CYCLE M1543 Preliminary Data Sheet The timing for a Write/Read EPP 1.9 operation is shown in timing diagram above The sequence of Write/Read operation is: EPP 1.9 Data/Address Write 1. The host writes a byte to Data (Address) port. WRJ goes low to drive data to PD7-0. 2. IOCHRDY goes low and waits for WAITJ to go low. 3. If WAITJ goes low or already low, the EPP pulls or keeps WRITEJ low to show being a write cycle. 4. The EPP pulls DSTRBJ (ASTRBJ) low to indicate that data is ready and waits for WAITJ to go high. 5. When WAITJ goes high, the EPP pulls IOCHRDY high, and then WRJ will go high to turn off this cycle. 6. When WRJ goes high, it pulls DSTRBJ (ASTRBJ) high, and then the EPP can change PD7-0 EPP 1.9 Data/Address Read 1. The host reads a byte from Data (Address) port. RDJ goes low to input data from PD7-0. 2. IOCHRDY goes low and waits for WAITJ to go low. 3. If WAITJ goes low or was already low, the EPP pulls or keeps WRITEJ high to indicate being a read cycle. 4. The EPP pulls DSTRBJ (ASTRBJ) low to signal the peripheral to start sending data and waits for WAITJ to go high. 5. When WAITJ goes high, the EPP pulls IOCHRDY high and then RDJ will go high 6. When RDJ goes high, it pulls DSTRBJ (ASTRBJ) high, and then the peripheral can tri-state PD7-0 Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 177 M1543 Preliminary Data Sheet Table 4-4-43- EPP Pin Descriptions EPP SIGNAL WRITEJ PD<0:7> INTR EPP NAME WriteJ Address/ Data Interrupt TYPE O I/O I WAIT WaitJ I DATASTB DATA O StrobeJ RESET ResetJ O ADDRSTB Address O StrobeJ PE Paper I End SLCT Printer I Select Status ERRJ Error I PDIR Parallel O Port Direction EPP DESCRIPTION This signal is active low. It denotes a write operation. Bi-directional EPP byte wide address and data bus. This signal is active high and positive edge triggered. (Pass through with no inversion, Same as SPP.) This signal is active low. It is driven inactive as a positive acknowledgment from the device that the transfer of data is completed. It is driven active as an indication that the device is ready for the next transfer. This signal is active low. It is used to denote data read or write operation. This signal is active low. When driven active, the EPP device is reset to its initial operational mode. This signal is active low. It is used to denote address read or write operation. Same as SPP mode. Same as SPP mode. Same as SPP mode. This output shows the direction of the data transfer on the parallel port bus. A low means an output /write condition and a high means an input/read condition. This signal is normally a low (output/write) uniess PCD of the control register is set or if an EPP read cycle is in progress. Note 1: SPP and EPP can use 1 common register. Note 2: WriteJ is the only EPP output that can be over-ridden by SPP control port during an EPP cycle. For correct EPP read cycles, PCD is required to be a low. 4.4.5.3 Extended Capabilities Parallel Port These terms may be considered synonymous: ECP provides a number of advantages, some of which are listed below. The individual features are explained in greater detail in the remainder of this section. · High performance half-duplex forward and reverse channel · Interlocked handshake, for fast reliable transfer · Optional single byte RLE compression for improved throughput (64:1) · Channel addressing for low-cost peripherals · Maintains link and data layer separation · Permits the use of active output drivers · Permits the use of adaptive signal timing · Peer-to-peer capability PWord A port word; equal in size to the width of the ISA interface. For this implementation, PWord is always 8 bits. 1 A high level. 0 A low level. · PeriphClk, AckJ · HostAck, AutoFdJ · PeriphAck, Busy · PeriphRequestJ, FaultJ · ReverseRequestJ, InitJ · AckReverseJ, PError · Xflag, Select · ECPMode, SelectinJ · HostClk, StrobeJ Vocabulary The following terms are used in this document: assert When a signal asserts it transitions to a "true" state, when a signal deasserts it transitions to a "false" state. forward Host to Peripheral communication. reverse Peripheral to Hose communication. Reference Document Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 178 M1543 Preliminary Data Sheet IEEE 1284 Extended Capabilities Port Protocol and ISA Interface Standard, Rev 1.09, Jan 7, 1993. This document is available from Microsoft. The bit map of the Extended Parallel Port registers is : data ecpAFifo dsr dcr cFifo ecpDFifo tFifo cnfgA cnfgB ecr D7 PD7 Addr/ RLE BusyJ 0 0 compress MODE D6 PD6 AckJ 0 0 intrValue D5 D4 D3 D2 D1 PD5 PD4 PD3 PD2 PD1 Address or RLE field PError Select FaultJ 0 0 Direction acklntEn Selectin InitJ autofd Parallel Port Data FIFO ECP Data FIFO Test FIFO 0 1 0 0 0 IRQ Channel DMA Channel ErrintrEn DmaEn Service full J Intr D0 PD0 0 strobe 0 empty Note 2 1 1 2 2 2 Note 1: These registers are available in all modes. Note 2: All FIFOs use one common 16 byte FIFO. ISA IMPLEMENTATION STANDARD This specification describes the standard ISA interface to the Extended Capabilities Port (ECP). All ISA devices supporting ECP must meet the requirements contained in this section or the port will not be supported by Microsoft. For a description of the ECP Protocol, please refer to the IEEE 1284 Extended Capabilities Port Protocol and ISA Interface Standard, Rev. 1.09, Jan. 7, 1993. This document is available from Microsoft. Description The port is software and hardware compatible with existing parallel ports so that it may be used as a standard LPT port if ECP is not required. The port is designed to be simple and requires a small number of gates to be implemented. It does not do any "protocol" negotiation, rather it provides an automatic high burst-bandwidth channel that supports DMA for ECP in both the forward and reverse directions. Small FIFOs are employed in both forward and reverse directions to smooth data flow and improve the maximum bandwidth requirement. The size of the FIFO is 16 bytes deep. The port supports an automatic handshake for the standard parallel port to improve compatibility mode transfer speed. The port also supports run length encoded (RLE) decompression (required) in hardware. Decompression is accomplished by counting identical bytes and transmitting an RLE byte that indicates how many times the next byte is to be repeated. Decompression simply intercepts the RLE byte and repeats the following byte the specified number of times. Hardware support for compression is optional. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 179 M1543 Preliminary Data Sheet Table 4-4-44 ECP Pin Descriptions Name StrobeJ Type O PData 7:0 I/O AckJ I PeriphAck I (Busy) PError I (Ack ReverseJ) Select I AutoFdJ O (HostAck) FaultJ I (Periph RequestJ) InitJ O SelectlnJ O Description During write operations, StrobeJ registers data or address into the slave on the asserting edge (handshakes with Busy). Contains address or data or RLE data. Indicates valid data driven by the peripheral when asserted. This signal handshakes with AutoFdJ in reverse. This signal deasserts to indicate that the peripheral can accept data. This signal handshakes with StrobeJ in the forward direction. In the reverse direction this signal indicates whether the data lines contain ECP command information or data. The peripheral uses this signal to flow control in the forward direction. It is an "interlocked" handshake with StrobeJ. PeriphAck also provides command information in the reverse direction. Used to acknowledge a change in the direction the transfer (asserted= forward). The peripheral drives this signal low to acknowledge ReverseRequestJ. It is an "interlocked" handshake with ReverseRequestJ. The host relies upon AckReverseJ to determine when it is permitted to drive the data bus. Indicates printer on line. Requests a byte of data from the peripheral when asserted, handshaking with AckJ in the reverse direction. This signal indicates whether the data lines contain ECP address or data, the host drives this signal to flow control in the reverse direction. It is an "interlocked" handshake with AckJ. HostAck also provides command information in the forward phase. Generates an error interrupt when asserted. This signal provides a mechanism or peer-to-peer communication. This signal is valid only in the forward direction. During ECP Mode the peripheral is permitted (but not required) to drive this pin low to request a reverse transfer. The request is merely a "hint" to the host; the host has ultimate control over the transfer direction. This signal would be typically used to generate an interrupt to the host CPU. Sets the transfer direction (asserted = reverse, deasserted = forward). This pin is driven low to place the channel in the reverse direction. The peripheral is only allowed to drive the bidirectional data bus while in ECP Mode and HostAck is low and SelectlnJ is high. Always deasserted in ECP mode. Register Definitions The register definitions are based on the standard IBM addresses for LPT. All of the standard printer ports are supported. The additional registers attach to an upper bit decode of the standard LPT port definition to avoid conflict with standard ISA devices. The port is equivalent to a generic parallel port interface and may be operated in that mode. The port registers vary depending on the mode field in the ECR. The table below lists these dependencies. Operation of the devices in modes other than those specified is undefined. Table 4-4-45 ECP Register Definitions NAME data ecpAFifo dsr dcr cFifo ecpDFifo tFifo cnfgA cnfgB ecr ADDRESS (Note 1) +000h R/W +000h R/W +001h R/W +002h R/W +400h R/W +400h R/W +400h R/W +400h R +401h R/W +402h R/W ECP MODES 000-001 011 All All 010 011 110 111 111 All FUNCTION Data Register ECP FIFO (Address) Status Register Control Register Parallel Port Data FIFO ECP FIFO (DATA) Test FIFO Configuration Register A Configuration Register B Extended Control Register Note 1: These addresses are added to the parallel port base address as selected by configuration register or jumpers. Note 2: All addresses are qualified with AEN. Refer to the AEN pin definition. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 180 M1543 Preliminary Data Sheet Table 4-4-46 Mode Descriptions Mode Description* 000 SPP mode 001 PS/2 Parallel Port mode 010 Parallel Port Data FIFO mode 011 ECP Parallel Port mode 100 EPP mode (If this option is enabled in the configuration registers) 101 (Reserved) 110 Test mode 111 Configuration mode * Refer to ECR Register Description DATA and ECPAFIFO PORT Address Offset = 00H Modes 000 and 001 (Data Port) The Data Port is located at an offset of '00H' from the base address. The data register is cleared at initialization by RESET. During a WRITE operation, the Data Register latches the contents of the data bus on the rising edge of the IOWJ input. The contents of this register are buffered (non inverting) and output onto the PD0 - PD7 ports. During a READ operation, PD0 PD7 ports are read and output to the host CPU. Mode 011 (ECP FIFO- Address/RLE) A data byte written to this address is placed in the FIFO and tagged as an ECP Address/RLE. The hardware at the ECP port transmits this byte to the peripheral automatically. The operation of this register is only defined for the forward direction (direction is 0). Refer to the ECP Parallel Port Forward Timing Diagram, located in the Timing Diagrams section of this data sheet. Device Status Register (DSR) Address Offset = 01H The Status Port is located at an offset of '01H' from the base address. Bits 0 - 2 are not implemented as register bits, during a read of the Printer Status Register these bits are a low level. The bits of the Status port are defined as follows: BIT 3 FaultJ The level on the Fault input is read by the CPU as bit 3 of the Device Status Register. BIT 4 Select The level on the Select input is read by the CPU as bit 4 of the Device Status Register. BIT 5 PError The level on the PError input is read by the CPU as bit 5 of the Device Status Register. Printer Status Register. BIT 6 AckJ The level on the AckJ input is read by the CPU as bit 6 of the Device Status Register. BIT 7 BusyJ The complement of the level on the BUSY input is read by the CPU as bit 7 of the Device Status Register. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 181 M1543 Preliminary Data Sheet Device Control Register (DCR) Address Offset = 02H The Control Register is located at an offset of '02H' from the base address. The Control Register is initialized to zero by the RESET input, bits 0 to 5 only being affected; bits 6 and 7 are hard wired low. BIT 0 STROBE - STROBE This bit is inverted and output onto the STROBEJ output. BIT 1 AUTOFD - AUTOFEED This bit is inverted and output onto the AUTOFDJ output. A logic 1 causes the printer to generate a line feed after each line is printed. A logic 0 means no autofeed. BIT 2 INITJ - INITIATE OUTPUT This bit is output onto the INITJ output without inversion. BIT 3 SELECTIN This bit is inverted and output onto the SLCTINJ output. A logic 1 on this bit selects the printer; a logic 0 means the printer is not selected. BIT 4 acklntEn - INTERRUPT REQUEST ENABLE The interrupt request enable bit when set to a high level may be used to enable interrupt requests from the Parallel Port to the CPU due to a low to high transition on the ACKJ input. Refer to the description of the interrupt under Operation, Interrupts. BIT 5 DIRECTION If mode = 000 or mode = 010, this bit has no effect and the direction is always out regardless of the state of this bit. In all other modes, direction is valid and a logic 0 means that the printer port is in output mode (write); a logic 1 means that the printer port is in input mode (read). Bits 6 and 7 during a read are a low level, and cannot be written. CFIFO (Parallel Port Data FIFO) Address Offset = 400h Mode = 010 Bytes written or DMAed from the system to this FIFO are transmitted by a hardware handshake to the peripheral using the standard parallel port protocol. Transfers to the FIFO are byte aligned. This mode is only defined for the forward direction. ECPDFIFO (ECP Data FIFO) Address Offset = 400h Mode = 011 Bytes written or DMAed from the system to this FIFO, when the direction bit is 0, are transmitted by a hardware handshake to the peripheral using the ECP parallel port protocol. Transfers to the FIFO are byte aligned. Data bytes from the peripheral are read under automatic hardware handshake from ECP into this FIFO when the direction bit is 1. Reads or DMAs from the FIFO will return bytes of ECP data to the system. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 182 M1543 Preliminary Data Sheet TFIFO (Test FIFO Mode) Address Offset =400H Mode = 110 Data bytes may be read, written or DMAed to or from the system to this FIFO in any direction. Data in the tFIFO will not be transmitted to the parallel port lines using a hardware protocol handshake. However, data in the tFIFO may be displayed on the parallel port data lines. The tFIFO will not stall when overwritten or underrun. If an attempt is made to write data to a full tFIFO, the new data is not accepted into the tFIFO. If an attempt is made to read data from an empty tFIFO, the last data byte is re-read again. The full and empty bits must always keep track of the correct FIFO state. The tFIFO will transfer data at the maximum ISA rate so that software may generate performance metrics. The FIFO size and interrupt threshold can be determined by writing bytes to the FIFO and checking the full and servicelntr bits. The writelntr Threshold can be determined by starting with a full tFIFO, setting the direction bit to 0 and emptying it a byte at a time until servicelntr is set. This may generate a spurious interrupt, but will indicate that the threshold has been reached. The readlntr Threshold can be determined by setting the direction bit to 1 and filling the empty tFIFO a byte at a time until servicelntr is set. This may generate a spurious interrupt, but will indicate that the threshold has been reached. Data bytes are always read from the head of tFIFO regardless of the value of the direction bit. For example if 44h, 33h, 22h is written to the FIFO, then reading the tFIFO will return 44h, 33h, 22h in the same order as was written. CNFGA (Configuration Register A) Address Offset = 400H Mode = 111 This register is a read only register. When read, 10H is returned. This indicates to the system that this is an 8-bit implementation. (Pword = 1 byte) CNFGB (Configuration Register B) Address Offset = 401H Mode = 111 BIT 7 compress This bit is read only. During a read, it is a low level. This means that this chip does not support hardware RLE compression. It does support hardware de-compression. BIT 6 IntrValue Returns the value on the ISA IRQ line to determine possible conflicts. BITS 5~0 : The ECP Parallel port Configuration register B must reflect the IRQ and DRQ selected by the Configuration registers IRQ selected 14 13 11 10 9 7 5 Others Config.Reg. B Bits 5: 3 110 101 100 011 010 001 111 000 DMA selected 3 2 1 Others Config.Reg. B Bits 2: 0 011 010 001 000 Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 183 M1543 Preliminary Data Sheet ECR (Extended Control Register) Address Offset = 402H Mode = all This register controls the extended ECP parallel port functions. BITS 7, 6, 5 These bits are Read/Write and select the Mode. BIT 4 ErrlntrEnJ Read/Write (Valid only in ECP Mode) 1: Disables the interrupt generated on the asserting edge of FaultJ. 0: Enables an interrupt pulse on the high to low edge of FaultJ. Note that an interrupt will be generated if Fault is asserted (interrupting) and this bit is written from a 1 to a 0. This prevents interrupts from being lost in the time between the read of the ecr and the write of the ecr. BIT 3 dmaEn Read/Write 1: Enables DMA (DMA starts when servicelntr is 0). 0: Disable DMA unconditionally. BIT 2 servicelntr Read/Write 1: Disable DMA and all of the service interrupts. 0: Enables one of the following 3 cases of interrupts. Once one of the 3 service interrupts has occurred, servicelntr bit shall be set to a 1 by hardware, it must be reset to 0 to re-enable the interrupts. Writing this bit to a 1 will not cause an interrupt. case dmaEn = 1: During DMA (this bit is set to a 1 when terminal count is reached). case dmaEn = 0 direction = 0: This bit shall be set to 1 whenever there are writelntr Threshold or more bytes free in the FIFO. case dmaEn = 0 direction = 1: This bit shall be set to 1 whenever there are readlntr Threshold or more valid bytes to be read from the FIFO. BIT 1 full Read only 1: The FIFO cannot accept another byte or the FIFO is completely full. 0: The FIFO has at least 1 free byte. BIT 0 empty Read only 1: The FIFO is completely empty. 0: The FIFO contains at least 1 byte of data. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 184 M1543 Preliminary Data Sheet Table 4-4-47 - Extended Control Register R/W Mode 000 Standard Parallel Port mode. In this mode the FIFO is reset and common collector drivers are used on the control lines (StrobeJ, AutoFdJ, InitJ and SelectlnJ). Setting the direction bit will not tri-state the output drivers in this mode. 001 PS/2 Parallel Port mode. Same as above except that direction may be used to tri-state the data lines and reading the data register returns the value on the data lines and not the value in the data register. All drivers have active pull-ups (push-pull). 010 Parallel Port FIFO mode. This is the same as 000 except that bytes are written or DMAed to the FIFO. FIFO data is automatically transmitted using the standard parallel port protocol. Note that this mode is only useful when direction is 0. All drivers have active pull-ups (push-pull). 011 ECP Parallel Port Mode. In the forward direction (direction is 0) bytes placed into the ecpDFifo and bytes written to the ecpAFifo are placed in a single FIFO and transmitted automatically to the peripheral using ECP Protocol. In the reverse direction (direction is 1) bytes are moved from the ECP parallel port and packed into bytes in the ecpDFifo. All drivers have active pull-ups (push-pull). 100 Selects EPP Mode: In this mode, EPP is selected if the EPP supported option is selected in configuration register CR4. All drivers have active pull-ups (push-pull) 101 Reserved 110 Test Mode. In this mode the FIFO may be written and read, but the data will not be transmitted on the parallel port. All drivers have active pull-ups (push-pull). 111 Configuration Mode. In this mode the confgA, confgB registers are accessible at 0x400 and 0x401. All drivers have active pull-ups (push-pull). OPERATION Mode Switching/Software Control Software will execute P1284 negotiation and all operation prior to a data transfer phase under programmed I/O control (mode 000 or 001) hardware provides an automatic control line handshake, moving data between the FIFO and the ECP port only in the data transfer phase (modes 011 or 010). Setting the mode to 011 or 010 will cause the hardware to initiate data transfer. If the port is in mode 000 or 001, it may switch to any other mode. If the port is not in mode 000 or 001, it can only be switched into mode 000 or 001. The direction can only be changed in mode 001. Once in an extended forward mode the software should wait for the FIFO to be empty before switching back to mode 000 or 001. In this case all control signals will be deasserted before the mode switch. In an ecp reverse mode the software waits for all the data to be read from the FIFO before changing back to mode 000 or 001. Since the automatic hardware ecp reverse handshake only cares about the state of the FIFO it may have acquired extra data which will be discarded. It may in fact be in the middle of a transfer when the mode is changed back to 000 or 001. In this case the port will deassert AutoFdJ independent of the state of the transfer. The design shall not cause glitches on the handshake signals if the software meets the constraints above. ECP Operation Prior to ECP operation the Host must negotiate on the parallel port to determine if the peripheral supports the ECP protocol. This is a somewhat complex negotiation carried out under program control in mode 000. After negotiation, it is necessary to initialize some of the port bits. The following are required: . Set Direction = 0, enabling the drivers. . Set strobe = 0, causing the StrobeJ signal to default to the deasserted state. . Set autoFd = 0, causing the AutoFdJ signal to default to the deasserted state. . Set mode = 011 (ECP Mode) Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 185 M1543 Preliminary Data Sheet ECP address/RLE bytes or data bytes may be sent automatically by writing the ECPAFIFO or ECPDFIFO respectively. Note that all FIFO data transfers are byte wide and byte aligned. Address/RLE transfers are byte-wide and only allowed in the forward direction. The host may switch directions by first switching to mode = 001, negotiating for the forward or reverse channel., setting direction to 1 or 0, then setting mode = 011. When direction is 1 the hardware shall handshake for each ECP read data byte and attempt to fill the FIFO. Bytes may then be read from the ecpDFifo as long as it is not empty. ECP transfers may also be accomplished (albeit slowly) by handshaking individual bytes under program control in mode = 001, or 000. Termination from ECP Mode Termination from ECP Mode is similar to the termination from Nibble/Byte Modes. The host is permitted to terminate from ECP Mode only in specific well-defined states. The termination can only be executed while the bus is in the forward direction. To terminate while the channel is in the reverse direction, it must first be changed into the forward direction. Command/Data ECP Mode supports two advanced features to improve the effectiveness of the protocol for some applications. The features are implemented by allowing the transfer of normal 8-bit data or 8-bit commands. When in the forward direction, normal data is transferred when HostAck is high and an 8-bit command is transferred when HostAck is low. The most significant bit of the command indicates whether it is a run-length count (for compression) or a channel address. When in the reverse direction, normal data is transferred when PeriphAck is high and an 8-bit command is transferred when PeriphAck is low. The most significant bit of the command is always zero. Reverse channel addresses are seldom used and may not be supported in hardware. Table 4-4-48 Forward Channel Commands (HostAck Low) Reverse Channel Commands (PeripAck Low) D7 D[6:0] 0 Run-Length Count (0-127) (mode 0011 0x00 only) 1 Channel Address (0-127) Data Compression The M1543 with Built-in Super I/O supports run length encoded (RLE) decompression in hardware and can transfer compressed data to a peripheral. Run length encoded (RLE) compression in hardware is not supported. To transfer compressed data in ECP mode, the compression count is written to the ecpAFifo and the data byte is written to the ecpDFifo. Compression is accomplished by counting identical bytes and transmitting an RLE byte that indicates how many times the next byte is to be repeated. Decompression simply intercepts the RLE byte and repeats the following byte the specified number of times. When a run-length count is received from a peripheral, the subsequent data byte is replicated the specified number of times. a run-length count of zero specifies that only one byte of data is represented by the next data byte, whereas a run-length count of 127 indicates that the next byte should be expanded to 128 bytes. To prevent data expansion, however, run-length counts of zero should be avoided. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 186 M1543 Preliminary Data Sheet Pin Definition The drivers for StrobeJ, AutoFdJ, InitJ and SelectlnJ are open-collector in mode 000 and are push-pull in all other modes. ISA Connections The interface can never stall causing the host to hang. The width of data transfers if strictly controlled on an I/O address basis per this specification. All FIFO-DMA transfers are byte wide, byte aligned and end on a byte boundary. (The PWord value can be obtained by reading Configuration Register A, cnfgA, described in the next section.) Single byte wide transfers are always possible with standard or PS/2 mode using program control of the control signals. Interrupts The interrupts are enabled by servicelntr in the ecr register. servicelntr = 1 Disables the DMA and all of the service interrupts. servicelntr = 0 Enables the selected interrupt condition. If the interrupting condition is valid, then the interrupt is generated immediately when this bit is changed from a 1 to a 0. This can occur during Programmed I/O if the number of bytes removed or added from/to the FIFO does not cross the threshold. The interrupt generated is ISA friendly in that it must pulse the interrupt line low, allowing for interrupt sharing. After a brief pulse low following the interrupt event, the interrupt line is tri-stated so that other interrupts may assert. An interrupt is generated when: 1. For DMA transfers: When servicelntr is 0, dmaEn is 1 and the DMA TC is received. 2. For Programmed I/O: a. When servicelntr is 0, dmaEn is 0, direction is 0 and there are writelntr Threshold or more free bytes in the FIFO. Also, an interrupt is generated when servicelntr is cleared to 0 whenever there are writelntr Threshold or more free bytes in the FIFO. b. (1) When servicelntr is 0, dmaEn is 0, direction is 1 and there are readlntr Threshold or more bytes in the FIFO. Also, an interrupt is generated when servicelntr is cleared to 0 whenever there are readlntr Threshold or more bytes in the FIFO. 3. When nErrlntrEn is 0 and nFault transitions from high to low or when nErrlntrEn is set from 1 to 0 and nFault is asserted. 4. When acklntEn is 1 and the nAck signal transitions from a low to a high. FIFO Operation The FIFO threshold is set in the chip configuration registers. All data transfers to or from the parallel port can proceed in DMA or programmed I/O (non-DMA) mode as indicated by the selected mode. The FIFO is used by selecting the Parallel Port FIFO mode or ECP Parallel Port Model. (FIFO test mode will be addressed separately.) After a reset, the FIFO is disabled. Each data byte is transferred by a Programmed I/O cycle or PDRQ depending on the selection of DMA or Programmed I/O mode. The following paragraphs detail the operation of the FIFO flow control. In these descriptions, ranges from 1 to 16. The parameter FIFOTHR, which the user programs, is one less and ranges from 0 to 15. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 187 M1543 Preliminary Data Sheet A low threshold value (i.e.2) results in longer periods of time between service requests, but requires faster servicing of the request for both read and write cases. The host must be very responsive to the service request. This is the desired case for use with a "fast" system. A high value of threshold (i.e. 12) is used with a "sluggish" system by affording a long latency period after a service request, but results in more frequent service requests. DMA Transfers DMA transfers are always to or from the ecpDFifo, tFifo or CFifo. DMA utilizes the standard PC DMA services. To use the DMA transfers, the host first sets up the direction and state as in the programmed I/O case. Then it programs the DMA controller in the host with the desired count and memory address. Lastly it sets dmaEn to 1 and servicelntr to 0. The ECP requests DMA transfers from the host by activating the PDRQ pin. The DMA will empty or fill the FIFO using the appropriate direction and mode. When the terminal count in the DMA controller is reached, an interrupt is generated and servicelntr is asserted, disabling DMA. In order to prevent possible blocking of refresh requests dReq shall not be asserted for more than 32 DMA cycles in a row. The FIFO is enabled directly by asserting PDACKJ and addresses need not be valid. PINTR is generated when a TC is received. PDRQ must not be asserted for more than 32 DMA cycles in a row. After the 32nd cycle, PDRQ must be kept unasserted until PDACKJ is deasserted for a minimum of 350 nsec. (Note : The only way to properly terminate DMA transfers is with a TC.) DMA may be disabled in the middle of a transfer by first disabling the host DMA controller. Then setting servicelntr to 1, followed by setting dmaEn to 0, and waiting for the FIFO to become empty or full. Restarting the DMA is accomplished by enabling DMA in the host, setting dmaEn to 1, followed by setting servicelntr to 0. DMA Mode - Transfers from the FIFO to the Host (Note: In the reverse mode, the peripheral may not continue to fill the FIFO if it turns out of data to transfer, even if the chip continues to request more data from the peripheral.) The ECP activates the PDRQ pin whenever there is data in the FIFO. The DMA controller must respond to the request by reading data from the FIFO. The ECP will deactivate the PDRQ pin when the FIFO becomes empty or when the TC becomes true (qualified by PDACKJ), indicating that no more data is required. PDRQ goes inactive after PDACKJ goes active for the last byte of a data transfer (or on the active edge of IORJ, on the last byte, if no edge is present on PDACKJ). If PDRQ goes inactive due to the FIFO going empty, then PDRQ is active again as soon as there is one byte in the FIFO. If PDRQ goes inactive due to the TC, then PDRQ is active again when there is one byte in the FIFO, and servicelntr has been re-enabled. (Note: A data underrun may occur if PDRQ is not removed in time to prevent an unwanted cycle.) Programmed I/O Mode or Non-DMA Mode The ECP or parallel port FIFOs may also be operated using interrupt driven programmed I/O. Software can determine the writelntrThreshold, readlntrThreshold, and FIFO depth by accessing the FIFO in Test Mode. Programmed I/O transfers are to the ecpDFifo at 400H and ecpAFifo at 000h or from the ecpDFifo located at 400H, or to/ from the tFifo at 400H to use the programmed I/O transfers, the host first sets up the direction and state, then sets dmaEn to 0 and servicelntr to 0. The ECP requests programmed I/O transfers from the host by activating the PINTR point. The programmed I/O will empty or fill the FIFO using the appropriate direction and mode. Note : A threshold of 16 is equivalent to a threshold of 15. These two cases are treated the same. Programmed I/O - Transfers from the FIFO to the Host In the reverse direction an interrupt occurs when servicelntr is 0 and readlntr Threshold bytes are available in the FIFO. If at this time the FIFO is full it can be emptied completely in a single burst, otherwise readlntr Threshold bytes may be read from the FIFO in a single burst. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 188 M1543 Preliminary Data Sheet Programmed I/O - Transfers from the Host to the FIFO In the forward direction, an interrupt occurs when servicelntr is 0 and there are writelntrThreshold or more bytes free in the FIFO. At this time if the FIFO is empty it can be filled with a single burst before the empty bit need to be re-read. Otherwis e it may be filled with writelntrThreshold bytes. The FIFO threshold value is selected via = Logic Device No. 3 <0xF0h bit6-3> 16 data bytes FIFO, if =0 The readIntr Threshold = { data bytes FIFO, if =1 to 15 For example, if the =4, then the serviceIntr is set whenever there are 4-16 bytes in the FIFO. The writeIntr Threshold = { 16 free bytes FIFO, if =0 free bytes FIFO, if =1 to 15 For example, if the =4, then the serviceIntr is set whenever there are 4-16 bytes free in the FIFO. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 189 M1543 Preliminary Data Sheet Section 5: Power Management Unit Programming Guide There are two important parts in Power Management Unit of M1543. They are Legacy Power Management Unit and Advanced Configuration and Power Interface Specification (abbreviated as ACPI). The details of both are listed below. 5.1 Legacy Power Management Unit A. Top View. B. Timers. C. Event Configuration. D. External Switches. E. Clock Control. F. General Purpose Input/Output. G. SMI control. H. Others. A. Top View. The Legacy Power Management Unit based on the default functions of M1533, gives minimum requirements for the desktop. It can be divided into several parts. When talking about the traditional power management, as it is familiar to every one, the SMI or SMM. It is the major method of how the BIOS communicates with the hardware. The SMI sources are all included in Configuration Space of offset 0x40h0x53h. ("offset 0xxxh" means the registers of Configuration Space in Section 5.1 of this document.) There are two idle timer timeout SMIs, one APM timer timeout SMIs, IO traps, external switches SMIs and general purpose switch SMIs. The configuration of all timers are at offset 0x54h-0x5Dh. The monitored events of the timers and the IO traps are set at offset 0x60h-0x73h. Offset 0x74h is the status bit that indicates which event resets the Standby timer when system is in Standby State. Offset 0x75h-0x76h configures the busy condition of the PCI bus. The External Switches' event is configured at offset 0x80h-0x82h and 0x8Ch-0x8Eh. Furthermore, the programmable monitored IO/Memory range can be set at offset 0x94h0x97h and 0xA4h-0xA5h. Besides the SMI sources and the monitored events, CPU clock control is also an important method for power saving. M1543 supports Pentium and Pentium Pro clock control. It can transfer the CPU into STPGNT or STPCLK states. Besides, system clock controls such as clock throttling function are also supported. Most of all, the Auto Thermal throttling can be enabled to prevent system overheat. All of the configuration registers are at 0x78h-0x7Ch. Note that some configuration registers of throttling are set at offset 0x10h-0x13h of ACPI IO space. Some other functions, such as Speaker control, etc., are set at offset 0B2h-0BEh. Most important of all is the Suspend states supported. There are three states supported by M1543, namely the Power On Suspend, Suspend to DRAM and Suspend to Disk. An overview of design for suspend is introduced at ACPI. The details of how to design the hardware or program the registers are described below. B. Timers. a. Standby timer and System state. There are two states, ON & STANDBY, in this chip. The transition between both is determined by Standby timer and what events it monitors. The monitored events can be selected at offset 0x60h-0x64h and the Standby timer can be programmed at offset 0x54h. Assume Standby timer is programmed as 27 minutes and the monitored events as 01h. Then the timer begins to count immediately after being programmed. If there is any Primary HDD access (the enabled monitored event) detected before timeout, the timer will be reset. Otherwise, if it is timeout because no event occurs, it will stop and the system will transfer to STANDBY state. At the same time, the Standby timeout SMI is generated. If there is an event detected in STANDBY state, the timer will be reset to count again and a STANDBY to ON SMI will be generated. As soon as the SMI is generated, system will transfer to ON state. By the way, system states can be changed by reading or writing at offset 0xB2h, D0. b. Display timer. This timer is similar to the Standby timer except that it has no relation with the System state. If there is an enabled Display access event detected, the timer will be reset immediately no matter what state it is in. The only difference is that the Display timeout SMI is generated when no events are detected and the timer timeout, and Display Activity SMI is generated when there is an event detected after timeout. The timer can be configured at offset 0x59h and the monitored events at offset 0x64h-0x65h. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 190 M1543 Preliminary Data Sheet c. APM timers. There is an APM timer that can be used for Advanced Power Management. It has two modes. When offset 0x55h, D6='0', the timer will generate an SMI when timeout and then stop until it is written again. When D6='1', the timer would reset to count again when timeout and generate SMI. The timer can be programmed at offset 0x55h. Note : All of the monitored events monitored by the idle timers are masked when offset 0xC8h is set. C. Event Configuration. There are more than twenty events that should be configured before use. Listed below are those devices. Besides, some devices can monitor another GPI pin as an input event. Refer to offset 0x72h-0x73h. a. Primary HDD. This event monitors 01F0h-01F7h and 3F6h, optionally. When internal IDE is enabled, any IO cycle accessing it would be monitored, too. Besides, Primary DRQ can be enabled/disabled to be monitored at D0 of offset 0x6Ch. b. Second HDD. This event monitors 0170h-0177h and 376h, optionally. When internal IDE is enabled, any IO cycle accessing it would be monitored, too. Besides, secondary-DRQ can be enabled/disabled to be monitored at D1 of offset 0x6Ch. c. Audio. The audio access is decided by monitoring accesses to MIDI, SoundB, MS_Sound, ADLIB and GAME ports which are selected at D2-D15 of offset 0x6Ch-0x6Fh. Besides, whether DRQ is monitored or not is decided at D16-D21 of offset 0x6Ch-0x6Fh. d. Video. There are four sources of Video Events, including Memory access A0000-BFFFF, VCSJ and Graphic IO(3B0h-3DFh). VCSJ is an low active pin. e. FDD. The default monitor range of FDD Event is 3F0h-3F7h. It can be changed to 370h-377h by writing '1' to D0 of offset 0x68h. Besides, whether DRQ2 would be monitored is decided at D26 of offset 0x6Ch-0x6Fh. f. Serial IO. There are eight COM ports to be monitored at most. They can be enabled/disabled individually at D0-D7 of offset 0x70h. g. Keyboard. IO access ports 060h and 064h will generate Keyboard Event. Moreover, IRQ1 or IRQ12 can be monitored by enabling D27D28 of offset 0x6Ch-0x6Fh. h. Parallel IO. Parallel IO Event monitors D8-D11 of offset 070h-071h. Note that only one of DRQ0, DRQ1 and DRQ3 can be monitored at once. It is selected at D1-D2 of offset 0x68h. i. Memory Group Range. There is one Programmable Monitored Memory ranges, MEMGPA. The first two are used as two single devices. MEMGPC is used as one of the Video Events. All three are programmable at offset 094h-09Fh. An example of how to program MEMGPA is shown below. The other two can be programmed similarly. Now, suppose there is a device that occupies memory range from 012340000h to 01235FFFFh. If D31-D14 of offset 0x94h-0x97h are the address bits of A[31:14], then it must be programmed as 0001_0010_0011_010X_XXb where 'X' means "don't care". Because D13-D4 are the masks of address bits A[23:14], it must be programmed as 00_0000_0111b. As a result, the written value is 012340070h. j. IO Group Range. There is one Programmable Monitored IO Range, IOGPC, that can be configured to monitor the programmed range or/and the IO ports 062h and 066h at D12-D13 of offset 070h-071h. An example of how to program IOGPC is shown below. The others can follow the steps. Suppose IO range 01230h-01237h is to be monitored. If D15-D2 of offset 0xA4h-0xA5h are the address bits of A[15:2], then it must be programmed as 0001_0010_ 0011_0Xb. Because D1-D0 are the masks of address bits A[3:2], it must be programmed as 01b. As a result, the written value is 01231h. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 191 M1543 Preliminary Data Sheet k. USB. USB Event is generated when there is a device plugged in/out or the USB bus is busy. Event Primary Driver IO access Primary HDD event Secondary Driver IO access Secondary HDD event Audio IO access Audio event Video IO access Video Event Floppy IO access Floppy Event Serial IO access Serial Event Keyboard IO access Keyboard Event Parallel IO access Parallel IO event IO group C IO access/ IOGP C event Memory group A event RTC event Ring IN event BUS_ACT event Corresponding Register D7 of D8h-D9h Enable/Disable of internal IDE Primary Driver IO access D0 of 6Fh-6Ch D0 of 73h-72h. D7 of D8h-D9h Enable/Disable of internal IDE Secondary Driver IO access D1 of 6Fh-6Ch D0 of 73h-72h D4-D15 of 6Fh-6Ch Audio IO access D16-D21 of 6Fh-6Ch D25 of 6Fh-6Ch D22-D24 of 6Fh-6Ch Video I/O access D3 of 73h-72h D0 of 68h D26 of 6Fh-6Ch D4 of 73h-72h D0-D7 of 71h-70h D5 of 73h-72h Serial IO access Any access to IO port 60h, 64h Keyboard IO access. D27-D28 of 6Fh-6Ch D6 of 73h-72h D8-D10 of 071h-070h D11 of 71h-70h D7 of 73h-72h Parallel IO access Offset 0A5h-0A4h D12-D3 of 71h-70h Offset 097h -094h IRQ8J asserted Count number of Ring IN until matching offset B7h Offset 076h-075h l. BUS_ACT. BUS_ACT event is active when the PCI bus is busy. How frequent the PCI access can be defined is indicated in offset 0x75h-0x76h. Suppose D7-D0 is written as 80h and D13-D8 as 10h. Most of all, D14 should be set to '1' in advance. Then M1543 starts to count number of XTRDYJs in every period of 128 PCICLKs. If it is more than 16 XTRDYJs in the period, a BUS_ACT Event will be generated. D. External Switches. There are 2 specified External Switches because ACPWR is used as a hardware setting pin to select AT/ATX mode. For the specified External Switches, they can be programmed to be sensed by rising/falling/debounce at offset 0x80h-0x82h and 0x8Ch-0x8Eh. Moreover, some specified switches are used not only to generate SMI here, but also some other functions. For example, THERMALJ pin can be used as auto thermal throttle as described in the following section. In general, when rising (falling) is enabled and is sensed, then an SMI will be generated to inform CPU. When debounce circuit is enabled, the debounce clock of all switches can be selected at offset 0B4h, D6-D4. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 192 M1543 Preliminary Data Sheet E. Clock Control. Before using any function of Clock Control, the Clock Control should be enabled first at D9 of offset 0x10h-0x13h of IO space. Every function is influenced by the Break Events selected at offset 0x7Ch of configuration space. Following are the Clock Control Functions supported by M1543. a. Normal Throttle. In addition to the Clock Control Enable described above, the Duty cycle should be configured in advance and then set Throttle Enable bit to start Normal Throttle. When it is enabled, the STPCLKJ deasserted and asserted periodically with 256µs/8µs period. The Break Events can deassert STPCLKJ immediately and reset the high/low timer. That is, STPCLKJ would start throttling again if there is no Break Event for a period of time. Only disabling the Throttle Enable bit can stop this function. By the way, all of the configured registers are at offset 0x10h-0x13h of IO space. b. Auto Thermal Throttle. It must be done first to program the Duty Cycle of offset 0x10h-0x13h of IO space and set D4 of offset 0x7Bh of configure space to Enable the Auto Thermal Throttle. When it is enabled and THERMALJ has asserted for 2 seconds, throttling is started. The Break Events can deassert STPCLKJ immediately and reset the high/low timer, too. Throttling is disabled immediately when THERMALJ has deasserted. c. STPGNT Before using STPGNT function, the D1-D0 of offset 0x7Bh of Configuration Space should be selected first. If Soft STPCLK is demanded, then D3 should be set to '0' to select STPGNT. Finally, READ offset 0xB2h of IO Space for Soft STPCLK or READ 0x14h for Processor Level 2 forces CPU input to the STPGNT state by asserting STPCLKJ. When SLEEPJ is enabled (D1 of offset 0x7Bh), timing of Pentium Pro is matched; otherwise, Pentium. Besides, ZZ is used to force L2 cache into Powerdown mode. STPCLKJ will be deasserted when any Break Event occurs. By the way, Soft STPCLK or READ LVL2 causes the same result. d. STPCLK Before using STPCLK function, the D1-D0 of offset 0x7Bh of Configure Space should be selected first. If Soft STPCLK is demanded, then D3 should be set to '1' to select STPCLK. Finally, READ offset 0xB2h of IO Space for Soft STPCLK or READ 0x15h for Processor Level 3 both forces CPU input the STPCLK state by asserting STPCLKJ, CPUSTPJ. They will be deasserted when any Break Event occurs. By the way, Soft STPCLK or READ LVL3 causes the same result. Note: D5-D3 of offset 0x78h-0x79h are the CPU PLL time when CPU transfers from STPCLK state to STPGNT state. F. General Purpose Input/Output. There are 10 General Purpose Output pins, 6 General Purpose Input pins and 8 General Purpose IO pins. As most of these pins are multi-function pins, they must be enabled by programming offset 0x59h-0x5Bh of configuration space of device M1543 (not PMU) and offset 0xC6h of configuration space of device PMU. a. GPI. The input status of GPI pins can be read from offset 0xC4h-0xC5h. b. GPO. The output level of GPO pins can be programmed at offset 0xC0h-0xC3h. c. GPIO[7:0]. 1. Programming the directions of GPIO[7:0] at offset 0x7Dh. 2. Programming the output level of GPIOx at offset 0x7Eh, if it is configured as output. 3. Read the status of GPIOx at offset 0x7Fh, if it is configured as input. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 193 M1543 Preliminary Data Sheet G. SMI control. a. ACPI mode/M7101 mode. When set as ACPI mode, the status bit of any event is set as soon as the event occurs, no matter whether its corresponding enable/disable bit is set or not. As M7101 mode, the status bit is set if and only if both event occurs and the enable/disable bit is set. Set at D7 of offset 0x77h. b. Soft SMI. Write offset 0xB1h of IO space will generate Soft SMI. It can be delayed to generate Soft SMI if D2 of offset 0x77h is set. c. Read/Write clear SMI. When set as Read Clear SMI, all status port in configure space are cleared when read. As Write Clear SMI, writing `1' to the corresponding status bit can clear it. Set at D4 of offset 0x77h. d. Delayed SMI. SMI generated after a period of time when an SMI source is generated. Moreover, the SMI will be delayed again if there is any event monitored by Standby timer occurs. Only when no event occurs during that period of time, then SMI is generated. 1. Select Delayed time at D1-D0 of offset 0x77h. 2. Enable/Disable delayed SMI at D2 of offset 0x77h and D2&D0 of offset 0xD8h. H. Others. a. Write Beep function. 1. Enable D6 of offset 0xB3h. 2. Select Beep latency time at D5-D4 of offset 0xB3h. 3. Write 0xCAh to generate Beeps. A maximum of 3 writings are allowed in a time. b. Periodical Beep function. 1. Enable D6 of offset 0xB3h. 2. Select Beep period at D1-D0 of offset 0xB3h. 3. Select Beep latency time at D3-D2 of offset 0xB3h. Note : As soon as D3-D2 of offset 0xB3h are not "00", the Periodical Beep function is enabled and the first beep beeps. c. LED control. Two LED output controls are supported. 1. XSLED and XSQWO. Programmed at offset 0xB5h. 5.2 Advanced Configuration and Power Interface Specification. A. Top View. B. Power Management Timer. C. SCI(SMI) Sources. D. Suspend Modes. E. Clock Control. F. Resume Events. G. Global Lock. H. Point for Attention. A. Top View. The M1543 supports the ACPI (ver. 1.0) specification, includes the SCI interrupt, 24/32bit Power Management Timer, System Suspend modes, CPU Power saving modes and ACPI I/O Registers. B. Power Management Timer. M1543 supports a 24-bit or 32-bit (PG_BD_D2) fixed rate free running count-up Power Management Timer. The ACPI uses the read-only port (IO_08_D, 32bit) to read the current value of the timer. To allow software to extend the number of bits in the timer, the Status bit (IO_00_D0) is set any time the bit-22 or bit-30 of the timer goes from HIGH to LOW. If the Enable bit (IO_02_D0) is set, then the timer generates a system control interrupt (SCI). Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 194 M1543 Preliminary Data Sheet C. SCI(SMI) Sources. Source Status Reg Enable Reg Interrupt Power Management Timer IO_00_D0 IO_02_D0 SCI BIOS Release IO_00_D5 IO_02_D5 SCI Power Button IO_01_D0 IO_03_D0 SCI/SMI RTC alarm IO_01_D2 IO_03_D2 SCI/SMI Thermal Control IO_18_D0 IO_1A_D0 SCI/SMI Thermal Override IO_18_D1 IO_1A_D1 SCI/SMI (THRMJ assert > 2sec) USB Event IO_18_D2 IO_1A_D2 SCI/SMI Docking IO_19_D0 IO_1B_D0 SCI/SMI AC Adapter IO_19_D2 IO_1B_D2 SCI/SMI Ring IO_19_D3 IO_1B_D3 SCI/SMI ACPI Release IO_1C_D0 IO_1E_D0 SMI Some sources can be enabled to generate the ACPI interrupt, SCI or an SMI. (SCI_EN, IO_04_D0) D. Suspend Modes. The M1543 supports five types of system suspend modes. 1)S0: Working 2)S1: Sleeping(Sleeping with Processor Context Maintained) .CPU enters the STOP CLOCK state (using STPCLKJ, CPU_STPJ) .SRAM Power Saving Mode (using ZZ, PG_7B_D0) .Pentium Pro Sleep Mode (using SLEEPJ, PG_7B_D1, Hardware Setting) .Inform M1531 to switch to Suspend Refresh mode (using SUSTAT1J) .PAD enters Power Saving Mode .Stop Internal PCICLK (PG_CB_D2) Option: .Stop ISP PCICLK (CFG_5E_D5) .Stop ISP DMACLK (CFG_5E_D6) .Stop USB PCICLK (CFG_5E_D7) .Stop 119 KHz clock of M8254 and cold reset counter clock (CFG_5F_D4) .Stop All AT clocks, including SYSCLK and KB CLK (CFG_5F_D5) .Stop Internal Keyboard clock (CFG_5F_D6) .Stop SYSCLK (CFG_5F_D7) 3)S2: Suspend To DRAM (Sleeping with Processor Context Lost) .Inform M1531 to switch to Suspend Refresh mode (using SUSTAT1J) .All Power Off except Resume Block .Stop M1543 XPCICLK (using OFF_PWR1) .Stop M1543 XOSC14M (using OFF_PWR1) .Run M1543 XCLK32O .Run M1543 XCLK32I 4)S3: Suspend To DISK(Non_volatile storage) .All Power Off except Resume Block .Stop M1543 XPCICLK (using OFF_PWR1) .Stop M1543 XOSC14M (using OFF_PWR1) .Stop M1543 XCLK32O .Run M1543 XCLK32I 5)S4: Soft Off .The same as S3 Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 195 M1543 Preliminary Data Sheet How to enter S1 state: .Set CLK_EN='1' (IO_11_D1) .Program the time of Switch Normal to Suspend Refresh (PG_78_D6-8,0,1,2,4,8,16,32,64 ms) .Program the stable time of Clock Generator PLL, when system is from S1 to s0 (PG_78_D0-2,0,1,2,4,8,16,32,64 ms) .Program the stable time of CPU PLL, when system is from S1 to s0 (PG_78_D3-5,0,1,2,4,8,16,32,64 ms) .Program the time of Switch Suspend to Normal Refresh (PG_78_D9-11,0,1,2,4,8,16,32,64 ms) .Set SLP_EN='1', SLP_TYP="011" (IO_05_D5, IO_05_D2-4) How to enter S2 state: .Set SLP_EN='1', SLP_TYP="010" (IO_05_D5, IO_05_D2-4) How to enter S3 state: .Set SLP_EN='1', SLP_TYP="001" (IO_05_D5, IO_05_D2-4) How to enter S4 state: .Set SLP_EN='1', SLP_TYP="000" (IO_05_D5, IO_05_D2-4) or .Power Button Override Event (PWRBTNJ Assert > 4 sec, PG_B4_D2) E. Clock Control. .CPU Clock Control(CLK_EN) .THROTTLE (THRO_EN=>IO_10_D4, THRO_DTY=>IO_10_D1-3) .STOP GRANT STATE (Read LVL2,IO_14_D7-0) .STOP CLOCK STATE (Read LVL3,IO_15_D7-0) F. Resume Events. Event Status Reg Power Button IO_01_D0 RTC alarm IO_01_D2 USB Event IO_18_D2 Docking IO_19_D0 AC Adapter IO_19_D2 Ring IO_19_D3 IRQ0 assert IO_1D_D2 IRQ assert IO_1D_D3 Enable Reg IO_03_D0 IO_03_D2 IO_1A_D2 IO_1B_D0 IO_1B_D2 IO_1B_D3 IO_1F_D2 IO_1F_D3 Resume from S1/S2/S3/S4 S1/S2/S3/S4 S1 S1/S2/S3/S4 S1/S2/S3/S4 S1/S2/S3/S4 S1 S1 G. Global Lock. M1543 supports two sets of Registers : a. BIOS_RLS(IO_20_D1), GLB_STS(IO_00_D5), GLB_EN(IO_02_D5) b. GLB_RLS(IO_04_D2), BIOS_STS(IO_1C_D0), BIOS_EN(IO_1E_D0) In the event of a resource conflict, the Global Lock is used by the ACPI driver to inform the BIOS driver that it is finished u sing a shared resource, or by the BIOS driver to inform the ACPI driver. H. Point of Attention. .The ACPI Status Registers only support "write '1'" clear method .The Legacy Status Registers support "write '1'" clear or "Read Clear" method. (PG_77_D4) .The ACPI and Legacy Common Status Registers can clear both or one side. (PG_77_D5) .The ACPI and Legacy SMI method can select ACPI or 7101 mode. (PG_77_D7) .CFG represents the M1543 Configuration Space Register .PG represents the PMU Configuration Space Register .IO represents the ACPI I/O Space Register 5.3 System Management Bus Host Controller Programming Example Programming Guide for SMBus * if PMU(M7101) register index 14h-17h set to be 00003A81h * For SMB Host Controller to be a master only, just set M7101's reg E0h = "01h" & E2h = "20h". * then below Example's index "03h" will be "00003A80h+03h" that is 'I/O address of SMB Host Controller' = "00003A83h". Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 196 M1543 Preliminary Data Sheet Example: 1. A "Write Byte" cycle for Smart Battery Selector ( address="14h" ), and the write data is 3Ah ( DataA="3Ah" ) with "Command Reg" being "22h". => write '1' clear to let read index 00h to be "04h" ( Idle ). => write index 03h "14h"( address="14h" and write cycle ). => write index 01h "20h"( Write/Read Byte command ). => write index 04h "3Ah"( DataA is for Byte data use ). => write index 07h "22h"( Command Reg = "22h" ). => write index 02h "XXh"( write any data for index 02h to start ). => wait SMI (or Interrupt). => read index 00h, if bit4='1' it means complete successfully. => else then write '1' clear and restart the protocol. 2. A "Write Word" cycle for Smart Battery ( address="16h" ), and the write data is Low Byte=27h ( DataA="27h" ), and High Byte=D1h ( DataB="D1h" ) with "Command Reg" being "33h". => write '1' clear to let read index 00h to be "04h" ( Idle ). => write index 03h "16h"( address="16h" and write cycle ). => write index 01h "30h"( Write/Read Word command ). => write index 04h "27h"( DataA is for Low Byte data use ). => write index 05h "D1h"( DataB is for High Byte data use ). => write index 07h "33h"( Command Reg = "33h" ). => write index 02h "XXh"( write any data for index 02h to start ). => wait SMI (or Interrupt). => read index 00h, if bit4='1' it means complete successfully . => else then write '1' clear and restart the protocol. 3. A "Read Word" cycle for Thermal ( address="90h"-"9Eh" ), this procedure is based on the address="92h" with "Command Reg" being "45h". => write '1' clear to let read index 00h to be "04h" ( Idle ). => write index 03h "93h"( address="92h" and read cycle ). => write index 01h "30h"( Write/Read Word command ). => write index 07h "45h"( Command Reg = "45h" ). => write index 02h "XXh"( write any data for index 02h to start ). => wait SMI (or Interrupt). => read index 00h, if bit4='1' it means complete successfully . => else then write '1' clear and reinitial the procedure. => if succeed, read index 04h for Low Byte ( DataA ) , and index 05h for High Byte ( DataB ). 4. A "Write Block" cycle for Clock Synthesizer ( address="D2h" ). It has a total of 6 bytes data, for example, to send and the write data is "07h", "2A", "51h", "D0h", "46h" and "38h" with "Command Reg" being "77h" . => write '1' clear to let read index 00h to be "04h" (Idle). => write index 03h "D2h"(address="D2h" and write cycle). => write index 01h "C0h"(Write/Read Block command and reset Block Register Pointer). => write index 04h "06h"(DataA is for Block Byte number). => write index 06h "07h"(Block Data). => write index 06h "2Ah"(Block Data). => write index 06h "51h"(Block Data). => write index 06h "D0h"(Block Data). => write index 06h "46h"(Block Data). => write index 06h "38h"(Block Data). => write index 07h "77h"(Command Reg = "77h"). => write index 02h "XXh"( write any data for index 02h to start ). => wait SMI (or Interrupt). => read index 00h, if bit4='1' it means complete successfully . => else then write '1' clear and restart the protocol. Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 197 M1543 Preliminary Data Sheet Section 6: Packaging Information 328L BGA Dimension Spec (27 x 27 mm) pin 1 indicator D Hd Top View 1 2 3 4 5 6 7 8 91011121314151617181920 A B C D E F G H E He J K L M N P 45o R T U V W Y b D1 e E1 A2 A1 o c Symbol A1 A2 b c D D1 E E1 e Hd He o Y (radius of ball) Min. 0.55 1.12 0.60 0.51 23.80 23.93 23.80 23.93 26.80 26.80 23o Nom. 0.60 1.17 0.75 0.56 24.00 24.13 24.00 24.13 1.27 27.00 27.00 30o Max. 0.65 1.22 0.90 0.61 24.20 24.33 24.20 24.33 27.20 27.20 37o 0.25 Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 198 M1543 Preliminary Data Sheet Section 7: Revision History p.24 RTS1J p.40,45,51,75,76,78,84,90,91 04-10-97 p.56,58 04-25-97 p.12,50 05-19-97 p.110 05-27-97 p.46 06-02-97 p.55,56,59 06-06-97 p.71,77,108,117 07-22-97 p.10-12,25,27,28,39,42,45,49,79,84,91,92,98-101,117,119-121,123,192-194,196 p.13-15, 24 08-25-97 p.46 09-11-97 08-19-97 Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 199 M1543 Preliminary Data Sheet Pinout Diagram (Bottom view) 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 A SD13 SD14 SD15 XD5 XD2 ROMK RTC USB GPI3 PHLD AD1 AD6 AD10 AD14 SER IRDY AD16 AD19 AD20 AD21 BCSJ DS P1- J RJ J B SD11 DRE SD12 XD6 XD3 XD0 RTC USB USB PHLD AD2 AD7 AD11 AD15 STO FRA AD17 AD22 AD23 CBEJ Q7 RW P0+ CLK AJ PJ MEJ 3 C DRE SD10 DAC XD7 XD4 XD1 RTC USB GPI0 GPO AD3 CBEJ AD12 CBEJ DEV CBEJ AD18 AD24 AD25 AD26 Q6 KJ7 AS P0- 3 0 1 SELJ 2 D SD8 DAC SD9 SPK GPI2 GPO GPO GPO SIRQ GPO AD4 AD8 AD13 PAR TRDY AD31 AD30 AD27 AD28 AD29 KJ6 R 0 12 19 I 2 J E DAC MEM DRE SPLE THR GPO GPO SIRQ USB AD0 AD5 AD9 PCI PCI INTC INTB INTA PIDE PIDE PIDE KJ5 WJ Q5 D MJ 9 18 II P1+ CLK RSTJ A2 CS1 CS3 F DAC KJ0 LA17 DRE Q0 MEM RJ IRQ1I VCC _E VCC _A VCC _B PIDE IRDY J INTD PIDE DAKJ PIDE A1 PIDE A0 G IRQ A20 INIT IRQ LA18 VCC 13 MJ 14 3C M1543 VCC _D PIDE D0 PIDE D15 PIDE DRQ PIDE WJ PIDE RJ H INTR NMI SMIJ IRQ LA19 15 PIDE D12 PIDE D2 PIDE D13 PIDE D1 PIDE D14 J CPU IGN STP GPO LA20 RST NEJ CLK 20 GND GND GND GND PIDE D5 PIDE D10 PIDE D4 PIDE D11 PIDE D3 K ACP SUST RSM GPO GPO WR AT1J RSTJ 22 1 GND GND GND GND SIDE CS3 PIDE D7 PIDE D8 PIDE D6 PIDE D9 L PWR BTNJ IRQ8 J DOC KJ GPO 23 SMB DATA GND GND GND GND SIDE DAKJ SIDE A1 SIDE A0 SIDE A2 SIDE CS1 M PWG OSC3 RI 2KO LA21 SMB CLK GND GND GND GND SIDE D15 SIDE DRQ SIDE WJ SIDE RJ SIDEI RDYJ N OSC OSC IRQ 32I 32II 10 LA22 IRQ 11 VDD_ 5S SIDE D2 SIDE D13 SIDE D1 SIDE D14 SIDE D0 P OSC M16 14M SBHE J IO16 LA23 VCC _C VCC _A_D XDIR J SIDE D4 SIDE D11 SIDE D3 SIDE D12 R SA2 SA1 SA0 TC BALE VCC _A VCC _3A VCC _A_D VDD _5 XDR V0J XMO T1J SIDE D9 SIDE D5 SIDE D10 T SA5 SA4 SA3 SA6 DAC DAC SA19 SD0 MS MS RST XACK XPD3 XDC XDE XMO XDR XDSK SIDE SIDE KJ2 KJ3 DATA CLK DRV J D1J NSEL T0J V1J CHGJ D8 D6 U IRQ4 SA7 SA8 IRQ5 IRQ3 SA17 SME SD1 KB KB XER XBUS XPD4 XSTR XDS XDC XIND XRD XHD SIDE MRJ DATA CLK RORJ Y OBJ R1J D2J EXJ ATAJ SELJ D7 V SA9 IRQ6 SA10 DRE SA15 IORJ AEN NOW DRE IRQ9 XINIT XPE XPD5 XPD0 XDTR XRI1J XDTR XWG XTRK XWP Q1 SJ Q2 J 1J 2J ATEJ 0J ROTJ W IRQ7 SA11 SYS SA14 DRE SA18 SME SD2 SD4 SD6 XSLC XSLC XPD6 XPD1 XSO XCTS XSO XRTS XSTE XWD CLK Q3 MWJ TINJ T UT1 1J UT2 2J PJ ATAJ Y SA12 REFR SA13 DAC SA16 IOWJ IOCH SD3 SD5 SD7 IOCK XAUT XPD7 XPD2 XSIN XRTS XSIN XDS XCTS XRI2J SHJ KJ1 RDY OFDJ 1 1J 2 R2J 2J Pinout Diagram (Bottom View) (Chip rotated left - right) Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 200 M1543 Preliminary Data Sheet This material is recyclable. Acer Labs products are not licensed for use in medical applications, including, but not limited to, use in life support devices without proper authorization from medical officers. Buyers are requested to inform ALi sales office when planning to use the products for medical applications. Product names used in this publication are for identification purposes only and may be trademarks of their respective companies. Acer Laboratories Inc. makes no warranty for the use of its products and assumes no responsibility for any errors which may appear in this document nor does it make a commitment to update the information contained herein. Acer Laboratories Inc. retains the right to make changes to these specifications at any time, without notice. Contact your local sales office to obtain the latest specifications before placing your order. ALi is a registered trademark of Acer Laboratories Incorporated and may only be used to identify ALi's products. © ACER LABORATORIES INCORPORATED 1998 Acer Laboratories Inc. 1830 B Bering Drive, San Jose, CA 95112, Phone 408-467-7456, Fax: 408-467-7474 Jan. 1998 / Version 1.25 Page 201