Subversion Repositories svn.mios

Rev

Rev 194 | Rev 379 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

;$Id: setup_mbseq_tk.asm 285 2008-04-23 20:31:07Z tk $
    LIST R=DEC
;
; Individual Setup File for TK's MIDIbox SEQ V3
;
; Detailed infos for customization can be found at http://www.ucapps.de/midibox_seq_options.html
;
; BankStick Mode & Allocation Map
; Each BankStick (CS0..CS7) has an own entry
; Set the value to:
;     0: ignore BankStick which could be (or is) connected to the CS address
;     1: if a 32k BankStick (24LC256) is connected and should be used as Pattern Storage (64 patterns)
;     2: if a 64k BankStick (24LC512) is connected and should be used as Pattern Storage (128 patterns)
;     3: if a 32k BankStick is connected and should be used as Song Storage (16 Songs)
;     4: if a 64k BankStick is connected and should be used as Song Storage (32 Songs)
;     5: if a 32k or 64k BankStick is connected and should be used as Mixer Map Storage
;        only the first 32k are used, so there is no advantage on using a 24LC512 here.
; NOTE: only one BankStick can be used as Song Storage, only one for Mixer Maps
;       If no entry with "mode 3" or "mode 4" is defined, Song mode will be disabled.
;       If no entry with "mode 5" is defined, there will only be one Mixer Map which cannot be stored
; If a BankStick is not connected to the MBSEQ, the appr. entry will have no effect
#define DEFAULT_BANKSTICK_MODE_CS0  2   ; 64k
#define DEFAULT_BANKSTICK_MODE_CS1  2   ; 64k
#define DEFAULT_BANKSTICK_MODE_CS2  5   ; Mixer Map (using CS2 to ensure compatibility with Atmel EEPROMs which only provide 4 CS addresses)
#define DEFAULT_BANKSTICK_MODE_CS3  3   ; Song mode (using CS3 to ensure compatibility with Atmel EEPROMs which only provide 4 CS addresses)
#define DEFAULT_BANKSTICK_MODE_CS4  2   ; 64k
#define DEFAULT_BANKSTICK_MODE_CS5  2   ; 64k
#define DEFAULT_BANKSTICK_MODE_CS6  2   ; 64k
#define DEFAULT_BANKSTICK_MODE_CS7  2   ; 64k
;
;
; Max. length of the DIN/DOUT shift register chain (1-16)
#define DEFAULT_NUMBER_SR   13
;
; debounce counter (see the function description of MIOS_SRIO_DebounceSet)
; Use 0 for high-quality buttons, use higher values for low-quality buttons
#define DEFAULT_SRIO_DEBOUNCE_CTR 32
;
; For MIDI activity monitor: define the DOUT pins for the Rx and Tx LED
#define DEFAULT_MIDI_MONITOR_ENABLED 1  ; if 1, the Tx/Rx LEDs are enabled
;                                    SR            Pin#
#define DEFAULT_MIDI_RX_LED        (((2 - 1)<<3)+7- 0)  ; DOUT SR#2, pin D0
#define DEFAULT_MIDI_TX_LED        0xff         ; not used
;                                       ^^^^^^^^^^^ignore!
;
; The beat indicator LED has to be assigned to a DOUT pin here:
;                                    SR            Pin#
#define DEFAULT_BEAT_INDICATOR_LED (((1 - 1)<<3)+7- 0) ; DOUT SR#1, pin D0
;                                       ^^^^^^^^^^^ignore!
;
; Some menus are provide the possibility to use 16 "general purpose" buttons
; Define the two shift registers which are assigned to this function here:
; (valid numbers: 1-16)
#define DEFAULT_GP_DIN_SR_L 7   ; first GP DIN shift register assigned to SR#7
#define DEFAULT_GP_DIN_SR_R 10  ; second GP DIN shift register assigned to SR#10
;
; above these buttons LEDs should be mounted to visualize the played MIDI events,
; but also the current sequencer position, the selected pattern, the menu, etc.
; Define the two shift registers which are assigned to this function here: 
; (valid numbers: 1-16)
#define DEFAULT_GP_DOUT_SR_L    3   ; first GP DOUT shift register assigned to SR#3
#define DEFAULT_GP_DOUT_SR_R    4   ; second GP DOUT shift register assigned to SR#4
;
;
; === Shift Register Matrix ===
;
; set this value to 1 if each track has its own set of 16 LEDs to display unmuted steps and current sequencer position
#define DEFAULT_SRM_ENABLED     1
;
; define the shift registers to which the anodes of these LEDs are connected
; Note: they can be equal to DEFAULT_GP_DOUT_SR_[LH], this saves two shift registers, but doesn't allow a seperate view of UI selections
#define DEFAULT_SRM_DOUT_L1 6
#define DEFAULT_SRM_DOUT_R1 9
;
; define the shift register to which the cathodes of these LEDs are connected
; Note that the whole shift register (8 pins) will be allocated! The 4 select lines are duplicated (4 for LED matrix, 4 for button matrix)
; The second DOUT_CATHODES2 selection is optional if LEDs with high power consumption are used - set this to 0 if not used
#define DEFAULT_SRM_DOUT_CATHODES1  5
#define DEFAULT_SRM_DOUT_CATHODES2  8
;
; set this to 1, if DUO colour LEDs are connected to the LED matrix
#define DEFAULT_SRM_DOUT_DUOCOLOUR  1
;
; define the shift registers to which the anodes of the "second colour" (red) LEDs are connected
#define DEFAULT_SRM_DOUT_L2 7
#define DEFAULT_SRM_DOUT_R2 10
;
; set this to 1 if a button matrix is connected
#define DEFAULT_SRM_BUTTONS_ENABLED 1
; set this to 1 if these buttons should only control the "step triggers" (gate, and other assigned triggers) - and no UI functions
#define DEFAULT_SRM_BUTTONS_NO_UI   1
; define the DIN shift registers to which the button matrix is connected
#define DEFAULT_SRM_DIN_L   11
#define DEFAULT_SRM_DIN_R   12
;
;
; === BPM digits ===
;
; set to 1 or 2 to enable the 3 optional BPM digits
;    0: BPM digits disabled
;    1: digits with common cathode
;    2: digits with common anode
#define DEFAULT_BPM_DIGITS_ENABLED 0
;
; define the shift register to which the segments are connected (0=disabled)
#define DEFAULT_BPM_DIGITS_SEGMENTS 5
; define the shift register to which the common pins (cathodes or anodes) are connected (0=disabled)
#define DEFAULT_BPM_DIGITS_COMMON   6
;
;
; Datawheel for menu navigation/data entry connected or not?
; A datawheel can replace the left/right buttons!
; if -1: datawheel not connected
; if 0: encoder #0 assigned to datawheel function
; values > 0 not allowed in the MIDIboxSEQ application
; don't forget to define the pins of the datawheel in MIOS_ENC_PIN_TABLE
; (-> mios_tables.inc or setup_*.asm, first entry)
#define DEFAULT_ENC_DATAWHEEL   0
;
; the speed value for the datawheel (#0) which is used when the "FAST" button is activated:
#define DEFAULT_DATAWHEEL_SPEED_VALUE   3
;
; the speed value for the additional encoders (#1-#16) which is used when the "FAST" button is activated:
#define DEFAULT_ENC_SPEED_VALUE     3

;; Auto FAST mode: if a layer is assigned to velocity or CC, the fast button will be automatically
;; enabled - in other cases (e.g. Note or Length), the fast button will be automatically disabled
#define DEFAULT_AUTO_FAST_BUTTON        1

;; Behaviour of FAST button:
;; 0: button pressed: fast encoders, button depressed: slow encoders
;; 1: fast mode toggled when button pressed
#define DEFAULT_BEHAVIOUR_BUTTON_FAST   1
;; The same for the "ALL" button (if flag set, all step parameters will be changed with a single encoder)
#define DEFAULT_BEHAVIOUR_BUTTON_ALL    1
;; the same for the solo button (if flag set, the current selected track will be played solo)
#define DEFAULT_BEHAVIOUR_BUTTON_SOLO   1
;; the same for the metronome button
#define DEFAULT_BEHAVIOUR_BUTTON_METRON 1
;; the same for the scrub button
#define DEFAULT_BEHAVIOUR_BUTTON_SCRUB  0

; MIDI IN Channel which is used for the transpose/arpeggiator/remote function
; Allowed values: 1-16, select 0 to disable
#define DEFAULT_SEQUENCER_CHANNEL   1
;
; The Note number which activates the remote function (examples: 0x24 == C-2, 0x60 == C-7)
#define DEFAULT_MIDI_REMOTE_KEY     0x60    ; C-7
;
; Optional channels for configuration via CC (1-16, select 0 to disable)
#define DEFAULT_MIDI_CHANNEL_LAYER_A    0
#define DEFAULT_MIDI_CHANNEL_LAYER_B    0
#define DEFAULT_MIDI_CHANNEL_LAYER_C    0
#define DEFAULT_MIDI_CHANNEL_CFG    0

;; if enabled (1), patterns can be changed via CC#112-CC#115
;; if disabled (0), these CCs are ignored
#define DEFAULT_MIDI_PATTERN_CHANGE_CC  1

;; if enabled (1), song can be changed via program change
;; if disabled (0), program changes are ignored
#define DEFAULT_MIDI_SONG_CHANGE_VIA_PC 1



;; define the pin which should be used as external 24ppqn clock output here
;; DEFAULT_EXT_CLK_LAT can be LATC (Pin 0, 1, 2, 4, 5) or LATD (Pin 4)
;; Note that this should be an exclusive pin. E.g., if an AOUT module is
;; be connected, LATC.5 and LATD.4 are already allocated.
;; if a second LCD is connected, LATC.4 is already allocated
;; The external pin is disabled with DEFAULT_EXT_CLK_LAT == 0
;; default setting: RC0 (available at J6:RC of the core module)
#define DEFAULT_EXT_CLK_LAT LATC
#define DEFAULT_EXT_CLK_PIN 0

;; define the pin which should be used as external Start/Stop output here
;; default setting: RC1 (available at J6:SC of the core module)
#define DEFAULT_EXT_START_LAT   LATC
#define DEFAULT_EXT_START_PIN   1


;; define the pin to which the RI_N line of the IIC1 module is connected
;; this connections is required for the second MIDI IN port
;; Note: MIDI In is only supported for one MBHP_IIC_MIDI module,
;; and it must be the first one (IIC address 10, both jumpers stuffed)
;; By default, RC3 is used (available at J6:SI of the core module)
;; if RI_N_PORT == 0, the second MIDI Input will be disabled.
#define DEFAULT_IIC1_RI_N_PORT  PORTC
#define DEFAULT_IIC1_RI_N_TRIS  TRISC
#define DEFAULT_IIC1_RI_N_PIN   3


;; define the AOUT interface which is used here:
;;   1: one MBHP_AOUT module
;;   2: up to 4 (chained) MBHP_AOUT_LC modules
;;   3: one MBHP_AOUT_NG module
;; all other values invalid!
#define AOUT_INTERFACE_TYPE 1

;; only relevant if one or more AOUT_LC modules are used:
;; define the resolution configuration here
;;   0: first channel 12bit, second channel 4bit
;;   1: first channel 8bit, second channel 8bit
;;   2: combines M1,M2 and/or M3/M4: first channel 12bit, second channel 12bit, third channel 8bit, fourth channel ignored!
;; all other values invalid!
#define AOUT_LC_RESOLUTION_OPTION_M1 1
#define AOUT_LC_RESOLUTION_OPTION_M2 1
#define AOUT_LC_RESOLUTION_OPTION_M3 1
#define AOUT_LC_RESOLUTION_OPTION_M4 1


;; use PORTA and PORTE (J5 of the core module) as trigger output
;; NEVER USE THIS TOGETHER WITH ANALOG POTS - IT WILL CAUSE A SHORT CIRCUIT!
#define DEFAULT_ENABLE_J5_GATES 0

;; additional gate triggers are available on common digital output pins of the
;; DOUT shift register chain - they are assigned to AOUT channel #16 (Note C-1, C#1, D-1, ...)
;; define the shift registers which should be used here (each provides 8 gates)
;; Note that SRs assigned to this function cannot be used as LED outputs (exclusive function)
;; Allowed values: 1-16, 0 disables the function, all other values invalid and not allowed
;; Note: depending on the shift registers you are using, you have to adjust
;; the DEFAULT_NUMBER_SR value at the top of this configuration
#define DEFAULT_ENABLE_DOUT_GATE_09_16   0
#define DEFAULT_ENABLE_DOUT_GATE_17_24   0
#define DEFAULT_ENABLE_DOUT_GATE_25_31   0
#define DEFAULT_ENABLE_DOUT_GATE_32_39   0
#define DEFAULT_ENABLE_DOUT_GATE_40_47   0
#define DEFAULT_ENABLE_DOUT_GATE_48_55   0

;; if set to 1, the DOUT "gates" will send 1mS pulses
;; useful for analog drums
#define DEFAULT_DOUT_1MS_TRIGGER    0


    org 0x3082      ; never change the origin!
; ==========================================================================
;  In this table all button functions are mapped to the DIN pins
;
;  The function name can be found on the left, the shift register and pin
;  number on the right side.
;
;  SR/pin numbers:
;     SR =  1 for the first DIN shift register
;     SR =  2 for the second DIN shift register
;     ...
;     SR = 16 for the last DIN shift register
;
;     Pin = 0 for the D0 input pin of the shift register
;     Pin = 1 for the D1 input pin of the shift register
;     ...
;     Pin = 7 for the last input pin (D7) of the shift register
;
;  Set the SR and pin number to 0 if a button function should not be used
;
;  The table must end with DIN_ENTRY_EOT!
; ==========================================================================

DIN_ENTRY MACRO function, sr, pin
    dw  function, (pin + 8*((sr-1)&0xff))
    ENDM

DIN_ENTRY_EOT MACRO
    dw  0x0000, 0x0000
    ENDM
   
SEQ_IO_TABLE_DIN
    ;;      Function name       SR# Pin#
    ;; NOTE: the pins of the 16 general purpose buttons are assigned above, search for DEFAULT_GP_DIN_SR_L (and _R)
#if DEFAULT_ENC_DATAWHEEL < 0
    DIN_ENTRY   CS_MENU_BUTTON_Left,     1,  0
    DIN_ENTRY   CS_MENU_BUTTON_Right,    1,  1
#endif
    DIN_ENTRY   SEQ_BUTTON_Scrub,    1,  2
    DIN_ENTRY   SEQ_BUTTON_Metronome,    1,  3

    DIN_ENTRY   SEQ_BUTTON_Stop,     1,  4
    DIN_ENTRY   SEQ_BUTTON_Pause,    1,  5
    DIN_ENTRY   SEQ_BUTTON_Play,     1,  6
    DIN_ENTRY   SEQ_BUTTON_Rew,      1,  7
    DIN_ENTRY   SEQ_BUTTON_Fwd,      2,  0

    DIN_ENTRY   SEQ_BUTTON_F1,       2,  1
    DIN_ENTRY   SEQ_BUTTON_F2,       2,  2
    DIN_ENTRY   SEQ_BUTTON_F3,       2,  3
    DIN_ENTRY   SEQ_BUTTON_F4,       2,  4

    DIN_ENTRY   SEQ_BUTTON_Menu,     2,  5
    DIN_ENTRY   SEQ_BUTTON_Select,   2,  6
    DIN_ENTRY   SEQ_BUTTON_Exit,     2,  7

    DIN_ENTRY   SEQ_BUTTON_Track1,   3,  0
    DIN_ENTRY   SEQ_BUTTON_Track2,   3,  1
    DIN_ENTRY   SEQ_BUTTON_Track3,   3,  2
    DIN_ENTRY   SEQ_BUTTON_Track4,   3,  3

    DIN_ENTRY   SEQ_BUTTON_LayerA,   3,  4
    DIN_ENTRY   SEQ_BUTTON_LayerB,   3,  5
    DIN_ENTRY   SEQ_BUTTON_LayerC,   3,  6

    DIN_ENTRY   SEQ_BUTTON_Edit,     4,  0
    DIN_ENTRY   SEQ_BUTTON_Mute,     4,  1
    DIN_ENTRY   SEQ_BUTTON_Pattern,  4,  2
    DIN_ENTRY   SEQ_BUTTON_Song,     4,  3

    DIN_ENTRY   SEQ_BUTTON_Solo,     4,  4
    DIN_ENTRY   SEQ_BUTTON_Fast,     4,  5
    DIN_ENTRY   SEQ_BUTTON_All,      4,  6

    ;; OPTIONAL! see CHANGELOG.txt
    DIN_ENTRY   SEQ_BUTTON_Group1,  13,  0
    DIN_ENTRY   SEQ_BUTTON_Group2,  13,  1
    DIN_ENTRY   SEQ_BUTTON_Group3,  13,  2
    DIN_ENTRY   SEQ_BUTTON_Group4,  13,  3

    ;; OPTIONAL! see CHANGELOG.txt
    DIN_ENTRY   SEQ_BUTTON_TrgLayerA,   13,  4
    DIN_ENTRY   SEQ_BUTTON_TrgLayerB,   13,  5
    DIN_ENTRY   SEQ_BUTTON_TrgLayerC,   13,  6

    ;; OPTIONAL! see CHANGELOG.txt
    DIN_ENTRY   SEQ_BUTTON_ToggleStepView, 13,   7

    DIN_ENTRY_EOT


; ==========================================================================
;  The following table defines all available DOUT pins with the appr.
;  register and bit which is assigned to the pin
;  CS_MENU_LED_Update uses this table to update all LEDs
;
;  The register name and bit number can be found on the left,
;  the shift register and pin number on the right side.
;
;  SR/pin numbers:
;     SR =  1 for the first DOUT shift register
;     SR =  2 for the second DOUT shift register
;     ...
;     SR = 16 for the last DOUT shift register
;
;     Pin = 0 for the D7 output pin of the shift register
;     Pin = 1 for the D6 output pin of the shift register
;     ...
;     Pin = 7 for the last input pin (D0) of the shift register
;
;  Set the SR and pin number to 0 if a LED function should not be used
;
;  The table must end with DOUT_ENTRY_EOT!
; ==========================================================================

DOUT_ENTRY MACRO reg, bit, sr, pin
        if sr == 0      ; J5 selected
        dw  reg, bit | ((pin | 0x80) << 8)
    else            ; SR selected
        dw  reg, bit | ((pin + 8*(sr-1)) << 8)
    endif
    ENDM

DOUT_ENTRY_EOT MACRO
    dw  0x0000, 0x0000
    ENDM
   
SEQ_IO_TABLE_DOUT
    ;;      Register and bit            SR# Pin#      Description
    DOUT_ENTRY  TMP1, 0,                1,  0   ; Track #1 selected (Note: Pin #0 is the D7 output of first SR)
    DOUT_ENTRY  TMP1, 1,                1,  1   ; Track #2 selected
    DOUT_ENTRY  TMP1, 2,                1,  2   ; Track #3 selected
    DOUT_ENTRY  TMP1, 3,                1,  3   ; Track #4 selected

    DOUT_ENTRY  TMP1, 4,                1,  4   ; Layer A selected
    DOUT_ENTRY  TMP1, 5,                1,  5   ; Layer B selected
    DOUT_ENTRY  TMP1, 6,                1,  6   ; Layer C selected

    ;; NOTE: the pin of the beat indicator LED has to be assigned above, search for DEFAULT_BEAT_INDICATOR_LED

    DOUT_ENTRY  TMP2, 0,                2,  0   ; Edit Step LED
    DOUT_ENTRY  TMP2, 1,                2,  1   ; Mute LED
    DOUT_ENTRY  TMP2, 2,                2,  2   ; Pattern LED
    DOUT_ENTRY  TMP2, 3,                2,  3   ; Song LED
    DOUT_ENTRY  TMP2, 7,                2,  4   ; Solo LED
    DOUT_ENTRY  TMP2, 5,                2,  5   ; Fast Encoder LED
    DOUT_ENTRY  TMP2, 6,                2,  6   ; Change All Steps LED

    ;; OPTIONAL! see CHANGELOG.txt
    DOUT_ENTRY  TMP4, 0,                11, 0   ; Group 1 LED
    DOUT_ENTRY  TMP4, 1,                11, 2   ; Group 2 LED (assigned to pin 2 due to DUO LED)
    DOUT_ENTRY  TMP4, 2,                11, 4   ; Group 3 LED (assigned to pin 4 due to DUO LED)
    DOUT_ENTRY  TMP4, 3,                11, 6   ; Group 4 LED (assigned to pin 6 due to DUO LED)

    ;; OPTIONAL! see CHANGELOG.txt
    DOUT_ENTRY  TMP4, 5,                12, 0   ; Trigger Layer A LED
    DOUT_ENTRY  TMP4, 6,                12, 1   ; Trigger Layer B LED
    DOUT_ENTRY  TMP4, 7,                12, 2   ; Trigger Layer C LED

    ;; OPTIONAL! see CHANGELOG.txt
    DOUT_ENTRY  TMP5, 0,                12, 3   ; Play LED
    DOUT_ENTRY  TMP5, 1,                12, 4   ; Stop LED
    DOUT_ENTRY  TMP5, 2,                12, 5   ; Pause LED

    ;; OPTIONAL! see CHANGELOG.txt
    DOUT_ENTRY  TMP5, 3,                12, 6   ; Step 1-16 displayed
    DOUT_ENTRY  TMP5, 4,                12, 7   ; Step 17-31 displayed

    ;; NOTE: the pins of the MIDI Rx/Tx LEDs are assigned above, search for DEFAULT_MIDI_RX_LED and TX_LED
    ;; NOTE: the pins of the 16 general purpose LEDs are assigned above, search for DEFAULT_GP_DOUT_SR_L and _R
    DOUT_ENTRY_EOT


;; --------------------------------------------------------------------------
;; In this table DIN pins have to be assigned to rotary encoders for the
;; MIOS_ENC driver
;;
;; up to 64 entries are provided, for MIDIbox SEQ 17 entries are expected
;;
;; The table must be terminated with an ENC_EOT entry. Unused entries should
;; be filled with ENC_EOT
;;
;; ENC_ENTRY provides following parameters
;;    o first parameter: number of shift register - 1, 2, 3, ... 16
;;    o second parameter: number of pin; since two pins are necessary
;;      for each encoder, an even number is expected: 0, 2, 4 or 6
;;    o the third parameter contains the encoder mode:
;;      either MIOS_ENC_MODE_NON_DETENTED
;;          or MIOS_ENC_MODE_DETENTED
;;          or MIOS_ENC_MODE_DETENTED2 (prefered for Encoders from Voti and SmashTV!)
;;          or MIOS_ENC_MODE_DETENTED3
;;      see also http://www.midibox.org/dokuwiki/doku.php?id=encoder_types
;;
;; Configuration Examples:
;;    ENC_ENTRY  1,  0,  MIOS_ENC_MODE_NON_DETENTED    ; non-detented encoder at pin 0 and 1 of SR 1
;;    ENC_ENTRY  1,  2,  MIOS_ENC_MODE_DETENTED        ; detented encoder at pin 2 and 3 of SR 1
;;    ENC_ENTRY  9,  6,  MIOS_ENC_MODE_NON_DETENTED    ; non-detented encoder at pin 6 and 7 of SR 9
;; --------------------------------------------------------------------------
    org 0x3280      ; never change the origin!
    ;; encoder entry structure
ENC_ENTRY MACRO sr, din_0, mode
    dw  (mode << 8) | (din_0 + 8*(sr-1))
    ENDM   
ENC_EOT MACRO
    dw  0xffff
    ENDM

MIOS_ENC_PIN_TABLE
    ;;        SR  Pin  Mode
#if DEFAULT_ENC_DATAWHEEL >= 0
    ENC_ENTRY  1,  0,  MIOS_ENC_MODE_DETENTED   ; Data Wheel
#endif

    ENC_ENTRY  5,  0,  MIOS_ENC_MODE_DETENTED2  ; V-Pot 1
    ENC_ENTRY  5,  2,  MIOS_ENC_MODE_DETENTED2  ; V-Pot 2
    ENC_ENTRY  5,  4,  MIOS_ENC_MODE_DETENTED2  ; V-Pot 3
    ENC_ENTRY  5,  6,  MIOS_ENC_MODE_DETENTED2  ; V-Pot 4
    ENC_ENTRY  6,  0,  MIOS_ENC_MODE_DETENTED2  ; V-Pot 5
    ENC_ENTRY  6,  2,  MIOS_ENC_MODE_DETENTED2  ; V-Pot 6
    ENC_ENTRY  6,  4,  MIOS_ENC_MODE_DETENTED2  ; V-Pot 7
    ENC_ENTRY  6,  6,  MIOS_ENC_MODE_DETENTED2  ; V-Pot 8
    ENC_ENTRY  8,  0,  MIOS_ENC_MODE_DETENTED2  ; V-Pot 9
    ENC_ENTRY  8,  2,  MIOS_ENC_MODE_DETENTED2  ; V-Pot 10
    ENC_ENTRY  8,  4,  MIOS_ENC_MODE_DETENTED2  ; V-Pot 11
    ENC_ENTRY  8,  6,  MIOS_ENC_MODE_DETENTED2  ; V-Pot 12
    ENC_ENTRY  9,  0,  MIOS_ENC_MODE_DETENTED2  ; V-Pot 13
    ENC_ENTRY  9,  2,  MIOS_ENC_MODE_DETENTED2  ; V-Pot 14
    ENC_ENTRY  9,  4,  MIOS_ENC_MODE_DETENTED2  ; V-Pot 15
    ENC_ENTRY  9,  6,  MIOS_ENC_MODE_DETENTED2  ; V-Pot 16

    ;; don't remove this "end-of-table" entry!
    ENC_EOT


;; include the rest of the application
#include "main.inc"