################################################################################
#  Digitizer file for the Altek DataTab series digitizing tablets.
#  This is for an Altek Model 40 in format 8 (binary) using binary
#  format 2 with a 16 button puck.  This file works when the digitizer 
#  has the following switch  settings:
#  SWITCHES DIAGRAM
#     1       3
#     2       4
#
#  SWITCH 1:
#    DIP    ON              OFF  
#     8                      xx   BAUD RATE
#     7                      xx     9600
#     6     xx                       || 
#     5     xx                       ||
#     4                      xx   1 STOP BIT
#     3                      xx   DISABLE PARITY
#     2                      xx      (ODD)
#     1     xx                    8 BITS
#
#  SWITCH 2:
#    DIP    ON              OFF
#     8     xx                    OUTPUT FORMAT
#     7     xx                          ||
#     6     xx                          ||
#     5                      xx   ENGLISH
#     4     xx                    LINEFEED
#     3                      xx   DISABLE SIGN
#     2     xx                    X ON
#     1     xx                    ENABLE HOST
#
#  SWITCH 3:
#    DIP    ON              OFF
#     8     xx                    MODE
#     7     xx                     ||
#     6                      xx   STREAM
#     5                      xx    ||
#     4     xx                    STREAM VALUE
#     3                      xx    ||
#     2                      xx    ||
#     1     xx                     ||
#
#  SWITCH 4:
#    DIP    ON              OFF
#     8     xx                    BINARY 2
#     7                      xx   STANDARD
#     6     xx                    RUN TYPE
#     5                      xx    ||
#     4                      xx   SERIAL
#     3                      xx   DTR1 OFF
#     2                      xx   DTR2 OFF
#     1     xx                    .02mm
#
#  CONNECTION INTO SERIAL PORT 2 on DIGITIZER CONTROLLER
#  Small silver switch in UP position (CURSOR vs STYLUS)
#
# NOTE:  the '\#' combinations are decimal representations of ascii characters
# Good luck and happy digitizing!
################################################################################

format = binary
baud = 9600
digcursor = al40f82_16

# Select run stream mode
start=S3\13
# Select format 8.  Ensure dip switches are set to allow binary 2!
start=F8\13
# Select 25 points per second
start=R6\13

#stop=\13

x_begin = 1
x_end   = 3
xmask1 = 00000011
xmask2 = 01111111
xmask3 = 01111111

hi_x_col = 4
hi_xmask = 00001000

y_begin = 4
y_end   = 6
ymask1 = 00000111
ymask2 = 01111111
ymask3 = 01111111

button  = 1
button_mask = 01111100

length = 6
sync_mask = 10000000
sync_col  = 1

debounce= 8
units_per_inch = 1000 
