Int 15H / Function B010H - Led Control; Int 15H / Function B042H - Alphanumeric Lcd Support; Int 15H / Function B040H - Matrix Keypad Support - Technologic Systems TS-5700 User Manual

Table of Contents

Advertisement

TS-5700 User's Manual

Int 15h / Function B010h - LED Control

This function is used to turn the board LED on and off. You can also invert the LED, i.e. if the LED is off, it will be
turned on, and if it is on it will be turned off.
ENTRY:
AX = B010h
BH = 00 - LED off.
BH = 01 - LED on.
BH = 81 - LED invert.
EXIT:
CY = 0 (carry flag)
AH = 00
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
BH = 01 - Enable LCD
BH = 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
BH = 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
ENTRY:
AX = B040h
BH = 00 - Disable matrix keypad
BH = 01 - Enable matrix keypad
BH = 11 - 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
Technologic Systems
for further details.
43
http://embeddedARM.com/
5/2009

Advertisement

Table of Contents
loading

Table of Contents