twidl Posted March 25, 2015 Report Share Posted March 25, 2015 Hi, My name is Ruben (from holland) and i'm completely new to the forum. I've just finished my first midibox seq v4 with wilba's panel. So far it's all working. But I'd really like to use 8xCV and 8xGATE. I have built my unit using te LPC17 and the AOUT_NG and as i understand it, i also need the DOUT for the gates. questions: 1) is this the schematic i want for setting up the 8 gates? http://ucapps.de/mbhp/mbhp_doutx1.pdf Or can i wire the gates somehow directly to the core board? 2) i also need some help under standing what i need to change in MBSEQ_HW.V4, could somebody tell me exactly what needs to be in the part copied under here, to get 8 cv' and 8 gates working? the AOUT_NG page states the following: "First edit the config file on the SD Card to use the AOUT_NG (i.e. #define AOUT_INTERFACE_TYPE 3) and save it !" But if there's a hashtag before define then the whole line is commented out right? so should i strip the #define? if so, then why is it there? This is the CV part copied from the .V4 file, could someone help me? Cheers, Ruben ################################################## # CV and Gate/Trigger/Sync Setup ################################################## # AOUT interface now selected in CV Configuration Menu and stored in MBSEQ_CV.V4 file # please scroll through the menu to find this page! # the 8 CV gates can be assigned to a shift register (0=off, 1-32: number of shift register): # - 1st CV Gate available at DOUT SR output D7 # - 2nd CV Gate available at DOUT SR output D6 # - 3rd CV Gate available at DOUT SR output D5 # - ... # - 8th CV Gate available at DOUT SR output D0 CV_GATE_SR1 0 # and DIN Clock Outputs can be assigned to a shift register as well (0=off, 1-32: number of shift register): # D7..D0 will output individual clock or start/stop signals which can be configured in the CV configuration page CLK_SR 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-32, 0 disables the function, all other values invalid and not allowed DOUT_GATE_SR1 0 DOUT_GATE_SR2 0 DOUT_GATE_SR3 0 DOUT_GATE_SR4 0 DOUT_GATE_SR5 0 DOUT_GATE_SR6 0 DOUT_GATE_SR7 0 DOUT_GATE_SR8 0 # if set to 1, the DOUT "gates" will send 1mS pulses # useful for analog drums DOUT_1MS_TRIGGER 0 # should J5A/B/C outputs be enabled (0: no, 1: yes, 2: yes, but in open drain mode)? # - the 6 first AOUT gates will be forwarded to J5A/B # - the remaining last 2 AOUT gates are available at J5C.A10 and J5C.A11 (LPC17: J28.WS and J28.MCLK) # - DIN sync clock will be forwarded to J5C:A0 (LPC17: J28.SDA) # - DIN sync start/stop will be forwarded to J5C:A1 (LPC17: J28.SC) # - if open drain mode enabled (option 2), external pull-ups have to be connected to J5 pins # (advantage: pin levels can be pulled to 5V) # # NEVER USE THIS TOGETHER WITH ANALOG POTS - IT WILL CAUSE A SHORT CIRCUIT! J5_ENABLED 1 Quote Link to comment Share on other sites More sharing options...
latigid on Posted March 25, 2015 Report Share Posted March 25, 2015 Hi and welcome! There are two ways of getting gates: either using pins directly from the Core or (more recently) a DOUT chain. I think DOUT gates should work with the LPC17 core, I know TK implemented this for the STM32F4 core. Check here for setting up gates: http://www.ucapps.de/midibox_seq_manual_hw.html Here a MBSEQ_HW.V4 configuration example which works with the MBSEQ Frontpanel PCB: ################################################## # CV and Gate/Trigger/Sync Setup ################################################## # the 8 CV gates can be assigned to a shift register (0=off, 1-32: number of shift register): # - 1st CV Gate available at DOUT SR output D7 # - 2nd CV Gate available at DOUT SR output D6 # - 3rd CV Gate available at DOUT SR output D5 # - ... # - 8th CV Gate available at DOUT SR output D0 CV_GATE_SR1 3 # and DIN Clock Outputs can be assigned to a shift register as well (0=off, 1-32: number of shift register): # D7..D0 will output individual clock or start/stop signals which can be configured in the CV configuration page CLK_SR 4 # 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-32, 0 disables the function, all other values invalid and not allowed DOUT_GATE_SR1 5 DOUT_GATE_SR2 6 DOUT_GATE_SR3 0 DOUT_GATE_SR4 0 DOUT_GATE_SR5 0 DOUT_GATE_SR6 0 DOUT_GATE_SR7 0 DOUT_GATE_SR8 0 The gates are available at the 3rd DOUT shift register, the clocks at the 4th DOUT shift register, and additional gates/drum triggers at the 5th and 7th DOUT shift registers. This works, since Wilba's Frontpanel PCB only uses two DOUT shift registers; a MBHP_DOUTX4 module connected to J2 of the PCB will represent DOUT number 3, 4, 5 and 6. If more gates are required, just add another MBHP_DOUTX4 module and assign the number 7..10 to DOUT_GATE_SR3..6 accordingly. Ethernet Interface Quote Link to comment Share on other sites More sharing options...
warpboy Posted March 26, 2015 Report Share Posted March 26, 2015 hello, I think DOUT gates should work with the LPC17 core Yes, I can confirm, I did it for my sequencer. Using a Dout board is nice for trigger, you're not connected directly to the lpc core !!! Another thing, the trigger voltage is bigger with a DOUT board(5v versus 3V for direct connection to the core) best regards Warpboy Quote Link to comment Share on other sites More sharing options...
twidl Posted March 26, 2015 Author Report Share Posted March 26, 2015 does one shift register supply 8 gates? Quote Link to comment Share on other sites More sharing options...
latigid on Posted March 26, 2015 Report Share Posted March 26, 2015 You're welcome. Yes, you can use a single shift register or buy a DOUTX4 board from http://www.midibox-shop.com/ Quote Link to comment Share on other sites More sharing options...
twidl Posted March 26, 2015 Author Report Share Posted March 26, 2015 Ah thanks very much. I'll try this :) Quote Link to comment Share on other sites More sharing options...
tupinamba Posted May 9, 2015 Report Share Posted May 9, 2015 Hi! I'm afraid I need even more clarification... I'd like first to use the gates / clock from the CORE (STM32). (I'll use a DOUT module if this isn't enough for my needs) If I get it right, this is already enabled in MBSEQ_HW.V4. I've connected a 1/4 jack to Gate1 + Ground from J5. Now : How do I configure my track to actually use this gate 1? I have to use a CC track, right? Which output do I choose? (I only see Midi OUT, OSC1-4 and AOUT*(I don't have an AOUT module connected yet...)). Which value do I enter to actually trigger Gate1 on my steps?... Yes, I'm THAT far from understanding the concept... ;-) Thanks in advance! Quote Link to comment Share on other sites More sharing options...
latigid on Posted May 9, 2015 Report Share Posted May 9, 2015 Hello, you should configure your track as AOUT channel 1, this should send the gate. It would be great if TK could tweak the SW to allow all 16 channels to send their gates to the DOUT, I think with the BLM this will be really cool even if the corresponding CV is not sent. Quote Link to comment Share on other sites More sharing options...
tupinamba Posted May 9, 2015 Report Share Posted May 9, 2015 OK, great! And the CC value is #16? And then, which value (0-127) is to be entered on the steps where we want the trigger to trig? Quote Link to comment Share on other sites More sharing options...
latigid on Posted May 9, 2015 Report Share Posted May 9, 2015 Hi, you shouldn't need use a CC, just enter some notes into the pattern. Hope that works! Quote Link to comment Share on other sites More sharing options...
tupinamba Posted May 9, 2015 Report Share Posted May 9, 2015 OK, not a CC track then ? Just a "normal" track? Quote Link to comment Share on other sites More sharing options...
tupinamba Posted May 9, 2015 Report Share Posted May 9, 2015 Sorry, but I don't think I get it right... How do I tell my track to open Gate 1 from the CORE module? And what about Gate 2,...? And what about the clock?... Thanks in advance, I'm lost... Quote Link to comment Share on other sites More sharing options...
latigid on Posted May 10, 2015 Report Share Posted May 10, 2015 (edited) Right... you want to use the GPIOs for gates. Did you enable this in your hardware file? # should J5A/B/C outputs be enabled (0: no, 1: yes, 2: yes, but in open drain mode)? # - the 6 first AOUT gates will be forwarded to J5A/B # - the remaining last 2 AOUT gates are available at J5C.A10 and J5C.A11 (LPC17: J28.WS and J28.MCLK) # - DIN sync clock will be forwarded to J5C:A0 (LPC17: J28.SDA) # - DIN sync start/stop will be forwarded to J5C:A1 (LPC17: J28.SC) # - if open drain mode enabled (option 2), external pull-ups have to be connected to J5 pins # (advantage: pin levels can be pulled to 5V) # # NEVER USE THIS TOGETHER WITH ANALOG POTS - IT WILL CAUSE A SHORT CIRCUIT! J5_ENABLED 1 The idea I think is to move towards DOUT gates, I suppose the pin assignments from the Core remain as a legacy function. P.S. Open-drain mode does not work (at least for STM32F1 and I think LPC 17), your gates will be 3-3.3 V and no protection is implemented for the Core. Take care how these are connected! Edited May 10, 2015 by latigid on Quote Link to comment Share on other sites More sharing options...
TK. Posted May 10, 2015 Report Share Posted May 10, 2015 The usage of the core based IO pins is dangerous, and therefore not recommended. Either a buffer IC (like the 74HCT541) is required for level-shifting (and protection), or just use a DOUT shift register which is the recommended and documentation solution at this page: http://www.ucapps.de/midibox_seq_manual_hw.html Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
tupinamba Posted May 12, 2015 Report Share Posted May 12, 2015 OK, safety first, I'll use the DOUT module. I already have a DOUTX4 so it shouldn't be too hard. One thing though : My sequencer is Wilba's design, so there is already a ribbon cable (J8 + J9) going to the control surface PCB. So I have to make a new cable to connect my DOUT module in series, right? And what do I have to do about shift registers?... :unsure: Thanks again... Quote Link to comment Share on other sites More sharing options...
latigid on Posted May 12, 2015 Report Share Posted May 12, 2015 Use the adjacent header to daisy chain the next series of shift registers through a new cable. They're the chips on the DOUT in fact. Quote Link to comment Share on other sites More sharing options...
tupinamba Posted May 12, 2015 Report Share Posted May 12, 2015 You mean the adjacent header on Wilba's PCB, labeled J2, right? Quote Link to comment Share on other sites More sharing options...
latigid on Posted May 12, 2015 Report Share Posted May 12, 2015 Indeed, you can see the PCB traces here: http://www.midibox.org/dokuwiki/lib/exe/fetch.php?media=wilba_mb_seq:wilba_mbseq_pcb.pdf Quote Link to comment Share on other sites More sharing options...
tupinamba Posted May 12, 2015 Report Share Posted May 12, 2015 Cool, thanks. I'll do it right now and see how it works... Then I have to edit the MBSEQ_HW.V4 : I just have to copy the above configuration that you wrote in your old post above, right?... Quote Link to comment Share on other sites More sharing options...
latigid on Posted May 12, 2015 Report Share Posted May 12, 2015 Hi, this should hopefully work (TK's words not mine...) CV_GATE_SR1 3 That should send the gates to the first SR on the DOUT. Good luck! Andy Quote Link to comment Share on other sites More sharing options...
tupinamba Posted May 12, 2015 Report Share Posted May 12, 2015 (edited) Great! I'm going to try that right away. I finished the wiring, as you can see. And you can have a good laugh at the sight of my unplugged AOUT module : I'm still not sure about how I want it powered... :rolleyes: (it has been in there for 3 or 4 years!!!) Edited May 12, 2015 by tupinamba Quote Link to comment Share on other sites More sharing options...
tupinamba Posted May 12, 2015 Report Share Posted May 12, 2015 (edited) ... And if I also want Clock Out, which I could configure for 1, 2, 4th, 8th, 16th?... :rolleyes: Edited May 12, 2015 by tupinamba Quote Link to comment Share on other sites More sharing options...
tupinamba Posted May 12, 2015 Report Share Posted May 12, 2015 OK... Doesn't work. I've got continuously 5V on each DOUT... Quote Link to comment Share on other sites More sharing options...
latigid on Posted May 12, 2015 Report Share Posted May 12, 2015 # and DIN Clock Outputs can be assigned to a shift register as well (0=off, 1-32: number of shift register): # D7..D0 will output individual clock or start/stop signals which can be configured in the CV configuration page CLK_SR 4 Quote Link to comment Share on other sites More sharing options...
latigid on Posted May 12, 2015 Report Share Posted May 12, 2015 OK... Doesn't work. I've got continuously 5V on each DOUT... Are you sending notes on the correct AOUT channel? I haven't done this by the way, I have the old system with a level shifting solution. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.