Intermec 6100 Reference Guide

Page of 328
SECTION 6
Conversions and Interfaces
6-20    PEN*KEY
R
 6100 Computer Programmer’s Reference Guide
/10
Do not trap interrupt 10h (the video BIOS interrupt).  There are a couple of 4000Ćcompatible video
BIOS extensions enabled by default and disabled via this switch.
/14
Do not trap interrupt 14h (the COM port BIOS interrupt).  By default, 4000API supplies 4000ĆcomĆ
patible BIOS extensions for communicating to COM ports.  By supplying this switch, the COM port
BIOS supplied in ROM BIOS is used instead of the 4000API services.  Typically, you should supply
this switch, unless your application is a PL/N application that was originally to run on a 4000 SeĆ
ries Computer.
/16
Do not trap interrupt 16h (the keyboard BIOS interrupt).  By default, 4000API emulates the 4000
keyboard, complete with the ability to remap keys.  When this switch is supplied, PCĆcompatible
keycodes are returned instead of 4000Ćstyle keycodes.
Supported Programming Interfaces
Some of the 4000 Series programming interface functions are supported for the
6100 Computer.  Refer to the CrossĆReference by Interrupt Numbers on page 6Ć28,
for a listing of the supported functions.
INT 10h: Display Services
These services consist of interrupts supporting the display screen, including topĆ
ics such as: V25 Comparator port, screen refresh, contrast, and backlight.
INT 14h: Serial Communications Services
Software interrupt 14h is embedded into 4000API.EXE and allows access to the
4000 Series style serial communications channels.  Three logical ports are
mapped onto two physical ports.  Port 0 and port 2 refer to the RSĆ232 ports.
Port 2 acts like port 0 except that the modem control signals (RTS and CTS) are
ignored.  For example, Function 01h sends the character regardless of the state
of those signals.  Port 0 can act like port 2 with Function 05h.
A major enhancement that these communication functions provide is the ability
to ignore modem control signals when sending and receiving characters.  This is
a nonĆPC standard, but allows the use of cables that do not have DTR/CSR and
RTS/CTS loopĆbacks or threeĆwireĆonly devices (TXD, RXD, and GND).  This feaĆ
ture is programmable via the extended port control functions.
Port 1 refers to the RSĆ485 port.  This port does not use the modem control sigĆ
nals.  If you try to read the signals for port 1, they always indicate active".
To extend battery life, shut off communications port power when the port is not
in use.  The power is turned on whenever you access a port.  You must explicitly
turn off the power with Function FFh.
The transmit and receive functions use a timeout value from a table at location
40:7C.  The default timeout is 1, which represents about 1 second.
The extended initialize function allows you to set baud rates beyond those availĆ
able on a PC.  Since these functions are polled (not interruptĆdriven), the faster
baud rates are of little utility unless interruptĆdriven functions are used in place
of the BIOS functions to send and receive a character.
A major difference between the 4000 Series and PEN*KEY 6000 Series ComputĆ
ers lies in UART capability.  The 6000 Series uses PCĆcompatible UARTs.  The
4000 Series does not use the PCĆcompatible 8250 UARTs.  Because of this differĆ
ence, the following conditions are expected by 4000 code.  These conditions do not
exist in the PEN*KEY 6000 Series Computer.  This may affect portability of code
where these bits are incorrectly masked and tested; modifications to existing
4000 Series code may be required for proper functioning.
6. Conversions and
Interfaces