beautypg.com

Ultimate Technology 500 POS User Manual

Page 62

background image

54




EXAMPLE 3.

This example programs the key at top left-hand corner of keyboard (row 1, column A) as a primary
key that outputs the scan code for lowercase "z" on MAKE only.

1. Use the data in Appendix D to find the key code number for the "Z" key on the 101/102-

keyboard. The "Z" key code number = 46 (decimal).


2. Convert key code 46 (decimal) to its hexadecimal equivalent. The key code = 2E hex.

3. Program command = A0krcCxDx@ = A0 P 1 A CE D2 @

Parameters same as shown for example 1, except @ = output on MAKE only.

EXAMPLE 4.

This example programs key at top left-hand corner of keyboard (row 1, column A) as a primary
key that outputs the scan code for uppercase "Z" on MAKE only.

1. Use the data in Appendix D to find the key code number for the "Z" key on the 101/102-

keyboard. The "Z" key code number = 46 (decimal).


2. Convert key code 46 (decimal) to its hexadecimal equivalent. The key code = 2E hex.

3. Program command = A0krc(CxDx)@ = A0 P 1 A ( CE D2 ) @

Parameters same as shown for example 1, except @ = output on MAKE and () = left shift

MAKE and left shift release.


EXAMPLE 5.

This example programs key at top left-hand corner of keyboard (row 1, column A) as a primary left
SHIFT key that outputs the scan code for MAKE and BREAK.

1. Use the data in Appendix D to find the key code number for the left SHIFT key on the

101/102-keyboard. The "Left SHIFT" key code number = 44 (decimal).


2. Convert key code 44 (decimal) to its hexadecimal equivalent. The key code = 2C hex for

MAKE and AC hex for BREAK.


3. Program command = A0krcCxDx!CxDy = A0 P 1 A CC D2 ! CC DA or
A0 P 1 A ( ! )