Int 15H / Function B040H - Matrix Keypad Support; Int 15H / Function B042H - Alpha-Numeric Lcd Support; Int 15H / Function B021H - Jp5 Status - Technologic Systems TS-3200 User Manual

Table of Contents

Advertisement

TS-3200 User's Manual
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 #. 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
CX = Translation table segment (if BH = 11)
DX = Translation table offset (if BH = 11)
EXIT:
CY = 0 (carry flag)
AH = 00
Int 15h / Function B042h – Alpha-Numeric LCD Support
This routine enables and disables the console on the LCD interface. It supports all LCD displays sized
2 x 24 or smaller using a Hitachi HD44780 controller.
ENTRY:
AX = B042h
BH = 00
01
02
EXIT:
CY = Set if error, else clear if success. (carry flag)
AH = 00
BH = 00
01
Int 15h / Function B021h – JP5 Status
This function is for backward compatibility with those who used the TS-2350 board-mounted push
switch. JP5 emulates the push-switch. With JP5 installed, this function will behave as if the push switch
was installed. With JP5 not installed, it behaves as if the push switch is not pressed.
ENTRY:
AX = B021h
EXIT:
CY = 0 (carry flag)
AH = 00
BX = 00
01
- Disable matrix keypad
- Enable matrix keypad
- Enable matrix keypad with a custom translation table
- Disable LCD
- Enable LCD
- Return current LCD status
- No Error / LCD initialized OK
- LCD currently disabled / Not present
- LCD currently enabled and running.
- JP5 not installed (Deasserted)
- JP5 installed (Asserted)
24
Technologic Systems
05/21/2009

Advertisement

Table of Contents
loading

Table of Contents