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 13 of 28

PEN*KEY 6400 Computer Programmer's Reference Guide: Section 4: Communications and Device Support, pages 95 to 102

Pages 95 to 102 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 95

SECTION 4

Communications and Device Support

Sticky Keys The operation of certain key combinations on the 6400 keyboard is somewhat different than the standard PC keyboard. The green SHFT, GOLD, BLUE, ALT, and CTRL keys are referred to as “Sticky” keys. The way a “Sticky Key” works, is as follows: Press (and release) one of the “Sticky” keys. Then press another key.

Normal Results Using these “Sticky” keys on the 6400 keyboard in the manner described in the previous paragraph, provides the same results as pressing and holding the shift key on the standard PC keyboard.

Some Unusual Results If you press (and release) one of the “Sticky” keys, then press (and hold) a second key, then press yet a third key; the results are not as you might expect. The third key press causes the same result as if you were to press (and release) the “Sticky” key, then press the third key.

Some Examples If you press (and release) the green SHFT key, then press the “e” key, the result is the upper-case “E”. Whereas, if you press (and release) the green SHFT key, then press (and hold) the “e” key, then press the “f” key, the result is the upper-case “F”.

Shift Keys The 6400 Computer has three different “shift” function keys. These keys temporarily shift the function of the keyboard. Both the 41-key and the 51-key keyboards have a green SHFT key, a blue key and a yellow key. The green SHFT key is a standard shift key. Both the blue key and the yellow key work just like the shift key, allowing access to different alternate functions. There may be up to three sets of alternate functions on the keyboard. The blue key allows access to functions coded with blue characters on the keyboard. The yellow key allows access to functions coded with yellow, or gold, characters on the keyboard. The green SHFT key shifts between lowercase and uppercase characters, similar to a standard PC keyboard. For more detailed explanations of keys on the keyboard, and how they work, refer to the 6400 Computer User’s Guide.

PEN*KEYR 6400 Programmer’s Reference Guide

4-17

Page 96

Communications and Device Support

SECTION 4

Display Video Modes Refer to the Controlling the Display with APIs paragraph, page 4-24, for a list of APIs that can be used for controlling the video display from an application.

Standard Mode 3 vs Graphics Mode The 6400 Computer is CGA compatible in standard modes. In these modes, you can write directly to the video memory. Since the BIOS puts the system into graphics mode 43h, whenever the character size is changed from 8x8, the video memory could produce undesired results if your application writes directly to the video memory. Therefore, if your application requires the system go into graphics mode, make sure the development platform is capable of directing the display output to the BIOS, rather than directly to the video memory.

Mode 43h This 6400 specific video mode allows for larger and smaller characters than the typical 8x8 offered by the standard CGA modes. Once set in this mode, all video access should go through the BIOS or DOS interface. " NOTE:

Blinking is not supported in Video Mode 43h.

Cursor Mode Within emulations, you can change the style of the cursor, using the “Cursor Mode” option in the “Display Options” menu. The possible choices are as follows: "

"

"

"

"

Blinking Cursor, Within emulations, the blinking cursor (represented by an underline character) only works with standard mode 3. This is the 18 rows by 20 columns mode. When the blinking cursor is enabled for other font sizes, the underline (text and cursor) does not work. Block Cursor, A “Block” cursor is indicated by a reverse video (highlighted) block (J) character. Block Blink Cursor, The “Block Blink” cursor is represented by blinking a reverse video block at the current position in the line. Underlined Cursor, An “Underlined” cursor is indicated by a line under the character at the cursor position. Underline Blink Cursor, The “Underline Blink” cursor is represented by blinking an underline below the character at the current position.

Backlight Control The backlight time is adjusted by selecting Backlight from the Display Options menu. The value chosen sets the number of seconds the backlight stays on after a key is pressed. You can turn the backlight on or off with the [green SHFT] key and the up arrow key. Refer to the Sticky Keys paragraph on page 4-17, for an explanation of the use of [SHIFT] keys on the 6400 Computer. 4-18

PEN*KEYR 6400 Programmer’s Reference Guide

Page 97

SECTION 4

Communications and Device Support

Contrast Control The following procedures can adjust the contrast; but keep in mind, on a Four-Key reset, the system comes up with the default conditions set. Darker, Press the [green SHFT] key once, then press the right arrow key to make the contrast darker. Repeat this key sequence to make it even darker. Holding the right arrow key down, after pressing the [green SHFT] key, also repeats the operation. " Lighter, Press the [green SHFT] key once, then press the left arrow key to make the contrast lighter. Repeat this key sequence to make it even lighter. Holding the left arrow key down, after pressing the [green SHFT] key, also repeats the operation. Refer to the Controlling the Display with APIs paragraph, page 4-24, for a list of APIs that can be used to change the contrast from an application. "

Refer to the Sticky Keys paragraph on page 4-17, for an explanation of the use of [SHIFT] keys on the 6400 Computer.

Display Annunciators The annunciators show the current status of the operation in progress. Each annunciator has a designated position on the annunciator status line. You can select and change the location of the annunciators on your display screen. The choices are any of the four corners of the display. The lower right corner is the default location. You can also select Stealth Mode, which only displays the annunciators when you make a change; then it disappears with the first key pressed. Refer to the 6400 User ’s Guide for additional information on the annunciators. Refer to the Controlling the Display with APIs paragraph on page 4-24, for a list of APIs that can be used to change the annunciators from inside an application. Refer to the Battery Status paragraph on page 4-28, concerning how the status is displayed with the battery annunciator. " NOTE:

In order to eliminate unnecessary activity, the annunciators are only updated when there is an actual change (i.e., from 3 to 2 icons), or when you exit a DOS program, or when you make an Intermec specific call to refresh the annunciators to current keyboard settings. Thus, if an application uses the annunciator line on the display, they may disappear for awhile, but should return when the status changes.

PEN*KEYR 6400 Programmer’s Reference Guide

4-19

Page 98

SECTION 4

Communications and Device Support

Viewport The 6400 display is only one-eighth the size of a full CGA screen. It is merely a viewport into the logical (or virtual) display. For applications that display information beyond the physical boundaries of the 6400 display, the viewport can be positioned to access all of the information, as described in the following paragraphs. To control the viewport from an application, refer to the Controlling the Display with APIs paragraph, page 4-24, for a list of APIs.

Positioning the Viewport Using MOVSCRN.EXE The program, MOVSCRN.EXE positions the viewport to one of two specific locations, using the following commands. It can either be run from the DOS prompt or from the AUTOEXEC.BAT file. To position the viewport at the bottom left corner of the logical display: MOVSCRN

0

To position the viewport at the top left corner of the logical display: MOVSCRN

1

Within an Application To position the viewport, within an application, supply the following register values and call INT 10h. If the viewport is not “locked”, its position can be changed. An application can set the position of the viewport, using a API BIOS call, as described below. See the Window Pan Mode and Borders interrupts, in the BIOS Interrupt Support section, for further details. The position of the viewport is moved to the lower-left corner of the display, by setting the following registers, then call INT 10h: On entry: AX = 1200h BH = 00h BL = 0F6h

The position of the viewport is moved to the upper-left corner of the display, by setting the following registers and call INT 10h: On entry: AX = 1201h BH = 00h BL = 0F6h

Refer to the Controlling the Display with APIs paragraph, page 4-24, for other APIs that can be used for controlling the viewport from an application.

Panning the Viewport The viewport can be panned (or scrolled) to view other portions of the virtual screen. If you hold the Blue Shift key down (item 10 in Figure 4-2 on page 4-13) and tap the Window Panning Keys (items identified as 3 in the same figure), you can pan up, down, right, and left. 4-20

PEN*KEYR 6400 Programmer’s Reference Guide

Page 99

SECTION 4

Communications and Device Support

Panning can also be programmed into an application, by utilizing the APIs listed in this section and in the BIOS Interrupt Support section of this publication. The “Scroll Window” settings, in the “LCD Parms” menu, determine the increment at which it scrolls.

Setting the Viewport to Follow the Cursor The specified coordinates merely provide a starting point for the viewport. When the cursor position exceeds the boundary defined by the parameters, the viewport follows it as text is entered. Using MOVSCRN.EXE Position the viewport at at a specified location on the logical display, and allow it to follow the cursor, with the command: MOVSCRN

2 wwxx yyzz where: ww = row for the top left corner; xx = the column for the top right left; yy = row for the bottom right corner; zz = column for the bottom right corner. MOVSCRN.EXE requires that row/column for both the wwxx and the yyzz parameters be in the specific order shown above. Within an Application To set the viewport to follow the cursor, within an application, supply the following register values and call INT 10h. An application can set the viewport to follow the cursor, using an API BIOS call. Set the following registers and call INT 10h to set the viewport size: On entry: AX = 1202h BH = 00h BL = 0F6h CH = top row CL = left col DH = bottom row DL = right col

The CX and DX registers define the window in which the cursor can move without the viewport moving. Once the cursor moves outside, the viewport follows. When the cursor reaches the boundary defined by registers CH, CL, DH, and DL, the viewport will follow it as text is entered.

Locking the Viewport After the previous code has been executed, you should lock it in place. Set the following registers and call INT 10h to accomplishes this: On entry: AX = 1206h BH = 00h BL = 0F6h PEN*KEYR 6400 Programmer’s Reference Guide

4-21

Page 100

SECTION 4

Communications and Device Support

Unlocking the Viewport Once the viewport is locked, you must unlock it before you can use the keys to move the viewport window, or to send commands to move it. Set the following registers and call INT 10h to unlock the viewport: On entry: AX = 1207h BH = 00h BL = 0F6h

Fonts, Rows, and Columns When you change the font size, the number of rows and columns that can appear in the viewport is automatically changed. When the number of rows and columns is changed, the appropriate font size is automatically changed to match the rows and columns.

Changing Font Sizes Using the Set Physical Display Size API, provides a means of changing the font size. This is done by setting the following registers, then calling INT 10h: On entry: AX = 1200h BX = 00FAh CH = number of rows CL = number of columns

(change screen size function)

Once this is done, the system is in NORAND CGA video mode 43h, in which only TTY read/writes through DOS or BIOS is permitted. Writing directly to video memory does not work correctly.

Standard Display This display (formerly the Wide Display) is a monochrome LCD with 160 pixels in width and 128 pixels in length. The character size is changeable by parameter menus. The default size for this display is 20 columns by 16 rows. Other available sizes are as follows: Rows: 5, 8, 10, 16 Columns: 10, 13, 16, 20, 26, 32

Any of these combinations of rows and columns are available, using the LCD Parms menu.

Display Used on Older Units " NOTE:

This display (formerly the Standard Display) has been discontinued. The description is included here for the benefit of those who may still be using the display described in this paragraph. Refer to the Standard Display (formerly the Wide Display) for details of the display currently being used.

This display is a monochrome LCD with 160 pixels in width and 144 pixels in length. The character size is changeable by parameter menus. The standard size is 20 columns and 18 rows. Other available sizes are as follows: Rows: 6, 9, 12, 18 Columns: 10, 13, 16, 20, 26, 32 4-22

PEN*KEYR 6400 Programmer’s Reference Guide

Page 101

SECTION 4

Communications and Device Support

Any combination of rows and columns are available, using the values listed above. The program, ROWCOL.EXE, can set screen size. Values can be entered at the DOS command line; or entering no parameters, the program prompts you for the values. The following is an example of using command line parameters to set the screen size for 18 rows and 20 columns. ROWCOL 18 20

The following is an example of allowing the program to prompt for the values to set the screen size to 12 rows and 32 columns. You enter the name of the program, without any parameters. The program prompts you for the “Number of rows”; and you respond with the value for the number of rows you want. The program prompts you for the “Number of columns”; and you respond with the value for the number of columns. ROWCOL Number of rows>12 Number of columns>32

Non-PC Fonts The fonts for user-defined, non-PC, fonts are stored in upper flash. If you have any of these fonts that need to be used, they must be downloaded each time the screen size API is called; and must be done after the screen size is set. There is an INT 10h API that can be used to replace any font. Set the following registers and call INT 10h to accomplish this: On entry: AX = 1400h BL = 00h BH = number of bytes per character CX = number of characters to store DX = character offset into font of first character to store ES:DI = address of start of user font table

Unavailable Characters Several characters, from the upper 128 characters in the 255 character set (0x80 through 0x83), are unavailable for use, as well as several characters from the character set between 00h through 20h. This also means that some of the international characters are missing. These characters are dedicated for use with the annunciators. MISCTSR.EXE provides the use of different set of characters. –F1 provides use of an alternate character set, which includes: 00h–06h, 09h, 0Bh, 0Fh, 1Ah, 1Bh, 7Fh, FEh, and FFh. –F0 option restores the default character set, which consists of the following: 10h–16h, 1Ah, 1Bh, 1Eh, and 80h–84h.

PEN*KEYR 6400 Programmer’s Reference Guide

4-23

Page 102

SECTION 4

Communications and Device Support

Controlling the Display with APIs You can control the display from an application, using INT 10h APIs. The categories in the table below have been alphabetized. Refer to the BIOS Interrupt Support section for detailed interrupt definitions of these and other display functions. Table 4-4 INT 10h Display Services INT 10h Display Services

AH=

AL=

BL=

3x4x Specific Modes Select Chase Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Select Fixed Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Select Setparms Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Select Graphics Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

12h 12h 12h 12h

E0h E1h E2h E3h

FCh FCh FCh FCh

Annunciator Reset Annunciator Line to Current Keyboard Settings . . . . . Enable/Disable Annunciator Panning . . . . . . . . . . . . . . . . . . . . Write BIOS Annunciator Values (with attribute) . . . . . . . . . . . Write BIOS Annunciator Values (without attribute) . . . . . . . .

12h 12h 12h 12h

03h 04h

F6h F6h F8h F9h

Backlight Control Turn Backlight On . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Turn Backlight Off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Toggle Backlight . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read Backlight Intensity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Set Backlight Intensity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Set Backlight Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Refresh Backlight . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read Backlight Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

12h 12h 12h 12h 12h 12h 12h 12h

00h 01h 02h 03h 04h 05h 06h 07h

FFh FFh FFh FFh FFh FFh FFh FFh

Character and Attribute Read Character and Attribute at Current Cursor Position . . Write Character and Attribute at Current Cursor Position . Write Character (no attribute) at Current Cursor Position . . Teletype Character Write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

08h 09h 0Ah 0Eh

Contrast Control Get Contrast (temperature compensated) . . . . . . . . . . . . . . . . . Set Contrast (temperature compensated) . . . . . . . . . . . . . . . . . Get Contrast (absolute, no compensation) . . . . . . . . . . . . . . . . . Set Contrast (absolute, no compensation) . . . . . . . . . . . . . . . . . Compensate Contrast . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Turn Contrast Heater Off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Turn Contrast Heater On . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

12h 12h 12h 12h 12h 12h 12h

00h 01h 02h 03h 05h 06h 07h

FEh FEh FEh FEh FEh FEh FEh

Cursor Set Cursor Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 01h Set Cursor Position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 02h Read Cursor Position and Type . . . . . . . . . . . . . . . . . . . . . . . . . . 03h

4-24

PEN*KEYR 6400 Programmer’s Reference Guide