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 11 of 14

Pro4000 FieldBook, pages 101 to 110

Pages 101 to 110 of 140

The original document is the PDF (4.6 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 Juniper Systems Pro-4000

Page 101 read from a scan by OCR; it may hold reading errors

Pro4000 Get Keystroke Function (Pro4000_Getch())

The following function can be used to put the Pro4000 to sleep while waiting for a keystroke char Pro4000_Getch(void)

while(!kbhit()) // do sleep function until key is pressed {

_asm

{ push ax push bx mov ax, 2F19h mov bl, 10000000b = //load regs for sleep call int 10h //cail sleep function pop bx pop ax

} } return(getch()); /tight }

Pro4000 CPU Busy Function (Pro4000_CpuBusy)

This function overrides the Power Manager and causes the CPU to enter a high power state. It remains in this state until the Pro4000_CpuDone function is called. It is used to temporarily speed up the CPU when data needs to be processed rapidly void Pro4000_CpuBusy (void) {

_asm. { push ax push bx mov ax, ZEOBh mov bl, 0 // setup regs for function call int 10h // call cpu busy function pop bx pop ax

Programming Guide Page 8-5

Page 102 read from a scan by OCR; it may hold reading errors

Pro04000 CPU Done Function (Pro4000_CpuDone)

This function is called to restore the Power Manager to the normal state after a CPU busy call.

void Pr04000_CpuDone (void) {

_asm. { push ax push bx mov ax, 2EOBh mov bl, 1 // setup regs for function call int 10h // call cpu done function pop bx pop ax

Page 8-6 Programming Guide

Page 103 read from a scan by OCR; it may hold reading errors

Keyboard and Video

A programmer can use the keyboard and video interrupt functions to control the keyboard and video screens. These functions are described below.

Keyboard Intercept Functions

BIOS interrupt 15h function 4Fh may be hooked to intercept raw (not yet translated) scan codes from the keyboard. The scan codes at this level are unique to the Pro4000. Refer to the system scan codes in the Scan Code Tables found at the end of this section.

BIOS interrupt 15h function 4Eh may be hooked to intercept translated scan codes from the keyboard. The scan codes at this level are standard 2 byte scan/ ASCII character codes. Ihe keys on the keyboard may be remapped to output alternate characters through this interrupt.

Video

The Pro4000 display is a CGA-compatible 192x128 pixel mono-chrome LCD. It displays 24 column x 16 line text (video mode 3) with a virtual 80 column x 25 line page. It does not support multiple 80x25 virtual pages. Text attributes can be set to black/white, where CGA colors are mapped to either full on or full off, and gray shades, where CGA colors map to various shades of gray. This setting can be changed either in user System Setup program or through BIOS int 10h function 2F23h.

Graphics modes supported are CGA mode 4 (320x200 pixel) with 4 shades of gray, and CGA mode 6 (640x200 pixel) where pixels are either on or off. In either case, the upper left 192x128 pixels are displayed on the LCD. Standard BIOS interrupt 10h functions are used to set the video mode. Only modes 3, 4, and 6 are supported.

An auto-pan function may be enabled o1 disabled to cause the 24x16 display to pan with the cursor around the 80x25 virtual window Extended BIOS functions may also be used to locate the display anywhere on the virtual window. In this way multiple 24x16 “pages” can be set up on the single 80x25 window.

Programming Guide Page 8-7

Page 104 read from a scan by OCR; it may hold reading errors

Extended BIOS Functions

Following is a summary of the extended BIOS services that are available through the use of an extended interrupt function BIOS call. The functions are placed in register AH. The subfunctions are placed in register AL. You then invoke INT 10h When the subfunction requires data input (for example, to set the contrast), the data byte or word is generally passed in register BL o1 BX. The output byte is returned in register AL. An unsuccessful operation will exit the function with the carry bit set.

Punction Sub-Function Meaning AH = 2Eh AL = 00h Pan Left 40% AL = 0ih Pan Right 40% AL = 02h Pan Up AL = 03h Pan Down AL = 04h Pan XY AL = 06h PC Card Power while in Suspend Al = 07h Suspend System AL =0Ah Get Pro4000 Status Byte AL = OBh CPU Busy/Done AL = 0Ch Disable BIOS Power Manager AL =0Dh Enable BIOS Power Manager AL = 0Eh DTR Control for COM 1 AL = 0Fh Get CPU version AL = 10h Get Keypad Shift Flag Settings AL =1th Set Keypad Shift Flag Settings AH = 2Fh AL = 00h,, Read status byte AL = 0ih Read video contrast AL =06h Read the thermistor AL = 07h Read the A/D reference AL = 08h Read the main battery voltage AL = 0Ch Set backlight off AL. = 0Dh Set backlight on AL = 0Eh Set heater off AL = 0Fh Set heater on AL = 10h Set key beep off AL =11h Set key beep on AL = 12h Power down system AL = 13h Put system in reboot mode AL = 14h Put system in resume mode AL = 15h Set auto sleep duration AL = 16h Set video contrast AL = 18h Get Performance Level AL =19h Set Performance Level Al =1Ah Set auto-panning off AL =1Bh Set auto-panning on AL =1Eh Read miscellaneous BIOS setup bytes AL =23h Video Attributes

Page 8-8 Programming Guide

Page 105 read from a scan by OCR; it may hold reading errors

A Function AH=2Eh

Subfunction: AL = 00h (pan left 40%) Pans screen left 40%. If screen is at leftmost limit, no action is taken Returns nothing.

Subfunction: AL = 01h (pan right 40%) Pans screen right 40%. If screen is at rightmost limit, no action is taken. Returns nothing.

Subfunction: AL = 02h (pan up) Pans screen to top 16 rows of 25 row virtual display. Returns nothing.

Subfunction: AL = 03h (pan down)

Pans screen to bottom 16 rows of 25 row virtual display. Returns nothing

Subfunction: AL = 04h (pan xy)

Locates the upper left corner of 24x16 display window to row/ column specified on the virtual 80x25 display Call with BH=1ow (values are 0-8), BL=column (values are 0-55). Returns nothing

Subfunction: AL = 06h (pe card power while in suspend)

Determines whether to leave PC Card powered when the system is suspended o1 to turn power off. Some cards may draw susbstantial current even when suspended and may need to be powered down during suspend so the Pr04000’s batteries are not drained.

Call with: BL=00h return current setting in AL BL=01h power off during suspend BL=02h power on during suspend (default)

Subfunction: AL = 07h (suspend Pro4000)

Suspends the Pro4000 to low power suspend state and remains there until a valid wakeup event occurs. Calling this function is identical to pressing the on/off key when the system is in suspend/resume mode. Returns nothing.

Subfunction: AL = 0Ah (get Pro4000 status byte) Returns status bye in AL where:

b7-b1 = reserved bo = power manager setting 1=on, O=off

Programming Guide Page 8-9

Page 106 read from a scan by OCR; it may hold reading errors

Subfunction: AL = OBh (set cpu busy/done) Applications should set CPU busy when a block of processing needs to be performed. CPU busy overrides power manager and keeps the CPU running fast for as long as it is set CPU done should be called after CPU busy to tell the CPU that processing is complete and the Pro4000 can return to a lower power state. WARNING: CPU busy will drain the batteries rapidly and should only be enabled when needed. Returns nothing. Call with: BL=00h CPU busy

BL=01h CPU done

Subfunction: AL = 0Ch (disable BIOS power manager)

Disables automatic power management functions in the BIOS. The Pro4000 generally uses less power with power manager enabled. Returns nothing.

Subfunction: AL = 0Dh (enable BIOS power manager)

Enables automatic power management functions in the BIOS. The system generally uses less power with power manager enabled. Returns nothing.

Subfunction: AL = 0Eh (get/set dtr line on com 1) Controls behaviot of the COM 1 DTR line as follows:

BL=00h RS-232 signal (default) BL=01h +5 Volt DTR signal

BL=02h . +5 Volt On

BL=03h +5 Volt Off

BL=04h +5 Volt Auto

BL=05h return current setting in AL

Subfunction: AL = 0Fh (get CPU version)

Returns CPU version as follows: AL=version major (b7-b4)+version minor (b3-b0).

Subfunction: AL = 10h (get keypad shift flag settings) Returns current shift flag settings in AL. See Subfunction AL=11h

Page 8-10 Programming Guide

Page 107 read from a scan by OCR; it may hold reading errors

Subfunction: AL = 11h (set keypad shift flag settings)

The keyboard shift flags (<ctrl>, <alt>, <shift>) can be individually controlled such that when the key is pressed it will register as either left, right, ot both scan codes. The <alt>-nnn function can be enabled / disabled with this function.

Call with: BL=b7-b0 where: b1,bdO = Oi 10 11 b3,b2 = 01 10 11 b5,b4 = 01 10 11 b6 = 0 1 b7 =

R <shift> only

L <shift> only Both (default) R <alt> only L.<alt> only

Both (default) R.<cttl> only L.<ctr}> only Both (default) Disable <alt>-nnn Enable <alt>-nnn (default) Reserved

Programming Guide Page 8-11

Page 108 read from a scan by OCR; it may hold reading errors

A Function AH=2Fh Subfunction: AL = 00h (read status byte) Output: AL = Status Byte, where:

Bit 76543210

/ L - Serial Ports Power 0: OFF 1: ON Backlight 0: OFF 1: ON Heater 0: OFF 1: ON Key Beep 0: OFF 1: ON CPU AutoSuspend Duration 0000: DISABLE 0001: 5 MIN 0010: 19MIN 0011: 15MIN 0100: 20MIN 0101: 25 MIN 0110: 30 MIN 0111: 35MIN 1000: 40MIN 1001: 45 MIN 1010: 50 MIN 1011: 55 MIN 1100: 60MIN 1101: 65 MIN 1110: =790 MIN 1111: =75 MIN

Subfunction: AL = 01h (read video contrast)

Output: AL = Video Contrast The range of video contrast is from 0 to 63.

Subfunction: AL = 06h (read the internal thermistor)

Output: AL = Temperature Reading (I(C)=[(50137)*AL] - 277) The value returned in the AL register is the temperature in degrees

C.

Page 8-12 Programming Guide

Page 109 read from a scan by OCR; it may hold reading errors

Subfunction: AL = 07h (read analog to digital reference) Output: AL = A/D Reference Voltage

This should always read FFh. It gives an indication of the correct operation of the A/D.

Subfunction: AL = 08h (read main battery voltage)

Output: AL = Main Battery Voltage Level The value returned in the AL register is the voltage reading of the main battery The range of this reading is from 0 to 10V (0=0V,

FFh=10V)

Subfunction: AL = 0Ch/AL = 0Dh (turn backlight off/on)

AL = 0Ch turns the display backlight off. AL = 0Dh turns the display backlight on. Retuins nothing.

Subfunction: AL = 0OEH/AL = OFh (set heater off/on)

AL = OEh turns the display heater off AL = 0Fh turns the display heater on. Returns nothing

“ Note: When the temperature of the Pro4000 rises above 0° C, the display heater is turned off. The temperature is checked every five minutes You may turn the heater on again, but in five minutes, when the temperature is checked, it will be turned off (if the temperature is still above 0°C) The display does not require the heater when the temperature of the Pro4000 is above 0° C.

Subfunction: AL = 10h/AL = 11h (set key beep off/on)

AL = 10h turns the key beep off. AL = 11h turns the key beep on Returns nothing

Subfunction: AL = 12h (power down system)

When the subfunction is executed, the Pro4000 turns off It is also capable of shutting down the Pro4000 in resume mode. Returns nothing

Subfunction: AL = 13h (put system in reboot mode)

When it is executed, the Pro4000 is set to reboot mode. In this mode the on/off key will cause power to be turned off Returns nothing.

Programming Guide Page 8-13

Page 110 read from a scan by OCR; it may hold reading errors

Subfunction: AL = 14h (put system in resume mode)

When it is executed, the Pro4000 is set to resume mode. In this mode, the power is not completely shut off, The Pro4000 is still running but at very low power, so it appears to be off. When the key is pressed the Pro4000 will resume where it left off.

Subfunction: AL = 15h (set auto suspend duration)

This subfunction requires an input value to set the auto supend duration. The input value is passed in the BL register. There is no output.

IfBL= 00h auto suspend is disabled 08h duration = 40 min

Olh duration = 5 min 09h duration = 45 min 02h duration = 10 min O0Ah duration = 50 min 03h duration = 15 min OBh duration = 55 min 04h duration = 20 min OCh duration = 60 min O5h duration = 25 min ODh duration = 65 min 06h duration = 30 min OEh duration = 70 min 07h duration = 35 min OFh duration = 75 min

Subfunction: AL = 16h (set video contrast)

This subfunction requires an input value to set the video contrast ratio. The input value is passed in the BL register and has a range of 00h to 63h. There is no output to the AL register.

Subfunction: AL = 18h (get Performance Level)

The purpose of this function is to read the current Pe1formance Level. ,

Output: AL= 00h Miser

Olh Low 02h Medium 03h High 04h Hyper

Subfunction: AL=19h (set Performance Level)

This subfunction requires an input value to set the Performance Level. The input value is passed in the BL register. Valid register values are shown below.

BL= 00h Miser

Olh Low 02h Medium 03h High 04h = =Hyper

No value is returned to the AL register.

Page 8-14 Programming Guide