Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 2 of 15

FMT1000 Series Programmer's Guide, pages 9 to 20

Pages 9 to 20 of 142: About This Guide; Chapter 1 FMT1000 Architecture

The original document is the PDF (965 KB). 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 Symbol FMT-1020

Page 9

About This Guide Introduction This manual is intended for programmers who are creating programs that will run on the FMT1000 Series of data collection computers. All of the FMT1000 Series computers have the same internal architecture and are covered in this manual. Differences such as keyboard layout are noted where necessary. The most important thing to remember about programming the FMT1000 Series computers is that they are truly DOS PC compatibles and that most software will run without modification. Because FMT1000 Series computers are DOS compatible, they can be programmed using any DOS development system or language, from assembler to C to BASIC. Although the extended features described in this manual are unnecessary for many applications, intelligent use of these features will enhance the value and usefulness of FMT1000 series computers in every application. This manual covers the following subject areas: • FMT1000 Series architecture – what's in the product and how the pieces are connected • Memory management • Configuration and use of the I/O coprocessor.

1

Page 10

FMT1000 Series Programmer’s Guide

Key Conventions for the FMT1000 Series Programmer's Guide Keys and key sequences are printed in <lowercase> and enclosed in broken brackets. For example: • <enter> the enter or return key.

• <tab> the tab key.

• <ctrl>-<z> the FMT1000 Series computer key sequence equivalent of the standard IBM PC <CTRL+Z> key combination.

• <f6> the F6 function key.

• <udk1 up>

User Defined Key.

See page 2-101 for more information about user-defined keys. If you are using the FMT1000 Series computer as your workstation, you must press and release the <ctrl> key, then press and release the <z> key to achieve the same result as when using the standard IBM PC keyboard. No two or more keys are pressed at the same time in operating the FMT1000 Series computer. Command lines to be entered from the keyboard will appear in BOLD UPPERCASE COURIER, e.g., FORMAT A:. The prompt appears in regular courier, e.g., C:\> or a simple colon (:). Commands entered in DOS are shown using a DOS style prompt with the correct drive and subdirectory, e.g., F:\LOGIN>. Commands entered on the Novell NetWare server are shown using the Novell prompt, : (colon).

2

Page 11

Chapter 1 FMT1000 Architecture Introduction The FMT1000 Series includes three models: • the compact FMT1020 • the rugged FMT1040 • the FMT1060 for time clock applications.

The specific features of each model are covered in the installation guide provided with each unit. The architecture and command set are common to all models. Throughout this manual all models will be referred to as the FMT1000 Series computer. FMT1000 Series computers contain two processors for operating and managing the operations of the unit: • The CPU is the 8X86-compatible main processor that runs DOS and your applications. • The coprocessor controls much of the FMT1000 Series computer’s specialized I/O capability. These two processors are connected in two ways: • The CPU sends commands formatted as ASCII strings to the coprocessor, using COM2. This permits commands to be sent to the coprocessor by any program that can write to COM2, including redirected I/O from a batch file. (See Figure 1-1.) For example: echo SBL1 >com2 turns the display backlight on. • The coprocessor responds to requests for information and transmits 1-1

Page 12

FMT1000 Series Programmer’s Guide information coming from I/O devices, either by using the keyboard port, making the data appear as though it had been typed, or by sending it to COM2. Complete details of coprocessor operation and interfacing are contained in Chapter 2 of this manual.

Figure 1-1. FMT1000 Series Computer Architecture

1-2

Page 13

FMT1000 Architecture

Please continue to refer to Figure 1-1 as the other architectural features of the FMT1000 Series computer are described below.

CPU The FMT1000 Series CPU is the Chips & Technology F8680 PC/Chip processor. This highly integrated processor contains much of the basic I/O for the FMT1000 Series computer in addition to the CPU core. This processor, as used in FMT1000 Series computer, executes the 8086 instruction set, with an execution speed comparable to a 12-MHz 80286 processor. The processor does have extended capabilities, though not 100 % compatible with the 80286, that allow it to provide access to the high memory area and expanded memory (see memory management, below). For further information about the capabilities of the F8680 CPU, consult the Chips & Technology specifications. Note: With the wide availability of 80286, 80386 and compatible processors, it is very common to compile programs to use the extended features of these processors. Programs compiled in this manner will not operate correctly on a FMT1000 Series computer. You must recompile your entire program (all modules, not just those that have changed), disabling the use of 80286 and 80386 instructions. Programs that autodetect the CPU should work correctly if they use instruction based tests to determine CPU type. Programs that make oversimplified assumptions (e.g., if a high-density floppy is attached, the CPU must be at least an 80286) may cause problems.

1-3

Page 14

FMT1000 Series Programmer’s Guide

Memory The FMT1000 Series computer contains 1 MB of RAM. This memory may be exploited in various ways to afford optimal usage in a variety of systems. The first usage choice is presented during system setup, where a selection is made from two possible memory maps, A and B, as shown in Figure 1-2.

Figure 1-2. Memory Configuration Options

1-4

Page 15

FMT1000 Architecture

• Configuration A allows a base memory partition of 640 KB, which is the norm for PC-compatible computers. • Configuration B extends the base memory partition by 96 KB to a total of

736 KB. This extra memory is directly usable by DOS without further complication of a memory management program. More space is available, therefore, for loadable device drivers, TSR programs, and/or larger application programs. Configuration B is the simplest, most transparent way to obtain greater memory utilization. In some cases, some third-party programs may fail when presented with addresses above the 640 MB boundary. If you are using Configuration B, you should carefully test your application to ensure that it is compatible with the larger base memory configuration. Careful inspection of the configuration illustrations will reveal that in the transformation from map A to map B, 128 KB are removed from the memory above 1 MB, while only 96 KB are added to the base memory partition. This loss of 32 KB is dictated by the limitations of the on-chip memory management hardware. In many cases, the added base partition memory, which is so easily used, offsets the loss of capacity. Because the FMT1000 Series computer is a DOS-compatible computer, some of the same advanced memory utilization methods are available: • High Memory Area (HMA) • Extended Memory Manager (XMM) • Expanded Memory Manager (EMM) • Upper Memory Block (UMB).

The same concepts and methods with which the user is familiar on DOS machines may be used on the FMT1000 Series computer. However, the F8680 processor and its memory management hardware render the ordinary routines distributed with DOS for these purposes unusable here. Special routines distributed with FMT1000 Series computer are used in their stead. XMM and HMA are both implemented by the Extended Memory Manager. FMT1000 Series computers offer two from which to choose.

1-5

Page 16

FMT1000 Series Programmer’s Guide

• HIDOS.SYS, the simpler of the two, is the one which must be used if

Expanded Memory is also required. HIDOS.SYS provides no UMB support. • The second Extended Memory Manager is LPHIMEM.SYS. In addition to

XMM and HMA, this driver implements UMB storage, allowing use of DEVICEHIGH and LOADHIGH commands from DOS. LPHIMEM.SYS is incompatible with Expanded Memory. EMM is implemented by the driver PCCEMM.SYS. While fully functional on FMT1000 Series computer, the small area of RAM available for such use implies caution when implementing applications using EMM. Once again, PCCEMM.SYS is incompatible with the XMM LPHIMEM.SYS.

COM1 The COM1 port on the back of the FMT1000 Series computer is completely compatible with a standard PC COM1 port, including pinouts, base address, and interrupt.

CGA Output The CGA output port on the back of the FMT1000 Series computer is completely compatible with a standard CGA and may be connected to any compatible monitor (including CGA, EGA, and digital multisync) using the available cable. Programming is also completely CGA compatible.

Network Adapter The network adapter on the FMT1000 Series computer is implemented using a Fujitsu MB86965 network interface controller (NIC). Normally all network functions are performed by the supplied drivers, and there should be no reason to access the NIC registers directly. However, for reference, the I/O address of the NIC is 300H, and it is connected to interrupt 5.

1-6

Page 17

FMT1000 Architecture

Display Programming As can be seen from Figure 1-1, the LCD display is connected to the LPT1 port of the CPU via the I/O chip. This considerably eases the use of the display, since any program capable of writing to LPT1 can write to the display. A modified version of the standard BIOS Int 17 function is provided for this service.

Operational Differences There are several basic differences in operation of the display as compared to writing to a printer, and a number of extended function codes: • Because the full PC character set cannot be displayed, undisplayable characters are intercepted and mapped to a unique display pattern. • Carriage Return (0DH ) returns the cursor to the leftmost position of the same line. • Line Feed (0AH ) moves the cursor down one position in the same column and scrolls if necessary. • Form Feed (0CH ) clears the display.

BIOS Functions The BIOS functions respond as follows (numbers are in hexadecimal format unless otherwise noted): The normal three Int 17 functions remain the same (for each function, DX=0): Function in Hexadecimal

Description

AH 00

Send byte (AL-char. DX-0). Return status in AH.

AH 01

Init printer (DX-0). Always OK: returns 0 in AH.

AH 02

Get status (no parameters). Always OK: returns 0 in AH.

1-7

Page 18

FMT1000 Series Programmer’s Guide

Additional functions have been provided (for each function, DX=0 and all functions are in hex): Function in Hexadecimal

1-8

Description

AH 10

Initialize port and LCD panel. This is an LCD specific init routine which takes the place of INT 17 FX 01.

AH 11

Clear display. The display is written with white space to clear it.

AH 12

Update entire display. Writes a complete 80 character buffer to the display. This pointer is in segment: offset style (ES:[DI]).

AH 13

Write null-terminated string to display. This pointer is in segment: offset style (ES:[DI]).

AH 14

Return cursor and shift state tracking modes. Returns in BH: 0: Underline cursor (not displayed) 1: Underline cursor (displayed) 2: Block cursor (not displayed) 3: Block cursor (displayed) Returns in BL: 0: Shift state not tracked 1: Shift state tracked

AH 15

Set cursor and shift status tracking modes. The subfunction codes set in BH are: 0: Underline cursor (not displayed) 1: Underline cursor (displayed) 2: Block cursor (not displayed) 3: Block cursor (displayed) Set in BL: 0: Shift state not tracked 1: Shift state tracked A value of 10H is added to the value to set to indicate that a change of state is desired. Thus, BH=1 becomes BH=11

Page 19

FMT1000 Architecture

Function in Hexadecimal

Description

AH 16

Return cursor position. Returns the position of the cursor in the screen: BH=Row (0 or 1) BL=Column (0-39)

AH 17

Set cursor position. Set the desired cursor position in BH and BL: BH=Row (0 or 1) BL=Column (0-39) Any value outside valid range will be ignored.

AH 18

Cursor up one row.

AH 19

Cursor down one row.

AH 1A

Cursor left one column.

AH 1B

Cursor right one column.

AH 1C

Return location of display buffer. Returns the address of the 80 character buffer that is periodically copied to the display. Returns in ES:[DI]

AH 1D

Report Display Tracking Items BH 00000abc where (abc are binary register bits): a = cursor source (0: BIOS, 1: CRTC) b = CGA snow (0: snow, 1: remove snow) c = display speed (0: fast, 1: slow) BL = Display Tracking (0: disable, 1: enable)

AH 1E

Set Display Tracking Items BH 00000abc where(abc are binary register bits): a = cursor source (0: BIOS, 1: CRTC) b = CGA snow (0: snow, 1: remove snow) c = display speed (0: fast, 1: slow) BL = Display Tracking (0: disable, 1: enable) A value of 10H is added to the value to set to indicate that a change of state is desired. Thus, BH=1 becomes BH=11

AH 1F

Report current tracking mode BL= 1,2,3, or 4

1-9

Page 20

FMT1000 Series Programmer’s Guide

Function in Hexadecimal

1-10

Description

AH 20

Set new tracking mode in BL 1: 1x80 fixed 2: 1x80 follow cursor row 3: 2x40 fixed 4: 2x40 left justified, cursor in second row. A value of 10H is added to the value to set to indicate that a change of state is desired.

AH 21

Report tracking position BH: row position 0..23 for 2x40, 0..24 for 1x80 BL: column position 1..39 for 2x40, 0 for 1x80

AH 22

Set tracking box position BH: row position 0..23 for 2x40, 0..24 for 1x80 BL: column position 1..39 for 2x40, 0 for 1x80

AH 23

Force display update