The text of a manual · part 23 of 28
PEN*KEY 6400 Computer Programmer's Reference Guide: Section 6: Reference, System Information, pages 189 to 196
Pages 189 to 196 of 234, from PEN*KEY 6400 Computer Programmer's Reference Guide
The original document is the PDF (1.4 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.
For the Intermec 6400
Page 189
Section 6
Reference, System Information "
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
Introduction This section contains system information, intended for supporting application programming efforts on the PEN*KEYR 6400 Computer. This includes information about hardware ports, messages, error codes, I/O and IRQ maps, system variables. Topic Summary Topic
Page
ROM DOS 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-2
Boot Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-4
System Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-8
Audible Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-9
Hardware Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-10
IRQ and Other Hardware Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-10
I/O Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-11
BIOS/CMOS System Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-12
BIOS data, addresses, sizes, and descriptions CMOS register assignments and their values
List of Tables Table
Page
Table 6-1, System Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-8
Table 6-2, Audible POST Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-9
Table 6-3, Hardware Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-10
Table 6-4, Hardware Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-10
Table 6-5, I/O Addresses and Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-11
Table 6-6, BIOS Data in System RAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-12
Table 6-7, CMOS Register Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-14
PEN*KEYR 6400 Programmer’s Reference Guide
6-1
Page 190
Reference, System Information
SECTION 6
ROM DOS 5 The ROM DOS 5 product, shipped in the 6400 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 difference 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 the code can be loaded. In the 6400 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 initialization 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, the following default shell statement is used: SHELL=C:\COMMAND.COM /P C:\
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 available 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 applications. However, since ELANUMP.SYS cannot support expanded memory, EMM386.EXE is still the only method for providing expanded (EMS) memory.
COMMAND.COM as Command Processor The standard MS-DOS 5 version of COMMAND.COM is provided in flash. However, one change has been made to COMMAND.COM to make it more useful on the 6400 Computer, as described later in this section. If you prefer to use the unmodified version of COMMAND.COM, you can get it from the full DOS option, available on diskette. Copy the new COMMAND.COM over the old one on the C:\ drive.
CONFIG.SYS Processing 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.
6-2
PEN*KEYR 6400 Programmer’s Reference Guide
Page 191
SECTION 6
Reference, System Information
COMMAND.COM Changes, Specific to Norand All of the messages displayed by COMMAND.COM have been shortened or split into multiple lines so they will fit the 20-column screen on the 6400 Computer. " "
Error messages are displayed as numbers. The critical error handler displays a menu that includes numeric prompts that the user can respond to without using an alpha keyboard. Example:
“Abort, Retry, Fail?” be 2) Abort, 1) Retry, 3) Fail? The reason the numbers are not always in a natural order is that each line is displayed independently, depending on the options that are available. If the numbers were to be rearranged to look correct for one condition, they would look wrong for another. "
"
The Echo command was modified to allow “ECHO,” to display a blank line instead of “Cannot load program.” In a related change, comma (,), equals (=), and quote (”) now terminate a keyword comparison. A bug with the GOTO was eliminated so that it now works correctly with labels of two or more characters.
PEN*KEYR 6400 Programmer’s Reference Guide
6-3
Page 192
Reference, System Information
SECTION 6
Boot Process The following paragraphs describe the various methods used to boot the 6400 Computer. Also described are the options that are possible during the boot process, which you exercise by holding a key down during the boot phase or by reconfiguring a CMOS setting.
Four Key Reset The 6400 Computer can be reset by pressing four keys simultaneously for approximately one second: " " " "
BLUE shift plane key GOLD shift plane key ENT (left enter) ENT (right enter)
Cold Booting A cold boot cycle normally should never be performed by a customer. A cold boot is defined as a boot cycle in which power is applied for the first time (when the 6400 Computer contains no backup battery or main battery, and no external power is being applied). A cold boot is normally done only at the factory. The only time you would need to be perform a cold boot, would be after a situation where the main battery pack has drained, no backup battery was installed, and no external charge is applied. The following paragraphs describe some of 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 (POST) are Run A series of tests is performed on the hardware to ensure that the system is functioning properly. For the most part, these tests are performed without any 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, refer to the Audible Error Codes paragraph, in the section entitled, Reference.
Video BIOS is Enabled Early in the Power-On Self-Test (POST) phase, the video BIOS is given control to initialize the screen. From that point, errors are reported by messages on the screen rather than by beeps. 6-4
PEN*KEYR 6400 Programmer’s Reference Guide
Page 193
SECTION 6
Reference, System Information
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. Since the standard power-on defaults do not include a RAM drive, no RAM drive is present after a cold boot. In standard PCs, the CMOS RAM is usually the only memory that is maintained by a backup battery. In contrast, all memory in the 6400 Computer is maintained at all times, with a fully charged backup battery. This memory can be maintained for approximately 100 hours in the event of a main battery failure. The CMOS RAM is special only because of the PC-compatible software that expects the CMOS RAM to exist and to contain certain configuration values.
Invalid RAM Drive Message One of the first tests involving extended memory is to verify that the RAM drive, if it exists, has not been corrupted by a power failure. If the RAM drive signature has been corrupted, the RAM drive is removed and the default boot drive is set to drive C. The Invalid RamDrive message is displayed and a single beep is issued.
Testing XMS Memory Message This message displays while the power-on test of extended memory is performed. The initials XMS refer to the eXtended Memory Specification published by Lotus, Intel, Microsoft, and AST Research. The XMS specification describes a program interface for accessing extended memory, the High Memory Area (HMA), and upper memory. You will 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 associated 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 scans through system memory in the address range of C800:0 through F000:0, looking for BIOS extensions. On PC-compatible computers, a BIOS extension is any software or firmware that runs prior to the time that the operating system is loaded. BIOS extensions execute directly from write-protected memory, such as ROMs or shadow RAM. A special signature precedes each BIOS extension. After that PEN*KEYR 6400 Programmer’s Reference Guide
6-5
Page 194
Reference, System Information
SECTION 6 signature has been validated, the corresponding BIOS extension is made active (or posted). Currently the 6400 Computer includes the following BIOS extensions: the Datalight, Inc., Cardtrick Flash File System and ROM DOS 5 (ROMDOSLO.BIN). The Flash File System is already located and executed prior to this stage of the boot process since it resides in the address range of D000:0 through D7FF:F. ROM DOS 5 itself is located at E000:0. That leaves 32 kilobytes of shadow RAM between C800:0 and CFFF:F and 32 kilobytes between D800:0 and DFFF: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, this 32 kilobytes of shadow RAM is scanned for BIOS extensions and remains resident as write-protected RAM.
ROM DOS 5 Is Booted When the DOS 5 option ROM is posted (as a BIOS extension), it replaces interrupt 19h with a vector that points back into the ROM DOS 5 code. It then returns 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 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 ROM DOS 5 product. The primary difference is that much of ROM DOS executes directly from shadow RAM instead of from conventional memory. All the DOS variables and a significant amount of code as well 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 simply A: or C:.
Drives A Through D Are Initialized One of the first interactions between ROM DOS 5 and the ROM BIOS is the initialization of DOS drives. Using interrupt 13h, the ROM BIOS supports two drives, as follows: Drive 0 = A: The first PC Card slot, used only for 2.4GHz, 902MHz, and UHF radio cards. Drive 1 = B: Not available. A DOS 5 embedded device driver uses Interrupt 15h, Function 87h (move extended memory), to access the RAM drive (drive D:) and the flash drive data (drive C:, accessed through flash file system Int 13h). ROM DOS 5 obtains the starting address for each drive by reading values stored in the BIOS data area of system memory.
CONFIG.SYS Is Loaded and Processed Once ROM DOS has initialized, it reads and processes the CONFIG.SYS file on the default drive. The default drive is chosen by now, by means of the boot selection 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 sample CONFIG.SYS files and notes on booting. 6-6
PEN*KEYR 6400 Programmer’s Reference Guide
Page 195
SECTION 6
Reference, System Information
COMMAND.COM Is Processed The default command shell for ROM DOS 5 is: SHELL=C:\COMMAND.COM /P C:\
After COMMAND.COM is loaded by this SHELL statement, AUTOEXEC.BAT is processed.
Warm Booting (or Resetting) A warm boot is only slightly different from a cold boot. Since the two forms of booting are so similar, this publication may refer to booting without specifying warm or cold. Such references would imply that the form of boot does not matter. For warm booting, the 6400 Computer must have been previously booted and still have power applied to it from either batteries or a charger. To warm boot, press the sequence CTL, ALT, and DEL. POST procedures are re-executed and ROM DOS restarts. If a RAM drive has been 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 performed. For example, the extended memory 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 extended memory is allocated to the RAM drive, the clicking associated with the extended memory test is not heard and 0 KB of extended memory is reported.
Boot Drive Selection The 6400 Computer always boots DOS 5 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. To obtain the ROM DOS bootup menu, press and release the [ALT] key, after resetting the unit. You can use the “Start from” menu to override the CMOS setting by manually selecting the drive that is to be the default drive. The drive selected at the “Start 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 (C:) is used instead of the selected drive. Also, you can choose to skip the reading of the CONFIG.SYS and AUTOEXEC.BAT files, and boot directly to the C:> prompt. This can be very useful in case there is a problem in either of those two files. See the Setup of PEN*KEY 6400 for PC Development paragraph, in the Getting Started section, for more information on the “Start from” menu.
PEN*KEYR 6400 Programmer’s Reference Guide
6-7
Page 196
SECTION 6
Reference, System Information
System Messages Table 6-1 System Messages
Display Message
Meaning
Response
PEN*KEY BIOS Version: {n.nn}
Display of BIOS version
None
Testing XMS Memory
Performs extended memory tests Reports number of extended memory KB tested Reports number of flash memory KB found Reports loading MS-DOS from ROM and shows revision level
None
Memory in 6400 Computer, including RAM drive, is cleared. Power failure corrupted RAM drive but left CMOS intact. This occurs when swapping batteries and there is either a bad or missing backup battery.
Application download is required unless the application was not stored on the RAM drive.
Hot Int. 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
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.
Contact Customer Support Center
{nnnn} Keyboard Failure {nnnn} Memory Failure COM1 COM2 COM3 Memory Test Failure No FLASH Memory
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. Contact Customer Support Center
{nnnn} KB Extended {nnn} KB FLASH Loading MS-DOS 5 ROM U.S. Patent #4955066 Norand Release {n.nn} Invalid CMOS Invalid RAM Drive
6-8
PEN*KEYR 6400 Programmer’s Reference Guide