TS-5400 User’s Manual
Technologic Systems
10/31/03
31
Int 15h / Function B042h – Alphanumeric LCD Support
This routine enables and disables the console on the LCD interface. It supports all LCD displays sized 2
x 40 or smaller using a Hitachi HD44780 controller.
ENTRY:
AX = B042h
BH =
00
- Disable LCD
01
- Enable LCD
02
- Return current LCD status
EXIT:
CY =
Set if error, else clear if success (carry flag)
AH =
00
- No Error / LCD initialized OK
BH =
00
- LCD currently disabled / Not present
01
- LCD currently enabled and running.
Int 15h / Function B040h – Matrix Keypad Support
This function is used to enable and disable support for the matrix keypad. When enabled, the RTC
periodic interrupt (IRQ8 / INT70h) is enabled at 256 Hz and hooked to the keypad scanning routine.
Disabling the keypad reverses this process – IRQ8 is turned off, and INT70h is returned to the original
standard BIOS function. The default translation table consists of the following: 0 - 9, A - D, *, and # (#
returns the scan-code for Carriage Return). A custom translation table is 16 words long, where each
word is a scan code / ASCII pair for a key. Information on scan codes can be found in books on IBM PC
hardware. Example programs are included on the utility disk. See Section 8 for further details.
ENTRY:
AX = B040h
BH = 00
- Disable matrix keypad
- Enable matrix keypad
- Enable matrix keypad with a custom translation table
CX = Translation table segment (if BH = 11)
DX = Translation table offset (if BH = 11)
EXIT:
CY = 0 (carry flag)
AH = 00
Int 15h / Function A1h – Console I/O Redirection
This function specifies the device that will be used by the BIOS to direct console input (INT 16h) and
console output (INT 10h). If the LCD or Matrix keypad is to be used as the console, you must also call
the LCD and/or Matrix keypad BIOS function to enable them.
ENTRY:
AX = A1h
BH = 00
- Console is directed to Standard I/O. (VGA/keyboard or LCD/Matrix)
01
- Console is redirected to COM1
02
- Console is redirected to COM2
03
- Console is redirected to COM3
04
- Console is redirected to COM4
EXIT:
CY = 0 if success, set if failure (carry flag)
Summary of Contents for TS-5400
Page 1: ...TS 5400 User s Manual ...