


                             FA1 Keyboar commands
                                    04/27/93


        ** Warning Sinc th Ra Keyboar informatio i  cop o th 
        ra keyboar pane information th informatio containe i 
        thes register wil chang whe th keyboar o th audiomete 
        changes.



         
        Ge Ra Keyboar Inpu Register                            *** 9

         100             Th numbe   1000H
         000             N dat follows
         EFF             Inverte checksum

        Th ra keyboar register ca b rea a anytim wit thi 
        command Th ra register ar unaffecte b th Compute Contro 
        selection Tha i th readin i th sam whethe th audiomete 
        i unde compute contro o fron pane control Thi provide  
        mean t rea th Keyboar switche withou affectin th 
        operatio o th audiometer Thi comman return  snapsho o 
        th keyboar a th tim th comman wa given.

        Th ra keyboar register ar unprocesse keyboar informatio 
        tha reflect th mechanica position o th pane controls Th 
        ra keyboar registe informatio i debounced bu i i no 
        converte t th interna audiomete registe an contro format 
        Se th Ge Contro Pane Registe command fo readin processe 
        keyboar information.
























                                        1


        =================================================================

                          Keyboar Inpu Registe Data

        Th keyboar register consis o 1 byte (eigh words) Th 
        register contai debounce an decode keyboar selections 
        The ar i th followin format:

        KEYDAT[0   KEYST   Stimulu pus butto statu       
        KEYDAT[1   KEYPB   Miscellaneou pus butto statu  
        KEYDAT[2   ROTSWT  Frequenc switc           (Ro Switc #0)
        KEYDAT[3   ROTSWT  Righ Leve switc         (Ro Switc #1)
        KEYDAT[4   ROTSWT  Righ Inpu (Src switc   (Ro Switc #2)
        KEYDAT[5   ROTSWT  Righ Outpu (Dest switc (Ro Switc #3)
        KEYDAT[6   ROTSWT  Righ Simulato switc     (Ro Switc #4)
        KEYDAT[7   ROTSWT  Lef Leve switc          (Ro Switc #5)
        KEYDAT[8   ROTSWT  Lef Inpu (Src switc    (Ro Switc #6)
        KEYDAT[9   ROTSWT  Lef Outpu (Dest switc  (Ro Switc #7)
        KEYDAT[10  ROTSWT  Lef Simulato switc      (Ro Switc #8)
        KEYDAT[11  PATRS   Patien switc  RS23 flas registe           
        KEYDAT[12  KEYER   Keyboar erro registe NZ=erro  
        KEYDAT[13  FLAKE   Flak leve switc erro flags
        KEYDAT[14  KDUMM1  Dumm byt t fil spac          
        KEYDAT[15  KDUMM2  Dumm byt t fil spac          

        Remembe tha eve thoug th keyboar dat register ar sen i 
        wor forma (eigh words b th FIP routines the ar accesse 
        i byt forma.

        KEYST  ha th followin format           
         bi   Lef stimulu maste      (1=stimulu toggl i on 
         bi   Lef Stimulu butto      (1=butto pressed      
         bi   Lef -2. butto          (1=butto pressed          
         bi   Lef Re Stimulu butto  (1=butto pressed  
         bi   Righ Stimulu maste     (1=butto pressed     
         bi   Righ Stimulu butto     (1=butto pressed     
         bi   Righ -2. butto         (1=butto pressed         
         bi   Righ Re Stimulu butto (1=butto pressed 

        KEYPB  ha th followin format           
         bi   Des Re butto           (1=butto pressed 
         bi   Puls butto              (1=butto pressed 
         bi   Warbl butto             (1=butto pressed 
         bi   Tal Fw butto           (1=butto pressed 
         bi   Patien Respons          (1=butto pressed 
         bi   N/ <reserved                       
         bi   N/ <reserved                       
         bi   Stenge Maste fla       (1=Stenge butto mod i on)

        KDUMM  Th Dumm fil byte ar use t fil ou th registe 
        arra t eigh word fo transmissio b th fip commands The 
        wil normall b zero bu thi shoul no b relie upon Shoul 
        a extr keyboar inpu registe b nee i th future thes 
        byte ma tak o  rea value 



                                        2


        Frequenc switc selectio definition (ROTSWT0):

                   12  switc po 0
        Frequnec  25  switc po 1
        i Hert   50  switc po 2
                   75  switc po 3
                  100  switc po 4
                  150  switc po 5
                  200  switc po 6
                  300  switc po 7
                  400  switc po 8
                  600  switc po 9
                  800  switc po 10
             <invalid  switc po 11
             <invalid  switc po 12
             <invalid  switc po 13
             <invalid  switc po 14
             <invalid  switc po 15


        Leve switc selectio definition (ROTSWT1,ROTSWT5):
             
                   -1  switc po      
                    -  switc po      
        Hearin        switc po      
        Leve          switc po      
        i H       1  switc po      
                    1  switc po      
                    2  switc po      
                    2  switc po      
                    3  switc po      
                    3  switc po      
                    4  switc po 1     
                    4  switc po 1     
                    5  switc po 1     
                    5  switc po 1     
                    6  switc po 1     
                    6  switc po 1     
                    7  switc po 1     
                    7  switc po 1     
                    8  switc po 1     
                    8  switc po 1     
                    9  switc po 2      
                    9  switc po 2     
                   10  switc po 2     
                   10  switc po 2     
                   11  switc po 2     
             <invalid  switc po 2     
             <invalid  switc po 2     
             <invalid  switc po 2     
             <invalid  switc po 2     
             <invalid  switc po 2     
             <invalid  switc po 30
             <invalid  switc po 31



                                        3


        Inpu switc selectio definition (ROTSWT2 ROTSWT6):
             TONSR    Ton sourc select
             MICSR    Mi sourc select
             EXTSR    Externa sourc select
             EXOSR    Othe Externa sourc select
             STNSR    Stinge sourc select
             WBNSR    W sourc select
             SBNSR    S sourc select
             NBNSR    NB sourc select

        Outpu switc selectio definition (ROTSWT3 ROTSWT7):
             DOF      channe i of (no  rea switc pos)
             DPHON    switc po    (Phone)
             DBON     switc po    (Bone)
             DSPK     switc po    (Spkr)
             DOTHE    switc po    (Othe Ch)

        Simulato switc selectio definition (ROTSWT4 ROTSWT8):
             SIMOF     switc po   (fla  off)
             SIM6D     switc po   (6db)
             SIM12D    switc po   (12db)
             SIM18D    switc po   (18db)
             SIMHF     switc po   (hfe)
             OPT       switc po   (optio C)
             OPT       switc po   (optio B)
             OPT       switc po   (optio A)

        PATRS contain  cop o th patien switc register Bi zer 
        wil b of i th patien switc i no pressed Bi zer wil 
        o i th switc i bein pressed Th uppe fou bit contai  
        cop o th RS23 contro lines Th contro line ar debounced 
        bu the d no trigge event i th audiometer Bi  i th 
        CT contro line bi  i th DS contro line Currentl th 
        DS contro lin i no wire o th audiometer an wil alway 
        b on  Bit 1,2,3,6, ar undefine an shoul no b relie o 
        t contai vali information 

        KEYER i no  switc output bu rathe contain th erro cod 
        fo an switc error tha migh occur Th pus butto switche 
        an som rotar switche canno b tested s ar no include i 
        th tes procedure Whe a erro occur th le associate wit 
        th switc wil b flashed 


             SWERR  Bi   Unknown switch error
             SWERR  Bi   Rotor switc # i ba  Freq
             SWERR  Bi   Rotor switc # i ba  RLev
             SWERR  Bi   Rotary switch #4 is set wrong - Rsim
             SWERR  Bi   Rotor switc # i ba  LLev
             SWERR  Bi   Rotory switch #8 is set wrong - Lsim
             SWERR  Bi   Unknown switch error
             SWERR  Bi   Inpu bus erro (al FFs)





                                        4


        FLAKE contain th erro flag wit indicate i  leve switc 
        ha bee detecte t b flakey  flake leve switc i 
        determine b th switc increasin th leve b mor tha 20d 
        withi 8ms Th lowe switc positio wil b retaine i th 
        registe unti th switc i se bac t th lowe level.

             FSWER  Bi   Rotor switc # i flaky  RLev
             FSWER  Bi   Rotor switc # i flaky  LLev

        An othe erro i KEYER o FLAKE i a unknow switc erro 
        tha coul no b identified  valu o zer mean tha n erro 
        occurred 













































                                        5
