Subversion Repositories svn.mios32

Rev

Rev 2462 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2438 tk 1
##################################################
2
# Setup File for MIDIbox CV V2 Standard Frontpanel
3
# $Id: MBCV_HW.CV2 2468 2016-12-30 11:02:12Z tk $
4
##################################################
5
 
6
 
7
##################################################
8
# AOUT interface
9
# Following interfaces are supported:
10
#   o none
11
#   o AOUT
12
#   o AOUT_LC
13
#   o AOUT_NG
14
#   o MCP_Gx1
15
#   o MCP_Gx2
16
##################################################
17
 
18
AOUT_IF AOUT_NG
19
 
20
 
21
##################################################
22
# Gate and Clock outputs
23
##################################################
24
 
25
# DOUT Shift Register number of the 8 CV gate outputs
26
# (1..16, 0 disables the outputs)
27
# - gate of CV1 will be available at output D7
28
# - gate of CV2 will be available at output D6
29
# - ...
30
# - gate of CV8 will be available at output D0
31
 
2462 tk 32
GATE_CV_DOUT_SR 1
2438 tk 33
 
34
 
35
# shift register number of the clock and start/stop signal (DIN Sync)
36
# (1..16, 0 disables the outputs)
37
# - start/stop will be available at output D7
38
# - clock1 will be available at output D6
39
# - clock2 will be available at output D5
40
# - ...
41
# - clock7 will be available at output D0
42
 
2462 tk 43
CLK_DOUT_SR 2
2438 tk 44
 
45
 
46
##################################################
2462 tk 47
# Optional 8x16 button matrix
48
##################################################
49
 
50
# define the DOUT shift register which selects the button row
51
# 0: off, 1-16: the shift register number
52
BM_SELECT_DOUT_SR  4
53
 
54
# define the DIN shift registers for the button columns
55
# 0: off, 1-16: the shift register number
56
 
57
# ROW1 will provide M1..M8
2468 tk 58
BM_SCAN_ROW1_DIN_SR 5
2462 tk 59
 
60
# ROW2 will provide M9..M16
61
BM_SCAN_ROW2_DIN_SR 0
62
 
63
 
64
##################################################
2438 tk 65
# Optional LRE8x2 modules (encoders and LED rings)
66
# Up to two modules can be chained, makes up to
67
# 32 encoders and 32 LEDrings
68
##################################################
69
 
70
# enable first LRE module
71
# 0: disabled
72
# 1: enabled, and LEDring  select lines are not inverted
73
# 2: enabled, and LEDring select lines are inverted (use this if a ULN2803 is mounted!)
74
LRE1_ENABLED 2
75
 
76
# first LRE8x2 module
77
LRE1_LEDRING_SELECT_DOUT_SR1   0
78
LRE1_LEDRING_SELECT_DOUT_SR2   0
79
LRE1_LEDRING_PATTERN_DOUT_SR1  0
80
LRE1_LEDRING_PATTERN_DOUT_SR2  0
81
 
82
 
83
# enable second LRE module
84
# 0: disabled
85
# 1: enabled, and LEDring  select lines are not inverted
86
# 2: enabled, and LEDring select lines are inverted (use this if a ULN2803 is mounted!)
87
LRE2_ENABLED 2
88
 
89
# second LRE8x2 module
90
LRE2_LEDRING_SELECT_DOUT_SR1   0
91
LRE2_LEDRING_SELECT_DOUT_SR2   0
92
LRE2_LEDRING_PATTERN_DOUT_SR1  0
93
LRE2_LEDRING_PATTERN_DOUT_SR2  0
94
 
95
 
96
# encoder assignments
97
# SR = 0: encoder disabled
98
# SR = 1..16: DIN assignment
99
# Types: NON_DETENTED, DETENTED1, DETENTED2, DETENTED3, DETENTED4, DETENTED5
100
 
101
#           SR  Pin  Type
102
LRE1_ENC1    1    1  DETENTED3
103
LRE1_ENC5    1    3  DETENTED3
104
LRE1_ENC9    1    5  DETENTED3
105
LRE1_ENC13   1    7  DETENTED3
106
LRE1_ENC2    2    1  DETENTED3
107
LRE1_ENC6    2    3  DETENTED3
108
LRE1_ENC10   2    5  DETENTED3
109
LRE1_ENC14   2    7  DETENTED3
110
LRE1_ENC3    3    1  DETENTED3
111
LRE1_ENC7    3    3  DETENTED3
112
LRE1_ENC11   3    5  DETENTED3
113
LRE1_ENC15   3    7  DETENTED3
114
LRE1_ENC4    4    1  DETENTED3
115
LRE1_ENC8    4    3  DETENTED3
116
LRE1_ENC12   4    5  DETENTED3
117
LRE1_ENC16   4    7  DETENTED3
118
 
119
#           SR  Pin  Type
120
LRE2_ENC1    0    0  DETENTED3
121
LRE2_ENC2    0    0  DETENTED3
122
LRE2_ENC3    0    0  DETENTED3
123
LRE2_ENC4    0    0  DETENTED3
124
LRE2_ENC5    0    0  DETENTED3
125
LRE2_ENC6    0    0  DETENTED3
126
LRE2_ENC7    0    0  DETENTED3
127
LRE2_ENC8    0    0  DETENTED3
128
LRE2_ENC9    0    0  DETENTED3
129
LRE2_ENC10   0    0  DETENTED3
130
LRE2_ENC11   0    0  DETENTED3
131
LRE2_ENC12   0    0  DETENTED3
132
LRE2_ENC13   0    0  DETENTED3
133
LRE2_ENC14   0    0  DETENTED3
134
LRE2_ENC15   0    0  DETENTED3
135
LRE2_ENC16   0    0  DETENTED3
136
 
137
 
138
##################################################
139
# Optional WS2812B based RGB LEDs as replacement
140
# for the LED rings
141
#
142
# Supported functions:
143
# DISABLED:     LED always off
144
# CHANNEL_HUE:  Hue controlled by channel number
145
##################################################
146
 
147
#             Pos     Function
148
WS2812_LED1    1      CHANNEL_HUE
149
WS2812_LED2    8      CHANNEL_HUE
150
WS2812_LED3    9      CHANNEL_HUE
151
WS2812_LED4   16      CHANNEL_HUE
152
WS2812_LED5    2      CHANNEL_HUE
153
WS2812_LED6    7      CHANNEL_HUE
154
WS2812_LED7   10      CHANNEL_HUE
155
WS2812_LED8   15      CHANNEL_HUE
156
WS2812_LED9    3      CHANNEL_HUE
157
WS2812_LED10   6      CHANNEL_HUE
158
WS2812_LED11  11      CHANNEL_HUE
159
WS2812_LED12  14      CHANNEL_HUE
160
WS2812_LED13   4      CHANNEL_HUE
161
WS2812_LED14   5      CHANNEL_HUE
162
WS2812_LED15  12      CHANNEL_HUE
163
WS2812_LED16  13      CHANNEL_HUE
164
 
165
#             Pos     Function
166
WS2812_LED17   0      CHANNEL_HUE
167
WS2812_LED18   0      CHANNEL_HUE
168
WS2812_LED19   0      CHANNEL_HUE
169
WS2812_LED20   0      CHANNEL_HUE
170
WS2812_LED21   0      CHANNEL_HUE
171
WS2812_LED22   0      CHANNEL_HUE
172
WS2812_LED23   0      CHANNEL_HUE
173
WS2812_LED24   0      CHANNEL_HUE
174
WS2812_LED25   0      CHANNEL_HUE
175
WS2812_LED26   0      CHANNEL_HUE
176
WS2812_LED27   0      CHANNEL_HUE
177
WS2812_LED28   0      CHANNEL_HUE
178
WS2812_LED29   0      CHANNEL_HUE
179
WS2812_LED30   0      CHANNEL_HUE
180
WS2812_LED31   0      CHANNEL_HUE
181
WS2812_LED32   0      CHANNEL_HUE
182
 
183
 
184
##################################################
185
# Button assignments to DIN pins
186
# SR = 0: Button disabled
187
# SR = 1..16:  directly triggered from DIN pin
2462 tk 188
# SR = M1..16: triggered from button matrix pin
2438 tk 189
##################################################
190
 
2462 tk 191
# SCS (if not connected to J10)
192
#                 SR  Pin
193
BUTTON_SCS_EXIT   M8   6
194
BUTTON_SCS_SHIFT  M7   6
195
BUTTON_SCS_SOFT1  M4   5
196
BUTTON_SCS_SOFT2  M4   6
197
BUTTON_SCS_SOFT3  M4   7
198
BUTTON_SCS_SOFT4  M5   7
199
 
2438 tk 200
# select CV channel
201
#            SR  Pin
202
BUTTON_CV1    0   0
203
BUTTON_CV2    0   0
204
BUTTON_CV3    0   0
205
BUTTON_CV4    0   0
206
BUTTON_CV5    0   0
207
BUTTON_CV6    0   0
208
BUTTON_CV7    0   0
209
BUTTON_CV8    0   0
210
 
211
# select (LRE) encoder bank
212
#                 SR  Pin
213
BUTTON_ENCBANK1    0   0
214
BUTTON_ENCBANK2    0   0
215
BUTTON_ENCBANK3    0   0
216
BUTTON_ENCBANK4    0   0
217
BUTTON_ENCBANK5    0   0
218
BUTTON_ENCBANK6    0   0
219
BUTTON_ENCBANK7    0   0
220
BUTTON_ENCBANK8    0   0
221
 
222
# These button functions combine both: CV channel and LRE ENC bank selected
223
# Means: each CV channel has it's own encoder bank
224
#                        SR  Pin
225
BUTTON_CV_AND_ENCBANK1    0   0
226
BUTTON_CV_AND_ENCBANK2    0   0
227
BUTTON_CV_AND_ENCBANK3    0   0
228
BUTTON_CV_AND_ENCBANK4    0   0
229
BUTTON_CV_AND_ENCBANK5    0   0
230
BUTTON_CV_AND_ENCBANK6    0   0
231
BUTTON_CV_AND_ENCBANK7    0   0
232
BUTTON_CV_AND_ENCBANK8    0   0
233
 
234
#               SR  Pin
235
BUTTON_LFO1      0   0
236
BUTTON_LFO2      0   0
237
BUTTON_ENV1      0   0
238
BUTTON_ENV2      0   0
239
 
240
#               SR  Pin
241
BUTTON_SCOPE1    0   0
242
BUTTON_SCOPE2    0   0
243
BUTTON_SCOPE3    0   0
244
BUTTON_SCOPE4    0   0
245
 
2462 tk 246
#                    SR  Pin
247
BUTTON_KEYBOARD_C1   M1   4
248
BUTTON_KEYBOARD_C1S  M1   5
249
BUTTON_KEYBOARD_D1   M2   5
250
BUTTON_KEYBOARD_D1S  M2   6
251
BUTTON_KEYBOARD_E1   M2   4
252
BUTTON_KEYBOARD_F1   M3   5
253
BUTTON_KEYBOARD_F1S  M4   4
254
BUTTON_KEYBOARD_G1   M3   4
255
BUTTON_KEYBOARD_G1S  M5   4
256
BUTTON_KEYBOARD_A1   M6   4
257
BUTTON_KEYBOARD_A1S  M5   5
258
BUTTON_KEYBOARD_B1   M6   5
259
BUTTON_KEYBOARD_C2   M6   6
260
BUTTON_KEYBOARD_C2S  M7   5
261
BUTTON_KEYBOARD_D2   M7   4
262
BUTTON_KEYBOARD_D2S  M8   5
263
BUTTON_KEYBOARD_E2   M8   4
2438 tk 264
 
2462 tk 265
 
2438 tk 266
# more button functions are available on request
2462 tk 267
 
268
 
269
##################################################
270
# Additional Encoder assignments
271
# SR = 0: encoder disabled
272
# SR = 1..16: DIN assignment
273
# Types: NON_DETENTED, DETENTED1, DETENTED2, DETENTED3, DETENTED4, DETENTED5
274
##################################################
275
 
276
# encoder assignments
277
 
278
#           SR  Pin  Type
2468 tk 279
ENC_SCS      6    5  DETENTED3
280
ENC_GP1      6    0  DETENTED3
281
ENC_GP2      6    3  DETENTED3
2462 tk 282
 
283
# note: SCS and GP2 encoder pins swapped in frontpanel layout
284
# GP1 has the correct assignments
285