The text of a manual · part 28 of 38
PEN*KEY 6100 Computer Programmer's Reference Guide: Section 7: Reference, System Information
Pages 245 to 258 of 328, from PEN*KEY 6100 Computer Programmer's Reference Guide
The original document is the PDF (1.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
Filed in the catalog under the Intermec 6110
Page 245
Reference, System Information "
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
Introduction This section contains system reference information, intended for supporting apĆ plication programming efforts on the PEN*KEYR 6100 Computer. This includes: some information about the DOS operating system, the boot process, system messages, error codes, COM ports, I/O maps, IRQ maps, and system variables. Topic Summary ROM DOS 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Boot Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Audible Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Hardware Ports and Memory Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Hardware Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IRQ and Other Hardware Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I/O Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . BIOS/CMOS System Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ROM BIOS Data Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CMOS Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Page 7-2 7-3 7-7 7-8 7-8 7-8 7-9 7-10 7-11 7-11 7-13
List of Tables Table 7-1, System Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Table 7-2, Audible Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Table 7-3, Hardware Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Table 7-4, COM1 Connector Pin-Outs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Table 7-5, Hardware Interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Table 7-6, I/O Addresses and Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Table 7-7, BIOS Data in System RAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Table 7-8, CMOS Register Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
" NOTE:
Page 7-7 7-8 7-8 7-9 7-9 7-10 7-11 7-13
Because this is an open system, your system configuration could differ somewhat from that shown in the following tables; for instance, you may have a custom installation. If you want to determine your exact configuration, refer to the .INI files in flash memory or in the 6100 Tool Kit. The IRQ and COM port mapping, for example, is defined in CARDID.INI. To verify this information, enter “CARDINFO /v” from the DOS screen, comparing that with the definitions in the CARDID.INI file. PEN*KEY R 6100 Computer Programmer’s Reference Guide
7-1
7. Reference, System Information
Section 7
Page 246
7. Reference, System Information
Reference, System Information
SECTION 7
ROM DOS 5 The ROM DOS 5 product shipped in PEN*KEY 6100 flash memory is produced by Microsoft Corporation. It provides a number of configuration options that you can selectively choose when designing a DOSĆbased system. The primary differĆ ence between ROM DOS 5 and MS-DOS 5 is that much of the ROM DOS code executes from the upper memory address space, using readĆonly memory. There are several ways in which to load the code. In the 6100 Computer, the code is copied from flash into writeĆprotected system memory, which is referred to as shadow RAM. Since DOS is not loaded from disk, the IO.SYS and MSDOS.SYS files required for booting from a disk are not required in a ROM DOSĆbased computer. The inĆ itialization code normally loaded from disk is loaded from flash memory instead. CONFIG.SYS is the first file read from a disk during the ROM DOS boot process. Unless the CONFIG.SYS file contains a SHELL statement, this default shell statement is used: SHELL=D:\COMMAND.COM /P D:\ All the CONFIG.SYS statements that MS-DOS 5 supports are supported in ROM DOS 5. This includes the DOS=HIGH and DOS=UMB statements provided by MS DOS 5 to load data and DOS programs into the corresponding memory areas. For DOS=HIGH to be useful, an XMS driver, such as HIMEM.SYS, must be loaded. To use DOS=UMB, an XMS manager that supports the upper memory functions must be loaded. A simple XMS driver named ELANUMP.SYS is availĆ able for using shadow RAM as upper memory. ELANUMP.SYS is much smaller and simpler than EMM386.EXE. Using shadow RAM instead of XMS memory to provide upper memory, it provides more overall memory to DOS and Windows applications. However, since ELANUMP.SYS cannot support expanded memory, EMM386.EXE is still the only method for providing expanded (EMS) memory. The standard MS-DOS 5 version of COMMAND.COM is provided in flash. HowĆ ever, one change has been made to COMMAND.COM to make it more useful on the 6100 Computer, as described later in this section. If you prefer to use the unĆ modified version of COMMAND.COM, you can get it from the Tool Kit. Use a SHELL statement in CONFIG.SYS to override the default shell statement: SHELL=A:\COMMAND.COM A:\ /P
The CONFIG.SYS file is processed before a command processor is selected. This particular CONFIG.SYS does not put any unique restrictions on file content. All the messages displayed by COMMAND.COM have been shortened or split into multiple lines so that they fit the 20Ćcolumn screen on the 6100 Computer. " Error messages are displayed as numbers. " The critical error handler displays a menu that includes numeric responses so that the user can respond without using an alpha keyboard. For examĆ ple, Retry, Fail?" becomes: 2) Abort, 1) Retry, 3) Fail? These numbers are not always in a natural order because each line is disĆ played independently, pending on the options available. If the numbers were rearranged to look correct oneway, they would look wrong for another. " The Echo command is modified to allow to display a blank line instead of load program." In a related change, comma (,), equals (=), and quote now terminates a keyword comparison. " A bug with the GOTO is eliminated so that it works correctly with labels of two or more characters. 7-2
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 247
Reference, System Information
Boot Process These paragraphs describe various methods that boot the 6100 Computer. Also described are the possible options during the boot process, which is done by holdĆ ing a key down during the boot phase or by reconfiguring a CMOS setting. TopĆ ics covered include cold booting, warm booting, and the masterĆmode boot cycle.
Cold Booting A cold boot cycle is usually never performed by the customer, unless the handĆ held computer is shipped with no backup battery or main battery. A cold boot is defined as a boot cycle in which power is applied for the first time. A cold boot is normally done only at the factory, when the batteries are installed. The only time you would perform a cold boot, is after a situation where the main battery pack has drained, no backup battery was installed, and no external charge is apĆ plied. These paragraphs describe the basic steps that occur during a cold boot.
BIOS Code is Shadowed As one of the first steps, the BIOS copies itself, the video BIOS, and ROM DOS 5 into the first megabyte of system memory and then writeĆprotects that memory. This is known as BIOS shadowing. The RAM used in this process is called shadow RAM. Shadow RAM is different from conventional memory in that a hardware mechanism prevents the shadow RAM from being modified once code is copied there. BIOS code is copied into shadow RAM primarily to enhance performance. Running from system memory is faster than running from flash memory directly.
Power-On Self-Tests (POSTs) are Run A series of tests is performed on the hardware to ensure the system is functionĆ ing properly. Mostly, these tests are performed without indication that they are running. If a test fails, an error message is displayed on the screen or a series of beeps is sent to the speaker. The beep codes are used only for those errors that might occur before the screen can be enabled. For a description of all the beep codes that may be generated, see the Audible Error Codes table on page 7-8. Video BIOS is Enabled
Early in the POST phase, the video BIOS is given control to initialize the screen. From there, errors are reported by messages on the screen rather than by beeps. Version Messages are Displayed
Once the screen is enabled, version numbers are displayed for the ROM BIOS and any other hardware components that have version designations that can be read by software. Detection of Cold Boots Using the CMOS Signature
A portion of CMOS memory contains a value known as a checksum signature; and indicates whether CMOS memory, as a whole, is valid. At the time of a cold boot, none of the memory in the system is initialized, including the CMOS memory. Consequently, because the signature is not correct, the ROM BIOS can determine that a cold boot has occurred and initialize CMOS and the associated realĆtime clock hardware to reflect a standard set of powerĆon defaults. It also records in EEPROM that a cold boot has occurred. Since the standard powerĆon defaults do not include a RAM drive, no RAM drive is present after a cold boot. PEN*KEY R 6100 Computer Programmer’s Reference Guide
7-3
7. Reference, System Information
SECTION 7
Page 248
7. Reference, System Information
Reference, System Information
SECTION 7
In standard PCs, the CMOS RAM is usually the only memory maintained by a backup battery. In contrast, all memory in the PEN*KEY computer is mainĆ tained at all times, with a fully charged backup battery. This memory can be maintained for approximately 200 hours in the event of a main battery failure. The CMOS RAM is special only because the PCĆcompatible software expects the CMOS RAM to exist and to contain certain configuration values. Invalid RamDrive Message
One of the first tests involving extended memory verifies that the RAM drive, if it exists, is not corrupted by a power failure. If the RAM drive signature is corĆ rupted, the RAM drive is removed and the default boot drive is set to drive A. The Invalid RamDrive message is then displayed and a single beep is issued. Testing XMS Memory Message
This message displays while the POST of extended memory is performed. The initials XMS refer to the eXtended Memory Specification published by Lotus, InĆ tel, Microsoft, and AST Research. The XMS specification describes a program interface for accessing extended memory, the high memory area (HMA), and upĆ per memory. You hear a clicking sound while the extended memory test is under way. One click occurs for each 64K segment of memory tested. Immediately following the extended memory test, a screen display indicates the quantity of memory that was found and tested. Any memory allocated to a RAM drive is not included in either the testing or reporting of available XMS memory. Flash Memory Size Report
The size of the flash memory is reported on each boot cycle. There is no test asĆ sociated with this display, but there is the possibility that an incorrect size could be reported if a hardware problem existed. BIOS Extensions are Scanned For and Installed
After most of the POSTs have ended, the ROM BIOS scan through system memory in the address range of E800:0 through F7FF:F, looking for BIOS extenĆ sions. On PCĆcompatible computers, a BIOS extension is any software or firmĆ ware that runs prior to the time that the operating system is loaded. BIOS exĆ tensions execute directly from writeĆprotected memory, such as ROM or shadow RAM. A special signature precedes each BIOS extension. After that signature is validated, the corresponding BIOS extension is made active (or posted). CurrentĆ ly the 6100 Computer includes the following BIOS extensions: the VGA BIOS (VGABIOS.BIN) and ROM DOS 5 (ROMDOSLO.BIN). The VGA BIOS is located and executed prior to this stage of the boot process since it resides in the address range of C000:0 through CFFF:F. ROM DOS 5 itĆ self is located at F000:0. That leaves 32 kilobytes of shadow RAM between E800:0 and EFFF:F that serves the same function as an option ROM socket in a traditional PC environment. If a BIOS extension signature is found at address E800:0, these 32 kilobytes of shadow RAM is scanned for BIOS extensions and remains resident as writeĆprotected RAM. If no signature is found, the address range is redirected back to the ISA bus for use by PC Card adapters.
ROM DOS 5 is Booted When the DOS 5 option ROM is posted (as a BIOS extension), it replaces interĆ rupt 19h with a vector that points back into the ROM DOS 5 code. It then reĆ turns to the BIOS without making any other system changes. After the BIOS has finished scanning for all BIOS extensions, it issues an interrupt 19h to boot 7-4
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 249
Reference, System Information the system. At this point, ROM DOS 5 displays its startup message and takes control of the system. The bootstrap code written for ROM DOS 5 prepares an environment very similar to the environment used by the diskĆbased MS-DOS 5 product. The primary difference is that much of ROM DOS executes directly from shadow RAM instead of from conventional memory. All DOS variables and a significant amount of code are still located at the traditional address of 70:0h. The sole function of the ROM DOS BIOS extension is to load and execute ROM DOS directly from memory instead of loading it from a disk drive. The ROM DOS BIOS extension is enhanced to add the ability to select any of the primary DOS drives as the default boot drive rather than being limited to A: or C:.
Drives A through D are Initialized One of the first interactions between ROM DOS 5 and the ROM BIOS is the initĆ ialization of DOS drives. Using interrupt 13h, the ROM BIOS supports two drives, as follows: Drive 0 = A:, the first PC Card slot. With the 6100 Computer display toĆ ward you, drive A: is toward the rear of the unit. " Drive 1 = B:, the second PC Card slot (also used for Master Mode booting) Refer to Figure 1-1, Location of Reset Button and PC Card Drives on page 1-17, in the Getting Started section, for the location of the PC Card slots. "
A DOS 5 embedded device driver uses Interrupt 15h, Function 87h (move exĆ tended memory), to access both the RAM drive (drive C:) and the flash drive data (drive D:). ROM DOS 5 obtains the starting address for each drive by reading values stored in the BIOS data area of system memory.
Boot Drives Supported Drives A through F are supported as boot drives. SRAM cards are recognized as drives A and B. ATA cards are recognized as drives E and F.
CONFIG.SYS is Loaded and Processed Once ROM DOS has initialized, it reads and processes the CONFIG.SYS file on the default drive. By now, the default drive is chosen, by means of the boot selecĆ tion process, discussed in the following paragraphs. If CONFIG.SYS does not exist, no error or warning is displayed. See Appendix A, Sample Configuration Files, for example CONFIG.SYS files.
COMMAND.COM is Processed The default command shell for ROM DOS 5 is: SHELL=D:\COMMAND.COM /P D:\
After COMMAND.COM is loaded by this shell statement, AUTOEXEC.BAT is processed.
Drives Supported for Use Note that drives E through H are supported, where previous drive letters (A and B) can be assigned drive letters in the range of E through H.
Warm Booting (or Resetting) A warm boot is only slightly different from a cold boot. Since the two forms of booting are similar, this publication may refer to booting without specifying warm or cold, except in cases where the form of boot is important for the underĆ standing of the topic. PEN*KEY R 6100 Computer Programmer’s Reference Guide
7-5
7. Reference, System Information
SECTION 7
Page 250
7. Reference, System Information
Reference, System Information
SECTION 7
For warm booting, the 6100 Computer must be booted before and still have powĆ er applied to it from either batteries or a charger. To warm boot, press the reset switch. This reinitializes the hardware and software. POST procedures are reĆ executed and ROM DOS restarts. See Figure 1-1, Location of Reset Button and PC Card Drives on page 1-17, in the Getting Started section, for the location of the reset button. If a RAM drive is formatted, the data on that drive is still there, unchanged by the reset cycle. The rest of memory is reconstructed as part of the tests perĆ formed. For example, the extended memory (which was not allocated to the RAM drive) is reset when extended memory is tested. The amount of extended memory reported does not include memory allocated to the RAM drive. If all exĆ tended memory is allocated to the RAM drive, the clicking associated with the extended memory test is not heard and 0K of extended memory is reported.
Master Mode Boot Sequence A Master Mode boot is the process of booting from a PC Card rebooting and reĆ flashing with a functioning version of flash, to replace the information in flash memory (reflashing), for a PEN*KEY 6000 Series handĆheld computer that does not have a functioning version. A Master Mode boot cycle differs from a standard boot cycle in that the BIOS code copied to shadow RAM comes from a PC Card instead of from flash memory. In addition, drive B: is temporarily used as the default drive. In that way, CONFIG.SYS and AUTOEXEC.BAT are executed from the PC Card instead of any startup files in flash memory or on the RAM drive. The Master Mode boot process also affects the drive B: support provided by the ROM BIOS. Since drive B: now refers to the same data as the ROM drive (D:), drive B: is writeĆprotected by the BIOS.
Boot Drive Selection The 6100 Computer always boots to DOS from ROM, (that is, it never loads IO.SYS and MSDOS.SYS from a boot drive). CONFIG.SYS and AUTOEXEC.BAT files are read from the default drive whenever the files are present. The default drive used to load these startup files is controlled by a CMOS variable. Two bits of this variable define a drive that could possibly be used as the default drive. One bit determines whether a Master Mode boot is performed. If the Master Mode boot bit is set, the other two bits are ignored and the default drive is B:. If the Master Mode bit is not set, the other two bits define a drive that could possibly be used as the default drive. Before a default drive is selected, a driveĆready test is performed. If media is present and the drive is ready, it becomes the default drive. Note that this test applies only to drives A: and B:, since they are the only drives associated with removable media. When the default boot drive is not ready, the ROM drive is selected as the default drive. To obtain the ROM DOS bootĆup menu, press and release the [Suspend/Resume] key after resetting the unit. Use the from" menu to override the CMOS setting by manually selecting the drive that is the default drive. This menu is available even during a Master Mode boot. The drive selected at the from" menu is still tested to ensure that it is ready before that drive is selected as the default drive. If the selected drive is not ready, the flash drive (D:) is used instead of the selected drive. See Setup for PC Development in the Getting Started section for more information on the from" menu. 7-6
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 251
Reference, System Information
System Messages Table 7-1 System Messages Display Message PEN*KEY BIOS Version: {n.nn}
Meaning ---
Response
Testing PC Card Master Mode Boot Testing XMS Memory.. {nnnn} KB Extended
--PC Card is used in place of flash Performs extended memory tests Reports number of extended memory KB tested Reports number of flash memory KB found Reported on 486 systems Reports loading MS-DOS from ROM and shows revision level
None (status comment)
Memory in the 6100 Computer is cleared, including the RAM drive.
An application download is reĆ quired unless the application was not stored on the RAM drive. An application download is reĆ quired unless the application was not stored on the RAM drive.
{nnn} KB FLASH 8 KB Cache Ok Loading MS-DOS 5 ROM U.S. Patent #4955066 Norand Release {n.nn} Invalid CMOS Invalid RamDrive
Hot Int. Failure IC1 Failure IC2 Failure Master DMA Failure Slave DMA Failure DMA Page Reg. Failure Timer0 Failure Timer2 Failure Timer Tick Failure Reset Code Failure Clock Failure PC CARD Failure {nnnn} Option ROM Failure {nnnn} Keyboard Failure {nnnn} Memory Failure COM1 COM2 COM3 Memory Test Failure No FLASH Memory
A power failure corrupted the RAM drive but left CMOS intact. This occurs when swapping batĆ teries and backup battery is bad or missing. Hot interrupt failure --------DMA page register failure ----------PC Card controller failure Option ROM signature found for a block of shadow RAM that did not have a valid checksum Keyboard controller failure Memory test failure Serial Port 1 failure Serial Port 2 failure Serial Port 3 failure Extended Memory test failure Flash identification, sizing failed
Error: Call the Customer Support Center at 800-755-5505 (U.S.A. or Canada) or 425-356-1799.
If building your own custom flash, you may need to reorganize the storage of the files in flash. Error: Call the Customer Support Center at 800-755-5505 (U.S.A. or Canada) or 425-356-1799.
PEN*KEY R 6100 Computer Programmer’s Reference Guide
7-7
7. Reference, System Information
SECTION 7
Page 252
7. Reference, System Information
Reference, System Information
SECTION 7
Audible Error Codes There are two different kinds of beeping that can occur when the unit is reĆ booted. This is the result of a twoĆstage process that occurs during a reboot. The primary set of beep codes all have the same frequency and duration. The numĆ ber of beeps generated is what identifies the code. The secondary set of beep codes consists of at least one long, one medium long, and one short beep. Table 7-2 shows these error codes. Table 7-2 Audible Error Codes Duration / No. of Beeps Long Medium Short 0 0 0
0 0 0
1 4 5
1 1 1 1 3 4 4 4 4
1 1 3 3 4 2 2 2 4
2 4 1 3 3 3 4 5 2
" NOTE:
Meaning POST and Runtime Power Notification The main battery is too low to start the system. The PC Card controller fails powerĆon diagnostics. The PC Card controller fails to respond. POST (only) Unable to read clocks for peripherals. The ROM BIOS checksum failed. RAM Refresh is not active. The first 64K of system RAM is not operating correctly. The LCD cannot be enabled. Cannot enable A20 using port 64h (see NOTE) (standard keyboard port). Cannot enable A20 using port 92h (see NOTE) (IBM fast A20 port). Cannot enable A20 using port 0EEh (see NOTE) (special fast A20 port). Cannot copy BIOS into shadow RAM.
A20 refers to the special PC/AT hardware that enables or disables address line number 20 on the system memory address bus. The A20 line can be disabled to maintain compatibility with 8088-based hardware platforms.
Hardware Ports and Memory Maps The following IRQ and I/O maps are valid for 6100 Computer.
Hardware Ports The system supports the following hardware ports: Table 7-3 Hardware Ports COM Port COM1 COM2 COM3 COM4 " NOTE:
7-8
Address 3F8h 2F8h 3E8h (see NOTE)
IRQ 4 3 14 (see NOTE)
Description 8Ćpin connector on bottom, accessed through the dock. Serial lid, MSR, or scanner pod. Pod can be radio, bar code scanner. IrDA port; also accessed through the 25Ćpin dock connector. PC Card modem (if installed and supported by PC Card drivers).
Addresses and IRQs allocated according to PC Card driver. The default Address = 2E8h and the default IRQ = 5, using NORMOD.SYS and CardSoft.
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 253
Reference, System Information
Table 7-4 COM1 Connector Pin-Outs 9Ćpin Connector 2 3 5 7 8 4 6 " NOTE:
25Ćpin Connector 2 3 7 4 5 20 6
Description TX RX SG RTS CTS DTR (see NOTE below) DSR (see NOTE below)
DTR is looped back to DSR, both at dock and at internal UART. This means there is no DTR or DSR connection from the UART to the modem.
IRQ and Other Hardware Interrupts The system supports the following hardware interrupts: Table 7-5 Hardware Interrupts Vector 00h 01h 02h 03h 04h 05h 07h 08h 09h 0Ah 0Bh 0Ch 0Dh 0Eh 0Fh 10h 70h 71h 75h 76h SMI
Type processor processor processor processor processor processor processor IRQ0 processor IRQ1 processor IRQ2 processor IRQ3 processor IRQ4 processor IRQ5 processor IRQ6 processor IRQ7 processor IRQ8 IRQ9 IRQ13 IRQ14
Usage Divide error Debug exceptions (e.g., single step) Nonmaskable interrupt Breakpoint Overflow trap Bounds exception Invalid opcode Timer interrupt handler Double exception Keyboard interrupt handler Coprocessor segment overrun Slave (cascades IRQ8 - IRQ15) Invalid task state segment Serial port 2 (COM2) (serial lid or scanner) Segment not present Serial port 1 (COM1) Stack fault COM4 (PC Card modem) General protection error Reserved for PC Card - (card status change) Page fault BATTERY DATA Coprocessor error RealĆtime clock periodic interrupt Reserved for PC Card Reserved for PC Card COM3 (IrDA port) System management interrupt PEN*KEY R 6100 Computer Programmer’s Reference Guide
7-9
7. Reference, System Information
SECTION 7
Page 254
7. Reference, System Information
Reference, System Information
SECTION 7
I/O Map Table 7-6 I/O Address and Devices I/O Address 000 ć 00F 020 ć 021 022 ć 023 040 ć 043 060 061 064 070 ć 071 080 081 ć 08F 092 0A0 ć 0A1 0C0 ć 0DF 108 ć 16F 170 ć 177 178 ć 1EF 1F0 ć 1F7 1F8 ć 1FF 200 ć 207 210 ć 21f 220 ć 224 225 ć237 238 ć 23F 240 ć 277 278 ć 27F 280 ć 2E7 2E8 ć 2EF 2F0 ć 2F7 2F8 ć 2FF 320 ć 35F 378 ć 37F 380 ć 38F 390 ć 29F 3A0 ć 3AF 3B0 ć 3BF 3B0 ć 3DF 3E8 ć 3EF 3F6 ć 3F7 3F8 ć 3FF
7-10
Device 8237 DMA controller #1 8259 interrupt controller #1 ELAN configuration registers 8253 system timer Keyboard Port B Keyboard RealĆtime clock and NMI mask POST debug port DMA page registers PS/2 port 92 8259 interrupt controller #2 8237 DMA controller #2 Reserved for PC Card general use Reserved (secondary hard disk controller) Reserved for PC Card general use Reserved for PC Card (primary ATA/IDE disk controller) Reserved for PC Card general use Touch screen clock Reserved for PC Card general use Reserved for SST radio Reserved for PC Card general use Reserved (bus mouse) Reserved for PC Card general use Reserved (Parallel Port; i.e., LPT1) Reserved for PC Card general use Reserved ( PC Card / COM ) Reserved for PC Card general use COM 2 (serial lid or scanner) Reserved for PC Card general use Reserved (PC Card/Parallel port) Reserved (PC Card/SDLC) Reserved for PC Card general use Reserved (PC Card/SDLC) Reserved (MDA/EGA/VGA) VGA/CGA COM3 (IrDA port) Reserved for PC Card (primary ATA/IDE disk controller) COM 1
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 255
Reference, System Information
BIOS/CMOS System Variables ROM BIOS is system software at the lowest layer of a PC operating environĆ ment. ROM BIOS provides a hardware abstraction level in a system so that higher levels of software need not be concerned with certain hardware details. Occasionally, it is helpful to examine the ROM BIOS or at least look at the data that it uses to get its job done. The following are lists of data areas on which the ROM BIOS operates. " NOTE:
A full description of each variable used by BIOS is beyond the scope of this guide.
ROM BIOS Data Area A PCĆcompatible ROM BIOS uses system variables stored, starting at location 40:0h. This address starts the first block of data immediately following the inĆ terrupt vector table. A de facto industry standard defines most of the variables on which a ROM BIOS must operate. In the following table, the entries unique to the NORANDR BIOS are italicized and bold. The rest are defined in accorĆ dance with the industry standard. Table 7-7 BIOS Data in System RAM Addr 40:00 40:08 40:0E 40:10 40:12 40:13 40:15 40:17 40:19 40:1A 40:1C 40:1E 40:3E 40:3F 40:40 40:41 40:42 40:49 40:4A 40:4C 40:4E 40:50 40:60 40:62 40:63 40:65 40:66
Size 4 words 3 words word word byte word word word byte word word 16 words byte byte byte byte 7 bytes byte word word word 8 words word byte word byte byte
Description I/O address of up to four asynchronous communications adapters (COM1ćCOM4) Reserved: I/O address, up to 3 printer adapters (LPT1 LPT3) Segment address of extended BIOS Data Area Equipment status word (Returned by interrupt 11h) Reserved: POST status Conventional memory size in kilobytes (returned by INT12h) Pass/Fail indicators for RAM POST test Keyboard shift flags AltĆkeypad accumulator Pointer to next keycode in keyboard buffer Pointer to next available location to save a keycode in the keyboard buffer Circular keyboard buffer Reserved: diskette recalibrate status Reserved: diskette motor status Reserved: diskette master timeĆout control Diskette status return codeĊstatus of last RAM card access Reserved: diskette controller status bytes Video mode setting Number of video columns in memoryĊnot all columns are represented onscreen Current page size (in bytes) Current page address Cursor position for each page Cursor display mode (start/end line) Current display page I/O address of display hardware Current mode select register Current palette value PEN*KEY R 6100 Computer Programmer’s Reference Guide
7-11
7. Reference, System Information
SECTION 7
Page 256
7. Reference, System Information
Reference, System Information
SECTION 7
Table 7-7 (Continued) BIOS Data in System RAM Addr 40:67 40:6B 40:6C 40:6E 40:70 40:71 40:72 40:74 40:75 40:76 40:77 40:78 40:7C 40:80 40:82 40:84 40:85 40:87 40:88 40:89 40:8A 40:8B 40:8C 40:8D 40:8E 40:8F 40:90 40:91 40:92 40:93 40:94 40:96 40:97 40:98 40:9C 40:A0 40:A1 40:C8 40:D2 40:D4 40:D8
7-12
Size dword byte word word byte byte word byte byte byte byte 4 bytes 4 bytes word word byte word byte byte byte byte byte byte byte byte byte byte byte byte byte 2 bytes byte byte dword dword byte 39 bytes 10 bytes word 4 bytes 20 words
Description Segmented address of video option ROM Reserved: the last interrupt that occurred Time of day counter, low word Time of day counter, high word Timer overflow indicator System break flag System reset flag Reserved: last hard disk status Number of fixed drives Reserved: fixed disk control byte Reserved: fixed disk port offset Reserved: printer timeĆout table Serial timeĆout table Offset to start of keyboard buffer Offset to end of keyboard buffer Number of rows on screen(24/25) Character height (bytes/char) video control bit flags Video feature bit flags VGA control bit flags Display combo code table index Reserved: diskette data rate info Reserved: fixed disk status register Reserved: fixed disk error register Reserved: fixed disk interrupt flag Reserved: diskette controller information Media type for drive 0 Media type for drive 1 Media type for drive 2 Media type for drive 3 Reserved: current track for each drive Keyboard status byte Keyboard LED status byte Segmented pointer to user wait flag Wait timeĆout data word Wait active flag Reserved Reserved for real mode restart stackĊused by RESTART RS-232 timeĆout counterĊused by interrupt 14h ReservedĊused by POST ReservedĊfor NORAND BIOS
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 257
Reference, System Information
CMOS Registers Registers in CMOS RAM are provided as part of a realĆtime clock interface. These registers are accessed by writing a register number to port 70h, then eiĆ ther reading or writing port 71h to access the contents of the specified register. The first few registers are realĆtime clock registers. In the list that follows, NoĆ randĆspecific register definitions are italicized and bold. The remaining regisĆ ters are defined by PC compatibility standards. Table 7-8 CMOS Register Assignments Register Name RTC_SECONDS RTC_SECONDS_ALARM RTC_MINUTES RTC_MINUTES_ALARM RTC_HOURS RTC_HOURS_ALARM RTC_WEEKDAY RTC_DAY RTC_MONTH RTC_YEAR RTC_REG_A RTC_REG_B RTC_REG_C RTC_REG_D RTC_CENTURY CMOS_DIAGS CMOS_SHUTDOWN SD_NORMAL_RESET SD_REAL_MODE_ENTRY SD_BOOTSTRAP SD_EOI_JMP SD_FAR_JMP SD_BLOCK_MOVE1 SD_MEM_TEST SD_BLOCK_MOVE2 SD_FAR_JMP2 SD_IRET SD_FAR_RET CMOS_DISKETTE1_TYPE CMOS_DISKETTE2_TYPE CMOS_FDISK_TYPE CMOS_EQUIPMENT CMOS_BASE_MEMLO CMOS_BASE_MEMHI CMOS_XTD_MEMLO CMOS_XTD_MEMHI CMOS_FDISK1_TYPE
Assignment equ 0 equ 1 equ 2 equ 3 equ 4 equ 5 equ 6 equ 7 equ 8 equ 9 equ 10 equ 11 equ 12 equ 13 equ 032h equ 0Eh equ 0Fh equ 0 equ 1 equ 4 equ 5 equ 6 equ 7 equ 8 equ 9 equ 10 equ 11 equ 12 equ 10h equ 11h equ 12h equ 14h equ 15h ; conventional memory size equ 16h equ 17h ; extended memory size equ 18h equ 19h PEN*KEY R 6100 Computer Programmer’s Reference Guide
7-13
7. Reference, System Information
SECTION 7
Page 258
7. Reference, System Information
Reference, System Information
SECTION 7
Table 7-8 (Continued) CMOS Register Assignments Register Name CMOS_FDISK2_TYPE CMOS_CHKSUM_HI CMOS_CHKSUM_LO CMOS_POST_XTD_MEMLO CMOS_POST_XTD_MEMHI CMOS_DOS_FLAGS bMasterModeBoot bDefaultDrive CMOS_FLASH_INFO FLASH_1_512K FLASH_2_512K FLASH_3_512K FLASH_4_512K bATMEL bAMD
7-14
Assignment equ 1Ah equ 2Eh ; checksum for 10h–2Dh equ 2Fh equ 30h ; posted extended memory size equ 31h equ 3Fh ; ROM DOS boot flags equ 01h ; MasterMode boot bit equ 06h ; 00=A:, 01=B:, 10=C:, 11=D: equ 40h equ 00h ; Bit values define flash size equ 01h equ 02h equ 03h equ 40h ; Set only for Atmel Flash type equ 80h ; Set only for AMD flash type
PEN*KEY R 6100 Computer Programmer’s Reference Guide